1 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * fbsd-tdep.c: New file.
4 * fbsd-tdep.h: New file.
5 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
6 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
7 (ALLDEPFILES): Add fbsd-tdep.c.
9 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
11 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
13 * gdbarch.h: Regenerate.
14 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
16 (get_core_register_section): Add parameter 'regset' and use it, if
17 set. Add parameter 'min_size' and verify the bfd section size
19 (get_core_registers_cb): Add parameter 'regset' and pass it to
20 get_core_register section. For the "standard" register sections
21 ".reg" and ".reg2", set an appropriate default for human_name.
22 (get_core_registers): Don't abort when the gdbarch has an iterator
23 but no regset_from_core_section. Add NULL/0 for parameters
24 'regset'/'min_size' in calls to get_core_register_section.
25 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
26 'regset' and use it instead of calling the
27 regset_from_core_section gdbarch method.
28 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
29 * i386-tdep.c (i386_supply_xstateregset)
30 (i386_collect_xstateregset, i386_xstateregset): Moved to
32 (i386_regset_from_core_section): Drop handling for .reg-xfp and
34 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
35 core file support only if the regset iterator hasn't been set.
36 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
37 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
38 Moved from i386-tdep.c and renamed to *_linux*.
39 (i386_linux_iterate_over_regset_sections): Add regset parameter to
40 each callback invocation. Allow any .reg-xstate size when reading
42 * amd64-tdep.c (amd64_supply_xstateregset)
43 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
45 (amd64_regset_from_core_section): Remove.
46 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
47 install an amd64-specific regset_from_core_section gdbarch method.
48 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
49 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
50 Moved from amd64-tdep.c and renamed to *_linux*.
51 (amd64_linux_iterate_over_regset_sections): Add regset parameter
52 to each callback invocation. Allow any .reg-xstate size when
53 reading from a core file.
54 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
55 (arm_linux_iterate_over_regset_sections): Add regset parameter to
56 each callback invocation.
57 (arm_linux_init_abi): No longer set the regset_from_core_section
59 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
60 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
61 each callback invocation.
62 (ppc_linux_init_abi): No longer set the regset_from_core_section
64 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
65 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
66 (s390_regset_from_core_section): Remove.
67 (s390_iterate_over_regset_sections): Add regset parameter to each
69 (s390_gdbarch_init): No longer set the regset_from_core_section
70 gdbarch method. Drop initialization of deleted tdep fields.
72 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
74 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
75 (amd64_linux_iterate_over_regset_sections): New.
76 (amd64_linux_init_abi_common): Don't install the regset section
77 list, but the new iterator in gdbarch.
78 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
79 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
80 (arm_linux_iterate_over_regset_sections): ...here. New function.
81 (arm_linux_init_abi): Set iterator instead of section list.
82 * corelow.c (get_core_registers_cb): New function, logic moved
84 (get_core_registers): ...loop body here. Use new iterator method
85 instead of walking through the regset section list.
86 * gdbarch.sh: Remove 'core_regset_sections'. New method
87 'iterate_over_regset_sections'. New typedef
88 'iterate_over_regset_sections_cb'.
89 * gdbarch.c: Regenerate.
90 * gdbarch.h: Likewise.
91 * i386-linux-tdep.c (i386_linux_regset_sections)
92 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
94 (i386_linux_iterate_over_regset_sections): New.
95 (i386_linux_init_abi): Don't choose a regset section list, but
96 install new iterator in gdbarch.
97 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
98 (linux_collect_regset_section_cb): New function, logic moved
100 (linux_collect_thread_registers): ...loop body here. Use iterator
101 method instead of walking through list.
102 (linux_make_corefile_notes_1): Check for presence of iterator
103 method instead of regset section list.
104 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
105 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
106 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
107 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
108 (ppc_linux_iterate_over_regset_sections): ...here. New function.
109 (ppc_linux_init_abi): Don't choose from above regset section
110 lists, but install new iterator in gdbarch.
111 * regset.h (struct core_regset_section): Remove.
112 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
113 have_linux_v1, have_linux_v2, and have_tdb.
114 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
115 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
116 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
117 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
118 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
119 (s390_iterate_over_regset_sections): ...here. New function. Use
121 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
122 regset section lists, but install new iterator.
124 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
126 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
128 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
130 * progspace.c (print_program_space): Don't prune program spaces
131 before printing them.
133 2014-09-25 Pedro Alves <palves@redhat.com>
135 * infrun.c (user_visible_resume_ptid): Don't check
136 singlestep_breakpoints_inserted_p.
138 2014-09-25 Pedro Alves <palves@redhat.com>
140 * breakpoint.c (should_be_inserted): Add debug output.
142 2014-09-25 Pedro Alves <palves@redhat.com>
144 * infrun.c (stepping_past_instruction_at)
145 (clear_exit_convenience_vars): Point at infrun.h instead of
147 (handle_signal_stop): Fix typo.
149 2014-09-24 Yao Qi <yao@codesourcery.com>
151 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
154 2014-09-22 Gary Benson <gbenson@redhat.com>
156 * target.c (target_stop): Updated comment.
158 2014-09-22 Gary Benson <gbenson@redhat.com>
160 * target/target.h (target_stop_ptid): Renamed as...
161 (target_stop_and_wait): New function. Updated comment.
163 (target_continue_ptid): Renamed as...
164 (target_continue_no_signal): New function. Updated comment.
167 2014-09-22 Pedro Alves <palves@redhat.com>
169 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
171 * breakpoint.c (enum ugll_insert_mode): New enum.
172 (always_inserted_mode): Now a plain boolean.
173 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
174 (breakpoints_always_inserted_mode): Delete.
175 (breakpoints_should_be_inserted_now): New function.
176 (insert_breakpoints): Pass UGLL_INSERT to
177 update_global_location_list instead of calling
178 insert_breakpoint_locations manually.
179 (create_solib_event_breakpoint_1): New, factored out from ...
180 (create_solib_event_breakpoint): ... this.
181 (create_and_insert_solib_event_breakpoint): Use
182 create_solib_event_breakpoint_1 instead of calling
183 insert_breakpoint_locations manually.
184 (update_global_location_list): Change parameter type from boolean
185 to enum ugll_insert_mode. All callers adjusted. Adjust to use
186 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
187 (update_global_location_list_nothrow): Change parameter type from
188 boolean to enum ugll_insert_mode.
189 (_initialize_breakpoint): "breakpoint always-inserted" option is
190 now a boolean command. Update help text.
191 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
192 (breakpoints_should_be_inserted_now): New declaration.
193 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
194 Remove breakpoints_always_inserted_mode check.
195 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
196 * remote.c (remote_start_remote): Likewise.
198 2014-09-22 Pedro Alves <palves@redhat.com>
200 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
201 (insert_breakpoints): Don't call insert_breakpoint_locations here.
202 Instead, pass UGLL_INSERT to update_global_location_list.
203 (update_global_location_list): Change parameter type from boolean
204 to enum ugll_insert_mode. All callers adjusted. Adjust to use
205 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
206 (create_solib_event_breakpoint_1): New, factored out from ...
207 (create_solib_event_breakpoint): ... this.
208 (create_and_insert_solib_event_breakpoint): Use
209 create_solib_event_breakpoint_1 instead of calling
210 insert_breakpoint_locations manually.
211 (update_global_location_list): Handle UGLL_INSERT.
213 2014-09-22 Pedro Alves <palves@redhat.com>
215 * breakpoint.c (enum ugll_insert_mode): New enum.
216 (update_global_location_list)
217 (update_global_location_list_nothrow): Change parameter type from
218 boolean to enum ugll_insert_mode. All callers adjusted.
220 2014-09-19 Joel Brobecker <brobecker@adacore.com>
222 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
223 SystemTap support in GDB.
225 2014-09-19 Don Breazeal <donb@codesourcery.com>
227 * linux-nat.c (linux_handle_extended_wait): Call
228 linux_ptrace_get_extended_event.
229 (wait_lwp): Call linux_is_extended_waitstatus.
230 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
231 and linux_is_extended_waitstatus.
232 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
233 linux_ptrace_get_extended_event.
234 (linux_ptrace_get_extended_event): New function.
235 (linux_is_extended_waitstatus): New function.
236 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
237 (linux_is_extended_waitstatus): New declarations.
239 2014-09-19 Yao Qi <yao@codesourcery.com>
241 * dwarf2read.c (dwarf_decode_lines): Update declaration.
242 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
243 comments. Callers update.
244 (dwarf_decode_lines): Likewise.
245 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
246 comments. Skip the line table if 'lowpc' is greater than
247 'address'. Don't check
248 dwarf2_per_objfile->has_section_at_zero.
250 2014-09-18 Doug Evans <dje@google.com>
252 * NEWS: Mention new "producer" attribute of gdb.Symtab.
253 * python/py-symtab.c (stpy_get_producer): New function.
254 (symtab_object_getset): Add "producer" attribute.
256 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
259 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
260 (do_captured_read_memory_integer): Remove.
261 (safe_read_memory_integer): Use target_read_memory directly instead
262 of catching errors in do_captured_read_memory_integer.
264 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
266 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
269 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
271 * objc-lang.c (find_implementation_from_class): Remove dead code.
273 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
276 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
277 "fprintf_unfiltered (gdb_stdlog...)".
279 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
282 * breakpoint.h (struct watchpoint): New fields val_bitpos and
284 * breakpoint.c (watch_command_1): Use these fields to retain
285 bitfield information.
286 (extract_bitfield_from_watchpoint_value): New function.
287 (watchpoint_check): Use it.
288 (update_watchpoint): Use it. Optimize the address and length of a
289 HW watchpoint pointing to a bitfield.
290 * value.h (unpack_value_bitfield): New prototype.
291 * value.c (unpack_value_bitfield): Make extern.
293 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
295 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
297 * gnu-nat.c (inf_threads): New function.
298 * gnu-nat.h (inf_threads_ftype): New typedef.
299 (inf_threads): New declaration.
300 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
301 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
302 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
303 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
304 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
305 (i386_gnu_dr_get_control): New functions.
306 (reg_addr): New structure.
307 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
308 i386 debugging register hooks.
309 * NEWS: Mention this.
311 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
313 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
314 vector data transfer instructions.
315 (arm_record_coproc_data_proc): Updated.
317 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
319 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
320 arm_record_exreg_ld_st_insn.
321 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
324 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
326 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
327 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
328 processing instructions.
330 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
332 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
333 for advance SIMD struct ld/st insn.
334 (thumb2_record_decode_insn_handler): Replace stub handler with
335 thumb2_record_asimd_struct_ld_st.
337 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
339 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
340 for asimd, vfp and coprocessor insns.
341 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
342 and coprocessor insns.
343 (thumb2_record_coproc_insn): New function.
344 (thumb2_record_decode_insn_handler): Update coprocessor insns record
346 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
349 2014-09-13 Doug Evans <xdje42@gmail.com>
351 * NEWS: Mention new "queue-signal" command.
352 * infcmd.c (queue_signal_command): New function.
353 (_initialize_infcmd): Add new queue-signal command.
355 2014-09-13 Doug Evans <xdje42@gmail.com>
357 * linux-nat.c (wait_lwp): Add debugging printf.
358 (linux_nat_wait_1): Ditto.
360 2014-09-12 Pedro Alves <palves@redhat.com>
362 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
363 (create_and_insert_solib_event_breakpoint): New functions.
364 * breakpoint.h (create_and_insert_solib_event_breakpoint)
365 (remove_solib_event_breakpoints_at_next_stop): New declarations.
366 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
367 (remove_dbx_link_breakpoint): Delete function.
368 (insert_dbx_link_bpt_in_file): Use
369 create_and_insert_solib_event_breakpoint instead of
370 deprecated_insert_raw_breakpoint.
371 (procfs_wait): Don't check whether we hit __dbx_link here.
372 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
374 * solib-irix.c (base_breakpoint): Delete global.
375 (disable_break): Delete function.
376 (enable_break): Use create_solib_event_breakpoint
377 instead of deprecated_insert_raw_breakpoint.
378 (irix_solib_handle_event): New function.
379 (irix_solib_create_inferior_hook): Don't run the target or disable
380 the mapping-complete breakpoint here.
381 (_initialize_irix_solib): Install irix_solib_handle_event as
382 so_ops->handle_event hook.
384 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
385 Ulrich Weigand <uweigand@de.ibm.com>
388 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
389 instead of read_memory_unsigned_integer.
391 2014-09-12 Gary Benson <gbenson@redhat.com>
393 * nat/linux-waitpid.c: Include common-defs.h.
394 [GDBSERVER]: Add FIXME comment.
395 [!GDBSERVER]: Don't include defs.h or signal.h.
396 (linux_debug) [!GDBSERVER]: Remove empty block.
398 2014-09-12 Gary Benson <gbenson@redhat.com>
400 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
401 Don't include defs.h or server.h.
403 2014-09-12 Gary Benson <gbenson@redhat.com>
405 * nat/linux-btrace.c: Include common-defs.h.
406 Don't include defs.h, server.h or gdbthread.h.
407 * nat/linux-btrace.h (struct target_ops): New forward declaration.
409 2014-09-12 Gary Benson <gbenson@redhat.com>
411 * common/agent.c: Include common-defs.h.
412 Don't include defs.h or server.h.
413 * common/buffer.c: Likewise.
414 * common/common-debug.c: Likewise.
415 * common/common-utils.c: Likewise.
416 * common/errors.c: Likewise.
417 * common/filestuff.c: Likewise.
418 * common/format.c: Likewise.
419 * common/gdb_vecs.c: Likewise.
420 * common/print-utils.c: Likewise.
421 * common/ptid.c: Likewise.
422 * common/rsp-low.c: Likewise.
423 * common/signals.c: Likewise.
424 * common/vec.c: Likewise.
425 * common/xml-utils.c: Likewise.
426 * nat/linux-osdata.c: Likewise.
427 * nat/linux-procfs.c: Likewise.
428 * nat/linux-ptrace.c: Likewise.
429 * nat/mips-linux-watch.c: Likewise.
430 * target/waitstatus.c: Likewise.
432 2014-09-12 Tom Tromey <tromey@redhat.com>
433 Gary Benson <gbenson@redhat.com>
435 * common/common-regcache.h: New file.
436 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
437 * regcache.h: Include common-regcache.h.
438 (regcache_read_pc): Don't declare.
439 * regcache.c (get_thread_regcache_for_ptid): New function.
440 * nat/linux-btrace.c: Don't include regcache.h.
441 Include common-regcache.h.
442 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
444 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
446 * regcache.h (struct regset): Declare.
448 2014-09-11 Pedro Alves <palves@redhat.com>
451 * main.c: Include "infrun.h".
452 (catch_command_errors, catch_command_errors_const): Wait for the
453 foreground command to complete.
454 * top.c (maybe_wait_sync_command_done): New function, factored out
456 (maybe_wait_sync_command_done): ... here.
457 * top.h (maybe_wait_sync_command_done): New declaration.
459 2014-09-11 Tom Tromey <tromey@redhat.com>
460 Gary Benson <gbenson@redhat.com>
462 * common/symbol.h: New file.
463 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
464 * minsyms.c (find_minimal_symbol_address): New function.
465 * common/agent.c: Include common/symbol.h.
466 [!GDBSERVER]: Don't include objfiles.h.
467 (agent_look_up_symbols): Use find_minimal_symbol_address.
469 2014-09-11 Gary Benson <gbenson@redhat.com>
471 * target/target.h (target_stop_ptid, target_continue_ptid):
473 * target.c (target_stop_ptid, target_continue_ptid): New
475 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
476 (agent_run_command): Always use target_stop_ptid and
477 target_continue_ptid.
479 2014-09-11 Tom Tromey <tromey@redhat.com>
480 Gary Benson <gbenson@redhat.com>
482 * target/target.h: New file.
483 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
484 * target.h: Include target/target.h.
485 (target_read_memory, target_write_memory): Don't declare.
486 * target.c (target_read_uint32): New function.
487 * common/agent.c: Include target/target.h.
488 [!GDBSERVER]: Don't include target.h.
489 (helper_thread_id): Type changed to uint32_t.
490 (agent_get_helper_thread_id): Use target_read_uint32.
491 (agent_run_command): Always use target_read_memory and
493 (agent_capability): Type changed to uint32_t.
494 (agent_capability_check): Use target_read_uint32.
496 2014-09-11 Gary Benson <gbenson@redhat.com>
498 * common/common-debug.h (show_debug_regs): Declare.
499 * common/common-debug.c (show_debug_regs): Define.
500 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
501 all uses with show_debug_regs. Replace all uses that considered
502 debug_hw_points as a multi-value integer with straight boolean
504 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
505 with show_debug_regs.
506 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
507 all uses with show_debug_regs.
508 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
509 uses with show_debug_regs.
511 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
513 * findvar.c (address_from_register): Handle targets requiring
514 a special conversion routine even for plain pointer types.
516 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
518 * rs6000-nat.c (exec_one_dummy_insn): Remove.
519 (store_register): Do not call exec_one_dummy_insn.
521 2014-09-10 Joel Brobecker <brobecker@adacore.com>
523 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
524 dereference it first. Use value_enclosing_type instead of
526 (ada_array_length): Likewise.
528 2014-09-10 Joel Brobecker <brobecker@adacore.com>
530 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
531 Adjust function implementation and documentation accordingly.
532 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
533 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
534 Update call to ada_value_ptr_subscript.
536 2014-09-10 Joel Brobecker <brobecker@adacore.com>
538 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
539 instead of VAL's type.
541 2014-09-10 Joel Brobecker <brobecker@adacore.com>
543 * amd64-linux-nat.c: Add <sys/uio.h> #include.
545 2014-09-09 Doug Evans <xdje42@gmail.com>
548 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
549 last parameter to pkg-config, not first.
550 * configure.ac: Pass --with-guile provided pkg-config path to
551 GDB_GUILE_PROGRAM_NAMES.
552 * configure: Regenerate.
554 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
556 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
559 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
561 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
562 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
563 the list of sections determining GDB_OSABI_IRIX.
565 2014-09-09 James Hogan <james.hogan@imgtec.com>
567 * MAINTAINERS (Write After Approval): Add "James Hogan".
569 2014-09-09 James Hogan <james.hogan@imgtec.com>
571 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
573 2014-09-09 Joel Brobecker <brobecker@adacore.com>
575 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
577 2014-09-08 Doug Evans <xdje42@gmail.com>
580 * guile.c: #include <signal.h>.
581 (_initialize_guile): Block SIGCHLD while initializing Guile.
583 Replaces the following, which is reverted.
585 2014-07-26 Doug Evans <xdje42@gmail.com>
588 * configure.ac: Add check for header gc/gc.h.
589 Add check for function setenv.
590 * configure: Regenerate.
591 * config.in: Regenerate.
592 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
594 2014-09-08 Doug Evans <xdje42@gmail.com>
596 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
597 with named constant. Fix style of pointer comparison.
598 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
600 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
603 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
604 decide whether we display the command on "show user".
605 * cli/cli-script.c (show_user_1): Only verify cmdlines after
606 printing command name.
607 * cli/cli-decode.h (cli_user_command_p): Declare new function.
608 * cli/cli-decode.c (cli_user_command_p): Create helper function
609 to verify whether cmd_list_element is a user-defined command.
611 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
614 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
615 Fix goto out of TRY_CATCH.
617 2014-09-06 Doug Evans <xdje42@gmail.com>
618 Tom Tromey <tromey@redhat.com>
621 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
622 $_any_caller_matches.
623 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
624 * python/lib/gdb/function/caller_is.py: New file.
626 2014-09-06 Doug Evans <xdje42@gmail.com>
628 * infcmd.c (program_info): Fix typo.
630 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
633 * stap-probe.c (stap_parse_single_operand): Delete unused variable
634 'number'. New variable 'has_digit'. Rewrite code to deal with
635 subexpressions on SDT probes.
637 2014-09-04 Pedro Alves <palves@redhat.com>
639 * c-exp.y (parse_number): Skip handling base-switching prefixes if
640 the input is only one character long.
642 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
645 * f-valprint.c (f_val_print): Specify the correct print option to
646 use when printing integer values.
648 2014-09-04 Gary Benson <gbenson@redhat.com>
650 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
651 Remove code to cope with LWPs wrapped as PIDs.
652 Add assertions to ensure no wrapped LWPs are passed.
654 2014-09-04 Pedro Alves <palves@redhat.com>
656 * value.c (value_ranges_copy_adjusted): New function, factored out
658 (value_contents_copy_raw): ... here.
659 (unpack_value_bits_as_long_1): Rename back to ...
660 (unpack_bits_as_long): ... this. Remove 'original_value' and
661 'result' parameters. Change return type to LONGEST.
662 (unpack_value_bits_as_long): Delete.
663 (unpack_value_field_as_long_1): Delete.
664 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
665 (unpack_value_bitfield): New function.
666 (value_field_bitfield): Reimplement using unpack_value_bitfield.
667 (value_fetch_lazy): Use unpack_value_bitfield.
668 * value.h (unpack_value_bits_as_long): Delete declaration.
670 2014-09-03 Sasha Smundak <asmundak@google.com>
672 * python/py-frame.c (frapy_read_register): New function.
674 2014-09-03 James Hogan <james.hogan@imgtec.com>
676 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
677 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
679 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
682 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
684 (add_cmd): Set "completer_handle_brkchars" to NULL.
685 * cli/cli-decode.h (struct cmd_list_element)
686 <completer_handle_brkchars>: New field.
687 * command.h (completer_ftype_void): New typedef.
688 (set_cmd_completer_handle_brkchars): New prototype.
689 * completer.c (set_gdb_completion_word_break_characters): New
691 (complete_line_internal): Call "completer_handle_brkchars"
692 callback from command.
693 * completer.h: Include "command.h".
694 (set_gdb_completion_word_break_characters): New prototype.
695 * python/py-cmd.c (cmdpy_completer_helper): New function.
696 (cmdpy_completer_handle_brkchars): New function.
697 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
698 (cmdpy_init): Set completer_handle_brkchars to
699 cmdpy_completer_handle_brkchars.
701 2014-09-03 Gary Benson <gbenson@redhat.com>
703 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
704 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
705 Loop conditions changed to equivalent form.
706 (struct x86_debug_reg_state): Updated dr_ref_count comment.
707 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
708 ALL_DEBUG_ADDRESS_REGISTERS.
710 2014-09-03 Joel Brobecker <brobecker@adacore.com>
712 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
715 2014-09-02 Doug Evans <dje@google.com>
717 * typeprint.c (find_global_typedef): Fix comment.
719 2014-09-02 Gary Benson <gbenson@redhat.com>
721 * i386-nat.h: Renamed as...
722 * x86-nat.h: New file. All type, function and variable name
723 prefixes changed from "i386_" to "x86_". All references updated.
724 * i386-nat.c: Renamed as...
725 * x86-nat.c: New file. All type, function and variable name
726 prefixes changed from "i386_" to "x86_". All references updated.
727 * common/i386-xstate.h: Renamed as...
728 * common/x86-xstate.h: New file. All type, function and variable
729 name prefixes changed from "i386_" to "x86_". All references
731 * nat/i386-cpuid.h: Renamed as...
732 * nat/x86-cpuid.h: New file. All type, function and variable name
733 prefixes changed from "i386_" to "x86_". All references updated.
734 * nat/i386-gcc-cpuid.h: Renamed as...
735 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
736 name prefixes changed from "i386_" to "x86_". All references
738 * nat/i386-dregs.h: Renamed as...
739 * nat/x86-dregs.h: New file. All type, function and variable name
740 prefixes changed from "i386_" to "x86_". All references updated.
741 * nat/i386-dregs.c: Renamed as...
742 * nat/x86-dregs.c: New file. All type, function and variable name
743 prefixes changed from "i386_" to "x86_". All references updated.
745 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
747 * varobj.c (_initialize_varobj): Move to the end of file.
749 2014-08-29 Gary Benson <gbenson@redhat.com>
751 * common/common-exceptions.h: New file.
752 * common/common-exceptions.c: Likewise.
753 * Makefile.in (SFILES): Add common/common-exceptions.c.
754 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
755 (COMMON_OBS): Add common-exceptions.o.
756 (common-exceptions.o): New rule.
757 * exceptions.h (common-exceptions.h): Include.
758 (gdb_setjmp.h): Do not include.
759 (return_reason): Moved to common-exceptions.h.
760 (enum return_reason): Likewise.
761 (RETURN_MASK): Likewise.
762 (typedef return_mask): Likewise.
763 (enum errors): Likewise.
764 (struct gdb_exception): Likewise.
765 (exceptions_state_mc_init): Likewise.
766 (exceptions_state_mc_action_iter): Likewise.
767 (exceptions_state_mc_action_iter_1): Likewise.
768 (TRY_CATCH): Likewise.
769 (throw_exception): Likewise.
770 (throw_verror): Likewise.
771 (throw_vquit): Likewise.
772 (throw_error): Likewise.
773 (throw_quit): Likewise.
774 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
775 (enum catcher_action): Likewise.
776 (struct catcher): Likewise.
777 (current_catcher): Likewise.
778 (catcher_list_size): Likewise.
779 (exceptions_state_mc_init): Likewise.
780 (catcher_pop): Likewise.
781 (exceptions_state_mc): Likewise.
782 (exceptions_state_mc_action_iter): Likewise.
783 (exceptions_state_mc_action_iter_1): Likewise.
784 (throw_exception): Likewise.
785 (exception_messages): Likewise.
786 (exception_messages_size): Likewise.
787 (throw_it): Likewise.
788 (throw_verror): Likewise.
789 (throw_vquit): Likewise.
790 (throw_error): Likewise.
791 (throw_quit): Likewise.
792 (prepare_to_throw_exception): New function.
794 2014-08-29 Gary Benson <gbenson@redhat.com>
796 * common/gdb_setjmp.h: New file.
797 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
798 * configure.ac: Move sigsetjmp check...
799 * common/common.m4: ...here.
800 * configure: Regenerate.
801 * cp-support.c (SIGJMP_BUF): Delete.
802 (SIGSETJMP): Likewise.
803 (SIGLONGJMP): Likewise.
804 * exceptions.h (gdb_setjmp.h): Include.
805 (setjmp.h): Do not include.
806 (EXCEPTIONS_SIGJMP_BUF): Delete.
807 (EXCEPTIONS_SIGSETJMP): Likewise.
808 (EXCEPTIONS_SIGLONGJMP): Likewise.
809 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
811 * exceptions.c: Likewise.
813 2014-08-29 Gary Benson <gbenson@redhat.com>
815 * cleanups.h: Moved to...
816 * common/cleanups.h: New file.
817 * cleanups.c: Moved to...
818 * common/cleanups.c: New file. Include common-defs.h and
819 cleanups.h. Do not include defs.h.
820 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
821 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
822 (cleanups.o): New rule.
824 2014-08-29 Gary Benson <gbenson@redhat.com>
826 * common/errors.h (internal_warning): New declaration.
827 (internal_vwarning): Likewise.
828 * common/errors.c (internal_warning): New function.
829 * utils.h (internal_warning): Don't declare.
830 (internal_vwarning): Likewise.
831 * utils.c (internal_warning): Removed.
833 2014-08-29 Gary Benson <gbenson@redhat.com>
835 * main.c (captured_main): Use warning during startup.
836 Prefix startup warning messages with command name.
838 2014-08-29 Gary Benson <gbenson@redhat.com>
840 * main.c (captured_main): Handle usage errors with error.
842 2014-08-29 Gary Benson <gbenson@redhat.com>
844 * go32-nat.c (go32_create_inferior): Replace a fprintf/
845 exit pair with a call to error. Wrap the message with _().
847 2014-08-29 Gary Benson <gbenson@redhat.com>
849 * main.c (captured_main): Replace a fprintf/exit
850 pair with a call to error. Wrap the message with _().
852 2014-08-29 Gary Benson <gbenson@redhat.com>
854 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
855 pairs with calls to error. Wrap the message with _().
857 2014-08-29 Gary Benson <gbenson@redhat.com>
859 * utils.c (vwarning): Protect calls to target_terminal_ours
862 2014-08-29 Gary Benson <gbenson@redhat.com>
864 * exceptions.c (print_flush): Protect calls to
865 target_terminal_ours and wrap_here.
867 2014-08-29 Gary Benson <gbenson@redhat.com>
869 * utils.h (filtered_printing_initialized): New declaration.
870 * utils.c (abort_with_message): New function.
871 (internal_vproblem): Use abort_with_message for first level
872 recursive internal problems, and if gdb_stderr is not set up.
873 Protect calls to target_terminal_ours, begin_line and query.
875 2014-08-28 Doug Evans <dje@google.com>
877 * symtab.c (in_prologue): Move definition to better spot.
878 (skip_prologue_using_sal): Ditto.
880 2014-08-28 Doug Evans <dje@google.com>
882 * symtab.c (find_function_start_sal): Move definition to better spot.
884 2014-08-28 Yao Qi <yao@codesourcery.com>
886 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
887 found_stack_adjust in forward scan. Remove condition check
888 on found_stack_adjust which is always true. Indent the code.
890 2014-08-28 Yao Qi <yao@codesourcery.com>
892 * dwarf2read.c (dwarf_decode_lines): Update declaration.
893 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
894 (dwarf_decode_lines): Remove argument
895 want_line_info. Remove condition check on want_line_info.
898 2014-08-27 Doug Evans <dje@google.com>
900 * dwarf2read.c (dwarf_record_line): Fix typo.
902 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
904 * target.h (struct target_ops::to_terminal_save_ours): Remove
906 (target_terminal_save_ours): Remove macro.
907 * target-delegates.c: Regenerate.
908 * inf-child.c (inf_child_target): Don't set the nonexistent
909 field to_terminal_save_ours.
910 * inferior.h (child_terminal_save_ours): Remove declaration.
911 * terminal.h (gdb_save_tty_state): New declaration.
912 * inflow.c (child_terminal_save_ours): Rename to ...
913 (gdb_save_tty_state): ... this.
914 * tui/tui.c: Include terminal.h.
915 (tui_enable): Use gdb_save_tty_state instead of
916 target_terminal_save_ours.
917 (tui_disable): Likewise.
919 2014-08-25 Doug Evans <dje@google.com>
921 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
922 Pass NULL instead of 0 for context pointer.
924 2014-08-25 Yao Qi <yao@codesourcery.com>
926 * dwarf2read.c: Fix grammatical error.
928 2014-08-24 Yao Qi <yao@codesourcery.com>
930 * dwarf2read.c (scan_partial_symbols): Update comments.
931 Rename argument 'need_pc' with 'set_addrmap'.
932 (add_partial_namespace): Rename argument 'need_pc' with
934 (add_partial_module): Likewise.
935 (add_partial_subprogram): Likewise. Update comments.
936 (dwarf2_name): Fix typo.
938 2014-08-22 Doug Evans <dje@google.com>
941 * dwarf2read.c (dwarf_record_line_p): New function.
942 (dwarf_decode_lines_1): Ignore subsequent line number entries
943 for the same line if any entry had a non-zero discriminator.
945 2014-08-22 Doug Evans <dje@google.com>
947 * buildsym.h (record_line_ftype): New typedef.
948 (record_line): Use it.
949 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
950 (dwarf_decode_lines_1): Call them.
952 2014-08-22 Yao Qi <yao@codesourcery.com>
954 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
955 (ctf_end): Remove code.
957 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
959 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
960 (linux_make_corefile_notes): call update_thread_list, protected against
963 2014-08-21 Pedro Alves <palves@redhat.com>
965 * infcmd.c (attach_command): Remove comment.
967 2014-08-21 Bin Cheng <bin.cheng@arm.com>
969 * aarch64-linux-nat.c (dr_changed_t): Change the type from
970 unsigned LONGEST to ULONGEST.
972 2014-08-20 Pedro Alves <palves@redhat.com>
974 * Makefile.in (check-read1): New rule.
976 2014-08-20 Joel Brobecker <brobecker@adacore.com>
978 * value.c (value_from_contents_and_address): Strip resolved_type's
979 typedef layers before checking its TYPE_DATA_LOCATION.
981 2014-08-20 Pedro Alves <palves@redhat.com>
983 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
985 2014-08-20 Yao Qi <yao@codesourcery.com>
987 * amd64-tdep.c (amd64_classify): Add a blank line after the
988 example. Move "*/" to a new line.
989 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
990 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
991 * dwarf2read.c (psymtab_include_file_name): Likewise.
993 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
994 Pedro Alves <palves@redhat.com>
998 * ada-lang.c (coerce_unspec_val_to_type): Use
999 value_contents_copy_raw.
1000 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1001 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1002 * cp-valprint.c (cp_print_value_fields): Let the common printing
1003 code handle optimized out values.
1004 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1005 * d-valprint.c (dynamic_array_type): Use
1006 value_bits_any_optimized_out.
1007 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1008 check_any_valid fields.
1009 (check_pieced_value_bits): Delete and inline ...
1010 (check_pieced_synthetic_pointer): ... here.
1011 (check_pieced_value_validity): Delete.
1012 (check_pieced_value_invalid): Delete.
1013 (pieced_value_funcs): Remove check_validity and check_any_valid
1015 (read_pieced_value): Use mark_value_bits_optimized_out.
1016 (write_pieced_value): Switch to use
1017 mark_value_bytes_optimized_out.
1018 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1019 of assuming the whole value is optimized out.
1020 * findvar.c (read_frame_register_value): Remove special handling
1021 of optimized out registers.
1022 (value_from_register): Use mark_value_bytes_optimized_out.
1023 * frame-unwind.c (frame_unwind_got_optimized): Use
1024 mark_value_bytes_optimized_out.
1025 * jv-valprint.c (java_value_print): Adjust.
1026 (java_print_value_fields): Let the common printing code handle
1027 optimized out values.
1028 * mips-tdep.c (mips_print_register): Remove special handling of
1029 optimized out registers.
1030 * opencl-lang.c (lval_func_check_validity): Delete.
1031 (lval_func_check_any_valid): Delete.
1032 (opencl_value_funcs): Remove check_validity and check_any_valid
1034 * p-valprint.c (pascal_object_print_value_fields): Let the common
1035 printing code handle optimized out values.
1036 * stack.c (read_frame_arg): Remove special handling of optimized
1037 out values. Fetch both VAL and ENTRYVAL before comparing
1038 contents. Adjust to value_available_contents_eq rename.
1039 * valprint.c (valprint_check_validity)
1040 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1041 (val_print_array_elements): Adjust.
1042 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1043 (value_bits_any_optimized_out): New function.
1044 (value_entirely_covered_by_range_vector): New function, factored
1045 out from value_entirely_unavailable.
1046 (value_entirely_unavailable): Reimplement.
1047 (value_entirely_optimized_out): New function.
1048 (insert_into_bit_range_vector): New function, factored out from
1049 mark_value_bits_unavailable.
1050 (mark_value_bits_unavailable): Reimplement.
1051 (struct ranges_and_idx): New struct.
1052 (find_first_range_overlap_and_match): New function, factored out
1053 from value_available_contents_bits_eq.
1054 (value_available_contents_bits_eq): Rename to ...
1055 (value_contents_bits_eq): ... this. Check both unavailable
1056 contents and optimized out contents.
1057 (value_available_contents_eq): Rename to ...
1058 (value_contents_eq): ... this.
1059 (allocate_value_lazy): Remove reference to the old optimized_out
1061 (allocate_optimized_out_value): Use
1062 mark_value_bytes_optimized_out.
1063 (require_not_optimized_out): Adjust to check whether the
1064 optimized_out vec is empty.
1065 (ranges_copy_adjusted): New function, factored out from
1066 value_contents_copy_raw.
1067 (value_contents_copy_raw): Also copy the optimized out ranges.
1068 Assert the destination ranges aren't optimized out.
1069 (value_contents_copy): Update comment, remove call to
1070 require_not_optimized_out.
1071 (value_contents_equal): Adjust to check whether the optimized_out
1073 (set_value_optimized_out, value_optimized_out_const): Delete.
1074 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1076 (value_entirely_optimized_out, value_bits_valid): Delete.
1077 (value_copy): Take a VEC copy of the 'optimized_out' field.
1078 (value_primitive_field): Remove special handling of optimized out.
1079 (value_fetch_lazy): Assert that lazy values have no unavailable
1080 regions. Use value_bits_any_optimized_out. Remove some special
1081 handling for optimized out values.
1082 * value.h: Add intro comment about <optimized out> and
1084 (struct lval_funcs): Remove check_validity and check_any_valid
1086 (set_value_optimized_out, value_optimized_out_const): Remove.
1087 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1089 (value_bits_any_optimized_out): New declaration.
1090 (value_bits_valid): Delete declaration.
1091 (value_available_contents_eq): Rename to ...
1092 (value_contents_eq): ... this, and extend comments.
1094 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1096 Fix -fsanitize=address on unreadable inferior strings.
1097 * valprint.c (val_print_string): Fix access before BUFFER.
1099 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1101 * target.c (target_struct_size): Remove.
1102 (target_struct_allocsize): Remove.
1103 (DEFAULT_ALLOCSIZE): Remove.
1104 (target_ops_p): New typedef.
1105 (DEF_VEC_P (target_ops_p)): New vector type.
1106 (target_structs): Change type to VEC (target_ops_p).
1107 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1108 (find_default_run_target): Rewrite for loop following changes to
1111 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1113 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1114 Adjust code accordingly. Adjust function description comment.
1116 2014-08-19 Yao Qi <yao@codesourcery.com>
1118 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1121 2014-08-19 Alan Modra <amodra@gmail.com>
1123 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1124 * config.in: Regenerate.
1125 * configure: Regenerate.
1127 2014-08-19 Tom Tromey <tromey@redhat.com>
1128 Gary Benson <gbenson@redhat.com>
1130 * common/common-debug.h: New file.
1131 * common/common-debug.c: Likewise.
1132 * debug.c: Likewise.
1133 * Makefile.in (SFILES): Add common/common-debug.c.
1134 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1135 (COMMON_OBS): Add common-debug.o and debug.o.
1136 (common-debug.o): New rule.
1137 * common/common-defs.h: Include common-debug.h.
1138 * common/agent.c (debug_agent_printf): New function.
1139 (DEBUG_AGENT): Redefine.
1140 * nat/i386-dregs.c (debug_printf): Undefine.
1142 2014-08-19 Gary Benson <gbenson@redhat.com>
1144 * common/common-defs.h: Include print-utils.h.
1145 * utils.h: Do not include print-utils.h.
1147 2014-08-19 Tom Tromey <tromey@redhat.com>
1148 Gary Benson <gbenson@redhat.com>
1150 * common/common-types.h: New file.
1151 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1152 * common/common-defs.h: Include common-types.h.
1153 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1156 2014-08-19 Tom Tromey <tromey@redhat.com>
1157 Gary Benson <gbenson@redhat.com>
1159 * common/errors.h: New file.
1160 * common/errors.c: Likewise.
1161 * Makefile.in (SFILES): Add common/errors.c.
1162 (HFILES_NO_SRCDIR): Add common/errors.h.
1163 (COMMON_OBS): Add errors.o.
1164 (errors.o): New rule.
1165 * common/common-defs.h: Include errors.h.
1166 * utils.h (perror_with_name, error, verror, warning, vwarning):
1168 * common/common-utils.h: (malloc_failure, internal_error):
1171 2014-08-19 Gary Benson <gbenson@redhat.com>
1173 * utils.c (internal_vproblem): Always print the message.
1175 2014-08-18 Doug Evans <dje@google.com>
1177 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1179 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1181 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1182 Return 0 if TYPE is dynamic.
1183 (print_range): Add handling of dynamic ranges.
1185 2014-08-18 Keven Boell <keven.boell@intel.com>
1186 Joel Brobecker <brobecker@adacore.com>
1188 * gdbtypes.h (struct main_type): Add field "data_location".
1189 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1190 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1191 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1192 a dynamic data location.
1193 (resolve_dynamic_type): Add DW_AT_data_location handling.
1194 (copy_recursive, copy_type): Copy the data_location information
1196 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1197 * value.c (value_from_contents_and_address): Add
1198 DW_AT_data_location handling.
1200 2014-08-18 Keven Boell <keven.boell@intel.com>
1201 Joel Brobecker <brobecker@adacore.com>
1203 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1204 field "get_object_address".
1205 * dwarf2expr.c (execute_stack_op): Add handling for
1206 DW_OP_push_object_address.
1207 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1208 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1209 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1210 (dwarf_expr_get_obj_addr): New function.
1211 (dwarf_expr_ctx_funcs): Add get_object_address field.
1212 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1213 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1214 (dwarf2_evaluate_property): Add parameter "address". Use it.
1215 (needs_get_obj_addr): New function.
1216 (needs_frame_ctx_funcs): Add get_object_address field.
1217 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1218 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1219 (resolve_dynamic_array): Likewise.
1221 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1223 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1224 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1225 fixed value for records and unions for which some GNAT encodings
1228 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1230 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1231 rewrite to avoid "else if" and "else" constructs. Should be
1232 a no-op in practice.
1234 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1236 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1239 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1242 * eval.c: Update all calls to find_overload_match.
1243 * valarith.c: Likewise.
1244 (value_user_defined_cpp_op, value_user_defined_op): New
1245 argument NOSIDE. Update all callers.
1246 * valops.c (find_overload_match): New argument NOSIDE.
1247 * value.h (find_overload_match): Update signature.
1249 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1251 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1252 'items' methods instead of 'iteritems' method on dictionaries.
1254 2014-08-15 Doug Evans <dje@google.com>
1256 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1259 2014-08-15 Doug Evans <dje@google.com>
1261 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1263 2014-08-15 Doug Evans <dje@google.com>
1265 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1267 2014-08-15 Doug Evans <dje@google.com>
1269 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1272 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1274 * dcache.h: Include target.h, to avoid compile time warnings.
1276 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1278 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1279 frame_info" partial declaration.
1280 * gdbarch.h: Regenerate.
1282 2014-08-15 Yao Qi <yao@codesourcery.com>
1284 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1285 Add parameter 'decode_for_pst_p'. Callers update.
1287 2014-08-13 Yao Qi <yao@codesourcery.com>
1290 * configure.ac: Use local variable 'pos'.
1291 * configure: Regenerated.
1293 2014-08-11 Doug Evans <dje@google.com>
1295 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1296 message, it is redundant with "Reading symbols from ..." message.
1298 2014-08-10 Doug Evans <xdje42@gmail.com>
1300 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1302 2014-08-09 Yao Qi <yao@codesourcery.com>
1305 * remote.c (remote_xfer_partial): Remove dead code.
1307 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1309 * ia64-linux-tdep.c: Include "regset.h".
1310 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1311 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1312 (ia64_linux_supply_fpregset): New function.
1313 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1314 (ia64_linux_regset_from_core_section): New function.
1315 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1318 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1320 * m68klinux-tdep.c: Include "regset.h".
1321 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1322 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1323 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1324 (m68k_linux_regset_from_core_section): New function.
1325 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1328 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1330 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1331 function. Move logic to...
1332 (tilegx_linux_regmap): ... this new register map.
1333 (tilegx_linux_regset): Refer to register map, replace supply
1334 method by regcache_supply_regset, and add collect method.
1335 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1336 TILEGX_FIRST_EASY_REGNUM.
1338 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1340 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1341 that calls regcache_supply_regset and handles the EPC register
1342 separately. Move main logic to...
1343 (score7_linux_gregmap): ... this new register map.
1344 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1345 (score7_linux_gregset): Refer to register map. Add collect method.
1346 (score7_linux_regset_from_core_section): Replace
1347 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1348 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1349 (struct regset): Delete unused forward declaraction.
1350 (struct pt_regs): Delete structure definition.
1351 (elf_gregset_t): Delete typedef.
1353 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1355 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1356 (nios2_core_regset): Add collect method.
1358 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1360 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1361 platform-independent and don't write to read-only input buffer.
1362 (m32r_linux_collect_gregset): New function.
1363 (m32r_linux_gregset): Add collect method.
1365 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1367 * hppa-linux-tdep.c (greg_map): Rename to...
1368 (hppa_linux_gregmap): ... this. Also convert to
1369 regcache_map_entry format.
1370 (hppa_linux_supply_regset): Delete function.
1371 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1372 (hppa_linux_fpregmap): ... this new register map.
1373 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1374 register map, replace supply method by regcache_supply_regset, and
1375 add collect method regcache_collect_regset.
1377 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1379 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1380 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1381 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1382 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1383 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1384 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1385 (frv_linux_supply_gregset): Replace main logic by call to
1386 regcache_supply_regset, but keep clearing gr32-gr63.
1387 (frv_linux_supply_fpregset): Delete function.
1388 (frv_linux_gregset): Refer to appropriate register map and add
1389 regcache_collect_regset as the collect method.
1390 (frv_linux_fpregset): Likewise. Also exchange the supply method
1391 by regcache_supply_regset.
1393 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1395 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1396 by call to alpha_supply_int_regs.
1397 (alpha_linux_collect_gregset): New function.
1398 (alpha_linux_supply_fpregset): Replace logic by call to
1399 alpha_supply_fp_regs.
1400 (alpha_linux_collect_fpregset): New function.
1401 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1403 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1405 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1406 by call to regcache_collect_regset.
1407 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1408 instead of aarch64_linux_supply_gregset/_fpregset.
1409 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1410 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1411 header file instead.
1412 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1413 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1414 functions. Move logic to ...
1415 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1417 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1418 refer to new register maps, replace *_regset_from_core by
1419 regcache_supply_regset, and also use regcache_collect_regset.
1420 * aarch64-linux-tdep.h: Include "regset.h".
1421 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1423 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1424 macros, moved from C source file.
1425 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1426 variable declarations.
1428 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1430 * s390-linux-nat.c: Include "regset.h".
1431 (regmap_gregset): Delete macro.
1432 (s390_64_regmap_gregset): New register map for
1433 regcache_supply/_collect_regset.
1434 (s390_64_gregset): New regset.
1435 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1436 (regmap_fpregset): Delete macro.
1437 (s390_native_supply, s390_native_collect): Delete functions.
1438 (supply_gregset, fill_gregset): Replace s390-specific regmap
1439 handling by a call to regcache_supply/_collect_regset.
1440 (supply_fpregset, fill_fpregset): Call regcache_supply/
1441 _collect_regset instead of s390_native_supply/_collect.
1442 (fetch_regset, store_regset): Likewise. Also change the last
1443 parameter to a regset instead of a regmap.
1444 (s390_linux_fetch_inferior_registers)
1445 (390_linux_store_inferior_registers): Adjust last parameter in
1446 calls to fetch_regset and store_regset.
1447 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1448 (s390_gregmap): ... this. Also make static const and convert to
1449 regcache_map_entry format.
1450 (s390x_regmap_gregset): Delete.
1451 (s390_regmap_fpregset): Rename to...
1452 (s390_fpregmap): ... this. Make static const and convert to
1453 regcache_map_entry format.
1454 (s390_regmap_upper, s390_regmap_last_break)
1455 (s390x_regmap_last_break, s390_regmap_system_call)
1456 (s390_regmap_tdb): Likewise.
1457 (s390_supply_regset, s390_collect_regset): Remove functions.
1458 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1460 (s390_gregset, s390_fpregset, s390_upper_regset)
1461 (s390_last_break_regset, s390x_last_break_regset)
1462 (s390_system_call_regset, s390_tdb_regset): Make global and
1463 replace s390_supply/_collect_regset by regcache_supply/
1465 (s390x_gregset): Delete.
1466 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1467 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1468 (s390_regmap_fpregset, s390_regmap_last_break)
1469 (s390x_regmap_last_break, s390_regmap_system_call)
1470 (s390_regmap_tdb): Delete global variable declarations.
1471 (s390_gregset, s390_fpregset, s390_last_break_regset)
1472 (s390x_last_break_regset, s390_system_call_regset)
1473 (s390_tdb_regset): New global variable declarations.
1475 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1477 * regcache.c: Include "regset.h".
1478 (regcache_transfer_regset): New local function.
1479 (regcache_supply_regset, regcache_collect_regset): New functions.
1480 * regcache.h (struct regcache_map_entry): New structure.
1481 (REGCACHE_MAP_SKIP): New enum value.
1482 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1484 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1486 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1487 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1488 (ppc_linux_collect_gregset ): Likewise.
1489 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1490 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1491 (ppc_collect_vrregset): Likewise.
1492 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1495 2014-08-07 Yao Qi <yao@codesourcery.com>
1497 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1498 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1499 * remote.c (remote_read_bytes): Likewise.
1501 2014-08-07 Yao Qi <yao@codesourcery.com>
1503 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1505 2014-08-07 Yao Qi <yao@codesourcery.com>
1508 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1509 TARGET_XFER_OK instead of 0.
1511 2014-08-07 Gary Benson <gbenson@redhat.com>
1513 * common/common-defs.h: Include errno.h.
1514 * defs.h: Do not include errno.h.
1515 * ada-typeprint.c: Likewise.
1516 * c-typeprint.c: Likewise.
1517 * core-regset.c: Likewise.
1518 * corefile.c: Likewise.
1519 * corelow.c: Likewise.
1520 * event-loop.c: Likewise.
1521 * f-typeprint.c: Likewise.
1522 * gnu-nat.c: Likewise.
1523 * go32-nat.c: Likewise.
1524 * i386gnu-nat.c: Likewise.
1525 * m2-typeprint.c: Likewise.
1526 * nat/linux-btrace.c: Likewise.
1527 * p-typeprint.c: Likewise.
1528 * procfs.c: Likewise.
1529 * remote-sim.c: Likewise.
1530 * rs6000-nat.c: Likewise.
1531 * target.c: Likewise.
1532 * typeprint.c: Likewise.
1533 * ui-file.c: Likewise.
1534 * valops.c: Likewise.
1535 * valprint.c: Likewise.
1537 2014-08-07 Gary Benson <gbenson@redhat.com>
1539 * common/common-defs.h: Include string.h.
1540 * aarch64-tdep.c: Do not include string.h.
1541 * ada-exp.y: Likewise.
1542 * ada-lang.c: Likewise.
1543 * ada-lex.l: Likewise.
1544 * ada-typeprint.c: Likewise.
1545 * ada-valprint.c: Likewise.
1546 * aix-thread.c: Likewise.
1547 * alpha-linux-tdep.c: Likewise.
1548 * alpha-mdebug-tdep.c: Likewise.
1549 * alpha-nat.c: Likewise.
1550 * alpha-osf1-tdep.c: Likewise.
1551 * alpha-tdep.c: Likewise.
1552 * alphanbsd-tdep.c: Likewise.
1553 * amd64-dicos-tdep.c: Likewise.
1554 * amd64-linux-tdep.c: Likewise.
1555 * amd64-nat.c: Likewise.
1556 * amd64-sol2-tdep.c: Likewise.
1557 * amd64fbsd-tdep.c: Likewise.
1558 * amd64obsd-tdep.c: Likewise.
1559 * arch-utils.c: Likewise.
1560 * arm-linux-nat.c: Likewise.
1561 * arm-linux-tdep.c: Likewise.
1562 * arm-tdep.c: Likewise.
1563 * arm-wince-tdep.c: Likewise.
1564 * armbsd-tdep.c: Likewise.
1565 * armnbsd-nat.c: Likewise.
1566 * armnbsd-tdep.c: Likewise.
1567 * armobsd-tdep.c: Likewise.
1568 * avr-tdep.c: Likewise.
1569 * ax-gdb.c: Likewise.
1570 * ax-general.c: Likewise.
1571 * bcache.c: Likewise.
1572 * bfin-tdep.c: Likewise.
1573 * breakpoint.c: Likewise.
1574 * build-id.c: Likewise.
1575 * buildsym.c: Likewise.
1576 * c-exp.y: Likewise.
1577 * c-lang.c: Likewise.
1578 * c-typeprint.c: Likewise.
1579 * c-valprint.c: Likewise.
1580 * charset.c: Likewise.
1581 * cli-out.c: Likewise.
1582 * cli/cli-cmds.c: Likewise.
1583 * cli/cli-decode.c: Likewise.
1584 * cli/cli-dump.c: Likewise.
1585 * cli/cli-interp.c: Likewise.
1586 * cli/cli-logging.c: Likewise.
1587 * cli/cli-script.c: Likewise.
1588 * cli/cli-setshow.c: Likewise.
1589 * cli/cli-utils.c: Likewise.
1590 * coffread.c: Likewise.
1591 * common/agent.c: Likewise.
1592 * common/buffer.c: Likewise.
1593 * common/buffer.h: Likewise.
1594 * common/common-utils.c: Likewise.
1595 * common/filestuff.c: Likewise.
1596 * common/filestuff.c: Likewise.
1597 * common/format.c: Likewise.
1598 * common/print-utils.c: Likewise.
1599 * common/rsp-low.c: Likewise.
1600 * common/signals.c: Likewise.
1601 * common/vec.h: Likewise.
1602 * common/xml-utils.c: Likewise.
1603 * core-regset.c: Likewise.
1604 * corefile.c: Likewise.
1605 * corelow.c: Likewise.
1606 * cp-abi.c: Likewise.
1607 * cp-name-parser.y: Likewise.
1608 * cp-support.c: Likewise.
1609 * cp-valprint.c: Likewise.
1610 * cris-tdep.c: Likewise.
1611 * d-exp.y: Likewise.
1612 * darwin-nat.c: Likewise.
1613 * dbxread.c: Likewise.
1614 * dcache.c: Likewise.
1615 * demangle.c: Likewise.
1616 * dicos-tdep.c: Likewise.
1617 * disasm.c: Likewise.
1618 * doublest.c: Likewise.
1619 * dsrec.c: Likewise.
1620 * dummy-frame.c: Likewise.
1621 * dwarf2-frame.c: Likewise.
1622 * dwarf2loc.c: Likewise.
1623 * dwarf2read.c: Likewise.
1624 * elfread.c: Likewise.
1625 * environ.c: Likewise.
1627 * event-loop.c: Likewise.
1628 * exceptions.c: Likewise.
1630 * expprint.c: Likewise.
1631 * f-exp.y: Likewise.
1632 * f-lang.c: Likewise.
1633 * f-typeprint.c: Likewise.
1634 * f-valprint.c: Likewise.
1635 * fbsd-nat.c: Likewise.
1636 * findcmd.c: Likewise.
1637 * findvar.c: Likewise.
1638 * fork-child.c: Likewise.
1639 * frame.c: Likewise.
1640 * frv-linux-tdep.c: Likewise.
1641 * frv-tdep.c: Likewise.
1643 * gdb_bfd.c: Likewise.
1644 * gdbarch.c: Likewise.
1645 * gdbarch.sh: Likewise.
1646 * gdbtypes.c: Likewise.
1647 * gnu-nat.c: Likewise.
1648 * gnu-v2-abi.c: Likewise.
1649 * gnu-v3-abi.c: Likewise.
1650 * go-exp.y: Likewise.
1651 * go-lang.c: Likewise.
1652 * go32-nat.c: Likewise.
1653 * guile/guile.c: Likewise.
1654 * guile/scm-auto-load.c: Likewise.
1655 * hppa-hpux-tdep.c: Likewise.
1656 * hppa-linux-nat.c: Likewise.
1657 * hppanbsd-tdep.c: Likewise.
1658 * hppaobsd-tdep.c: Likewise.
1659 * i386-cygwin-tdep.c: Likewise.
1660 * i386-dicos-tdep.c: Likewise.
1661 * i386-linux-tdep.c: Likewise.
1662 * i386-nto-tdep.c: Likewise.
1663 * i386-sol2-tdep.c: Likewise.
1664 * i386-tdep.c: Likewise.
1665 * i386bsd-tdep.c: Likewise.
1666 * i386gnu-nat.c: Likewise.
1667 * i386nbsd-tdep.c: Likewise.
1668 * i386obsd-tdep.c: Likewise.
1669 * i387-tdep.c: Likewise.
1670 * ia64-libunwind-tdep.c: Likewise.
1671 * ia64-linux-nat.c: Likewise.
1672 * inf-child.c: Likewise.
1673 * inf-ptrace.c: Likewise.
1674 * inf-ttrace.c: Likewise.
1675 * infcall.c: Likewise.
1676 * infcmd.c: Likewise.
1677 * inflow.c: Likewise.
1678 * infrun.c: Likewise.
1679 * interps.c: Likewise.
1680 * iq2000-tdep.c: Likewise.
1681 * irix5-nat.c: Likewise.
1682 * jv-exp.y: Likewise.
1683 * jv-lang.c: Likewise.
1684 * jv-typeprint.c: Likewise.
1685 * jv-valprint.c: Likewise.
1686 * language.c: Likewise.
1687 * linux-fork.c: Likewise.
1688 * linux-nat.c: Likewise.
1689 * lm32-tdep.c: Likewise.
1690 * m2-exp.y: Likewise.
1691 * m2-typeprint.c: Likewise.
1692 * m32c-tdep.c: Likewise.
1693 * m32r-linux-nat.c: Likewise.
1694 * m32r-linux-tdep.c: Likewise.
1695 * m32r-rom.c: Likewise.
1696 * m32r-tdep.c: Likewise.
1697 * m68hc11-tdep.c: Likewise.
1698 * m68k-tdep.c: Likewise.
1699 * m68kbsd-tdep.c: Likewise.
1700 * m68klinux-nat.c: Likewise.
1701 * m68klinux-tdep.c: Likewise.
1702 * m88k-tdep.c: Likewise.
1703 * machoread.c: Likewise.
1704 * macrocmd.c: Likewise.
1706 * mdebugread.c: Likewise.
1707 * mem-break.c: Likewise.
1708 * memattr.c: Likewise.
1709 * memory-map.c: Likewise.
1710 * mep-tdep.c: Likewise.
1711 * mi/mi-cmd-break.c: Likewise.
1712 * mi/mi-cmd-disas.c: Likewise.
1713 * mi/mi-cmd-env.c: Likewise.
1714 * mi/mi-cmd-stack.c: Likewise.
1715 * mi/mi-cmd-var.c: Likewise.
1716 * mi/mi-cmds.c: Likewise.
1717 * mi/mi-console.c: Likewise.
1718 * mi/mi-getopt.c: Likewise.
1719 * mi/mi-interp.c: Likewise.
1720 * mi/mi-main.c: Likewise.
1721 * mi/mi-parse.c: Likewise.
1722 * microblaze-rom.c: Likewise.
1723 * microblaze-tdep.c: Likewise.
1724 * mingw-hdep.c: Likewise.
1725 * minidebug.c: Likewise.
1726 * minsyms.c: Likewise.
1727 * mips-irix-tdep.c: Likewise.
1728 * mips-linux-tdep.c: Likewise.
1729 * mips-tdep.c: Likewise.
1730 * mips64obsd-tdep.c: Likewise.
1731 * mipsnbsd-tdep.c: Likewise.
1732 * mipsread.c: Likewise.
1733 * mn10300-linux-tdep.c: Likewise.
1734 * mn10300-tdep.c: Likewise.
1735 * monitor.c: Likewise.
1736 * moxie-tdep.c: Likewise.
1737 * mt-tdep.c: Likewise.
1738 * nat/linux-btrace.c: Likewise.
1739 * nat/linux-osdata.c: Likewise.
1740 * nat/linux-procfs.c: Likewise.
1741 * nat/linux-ptrace.c: Likewise.
1742 * nat/linux-waitpid.c: Likewise.
1743 * nbsd-tdep.c: Likewise.
1744 * nios2-linux-tdep.c: Likewise.
1745 * nto-procfs.c: Likewise.
1746 * nto-tdep.c: Likewise.
1747 * objc-lang.c: Likewise.
1748 * objfiles.c: Likewise.
1749 * opencl-lang.c: Likewise.
1750 * osabi.c: Likewise.
1751 * osdata.c: Likewise.
1752 * p-exp.y: Likewise.
1753 * p-lang.c: Likewise.
1754 * p-typeprint.c: Likewise.
1755 * parse.c: Likewise.
1756 * posix-hdep.c: Likewise.
1757 * ppc-linux-nat.c: Likewise.
1758 * ppc-sysv-tdep.c: Likewise.
1759 * ppcfbsd-tdep.c: Likewise.
1760 * ppcnbsd-tdep.c: Likewise.
1761 * ppcobsd-tdep.c: Likewise.
1762 * printcmd.c: Likewise.
1763 * procfs.c: Likewise.
1764 * prologue-value.c: Likewise.
1765 * python/py-auto-load.c: Likewise.
1766 * python/py-gdb-readline.c: Likewise.
1767 * ravenscar-thread.c: Likewise.
1768 * regcache.c: Likewise.
1769 * registry.c: Likewise.
1770 * remote-fileio.c: Likewise.
1771 * remote-m32r-sdi.c: Likewise.
1772 * remote-mips.c: Likewise.
1773 * remote-notif.c: Likewise.
1774 * remote-sim.c: Likewise.
1775 * remote.c: Likewise.
1776 * reverse.c: Likewise.
1777 * rs6000-aix-tdep.c: Likewise.
1778 * ser-base.c: Likewise.
1779 * ser-go32.c: Likewise.
1780 * ser-mingw.c: Likewise.
1781 * ser-pipe.c: Likewise.
1782 * ser-tcp.c: Likewise.
1783 * ser-unix.c: Likewise.
1784 * serial.c: Likewise.
1785 * sh-tdep.c: Likewise.
1786 * sh64-tdep.c: Likewise.
1787 * shnbsd-tdep.c: Likewise.
1789 * sol-thread.c: Likewise.
1790 * solib-dsbt.c: Likewise.
1791 * solib-frv.c: Likewise.
1792 * solib-osf.c: Likewise.
1793 * solib-som.c: Likewise.
1794 * solib-spu.c: Likewise.
1795 * solib-target.c: Likewise.
1796 * solib.c: Likewise.
1797 * somread.c: Likewise.
1798 * source.c: Likewise.
1799 * sparc-nat.c: Likewise.
1800 * sparc-sol2-tdep.c: Likewise.
1801 * sparc-tdep.c: Likewise.
1802 * sparc64-tdep.c: Likewise.
1803 * sparc64fbsd-tdep.c: Likewise.
1804 * sparc64nbsd-tdep.c: Likewise.
1805 * sparcnbsd-tdep.c: Likewise.
1806 * spu-linux-nat.c: Likewise.
1807 * spu-multiarch.c: Likewise.
1808 * spu-tdep.c: Likewise.
1809 * stabsread.c: Likewise.
1810 * stack.c: Likewise.
1811 * std-regs.c: Likewise.
1812 * symfile.c: Likewise.
1813 * symmisc.c: Likewise.
1814 * symtab.c: Likewise.
1815 * target.c: Likewise.
1816 * thread.c: Likewise.
1817 * tilegx-linux-nat.c: Likewise.
1818 * tilegx-tdep.c: Likewise.
1820 * tracepoint.c: Likewise.
1821 * tui/tui-command.c: Likewise.
1822 * tui/tui-data.c: Likewise.
1823 * tui/tui-disasm.c: Likewise.
1824 * tui/tui-file.c: Likewise.
1825 * tui/tui-layout.c: Likewise.
1826 * tui/tui-out.c: Likewise.
1827 * tui/tui-regs.c: Likewise.
1828 * tui/tui-source.c: Likewise.
1829 * tui/tui-stack.c: Likewise.
1830 * tui/tui-win.c: Likewise.
1831 * tui/tui-windata.c: Likewise.
1832 * tui/tui-winsource.c: Likewise.
1833 * typeprint.c: Likewise.
1834 * ui-file.c: Likewise.
1835 * ui-out.c: Likewise.
1836 * user-regs.c: Likewise.
1837 * utils.c: Likewise.
1838 * v850-tdep.c: Likewise.
1839 * valarith.c: Likewise.
1840 * valops.c: Likewise.
1841 * valprint.c: Likewise.
1842 * value.c: Likewise.
1843 * varobj.c: Likewise.
1844 * vax-tdep.c: Likewise.
1845 * vaxnbsd-tdep.c: Likewise.
1846 * vaxobsd-tdep.c: Likewise.
1847 * windows-nat.c: Likewise.
1848 * xcoffread.c: Likewise.
1849 * xml-support.c: Likewise.
1850 * xstormy16-tdep.c: Likewise.
1851 * xtensa-linux-nat.c: Likewise.
1853 2014-08-07 Gary Benson <gbenson@redhat.com>
1855 * common/common-defs.h: Include gdb_assert.h.
1856 * aarch64-tdep.c: Do not include gdb_assert.h.
1857 * addrmap.c: Likewise.
1858 * aix-thread.c: Likewise.
1859 * alpha-linux-tdep.c: Likewise.
1860 * alpha-mdebug-tdep.c: Likewise.
1861 * alphanbsd-tdep.c: Likewise.
1862 * amd64-nat.c: Likewise.
1863 * amd64-tdep.c: Likewise.
1864 * amd64bsd-nat.c: Likewise.
1865 * amd64fbsd-nat.c: Likewise.
1866 * amd64fbsd-tdep.c: Likewise.
1867 * amd64nbsd-nat.c: Likewise.
1868 * amd64nbsd-tdep.c: Likewise.
1869 * amd64obsd-nat.c: Likewise.
1870 * amd64obsd-tdep.c: Likewise.
1871 * arch-utils.c: Likewise.
1872 * arm-tdep.c: Likewise.
1873 * armbsd-tdep.c: Likewise.
1875 * bcache.c: Likewise.
1876 * bfin-tdep.c: Likewise.
1877 * blockframe.c: Likewise.
1878 * breakpoint.c: Likewise.
1879 * bsd-kvm.c: Likewise.
1880 * bsd-uthread.c: Likewise.
1881 * buildsym.c: Likewise.
1882 * c-exp.y: Likewise.
1883 * c-lang.c: Likewise.
1884 * charset.c: Likewise.
1885 * cleanups.c: Likewise.
1886 * cli-out.c: Likewise.
1887 * cli/cli-decode.c: Likewise.
1888 * cli/cli-dump.c: Likewise.
1889 * cli/cli-logging.c: Likewise.
1890 * cli/cli-script.c: Likewise.
1891 * cli/cli-utils.c: Likewise.
1892 * coffread.c: Likewise.
1893 * common/common-utils.c: Likewise.
1894 * common/queue.h: Likewise.
1895 * common/signals.c: Likewise.
1896 * common/vec.h: Likewise.
1897 * complaints.c: Likewise.
1898 * completer.c: Likewise.
1899 * corelow.c: Likewise.
1900 * cp-abi.c: Likewise.
1901 * cp-name-parser.y: Likewise.
1902 * cp-namespace.c: Likewise.
1903 * cp-support.c: Likewise.
1904 * cris-tdep.c: Likewise.
1905 * dbxread.c: Likewise.
1906 * dictionary.c: Likewise.
1907 * doublest.c: Likewise.
1908 * dsrec.c: Likewise.
1909 * dummy-frame.c: Likewise.
1910 * dwarf2-frame-tailcall.c: Likewise.
1911 * dwarf2-frame.c: Likewise.
1912 * dwarf2expr.c: Likewise.
1913 * dwarf2loc.c: Likewise.
1914 * dwarf2read.c: Likewise.
1916 * event-loop.c: Likewise.
1917 * exceptions.c: Likewise.
1918 * expprint.c: Likewise.
1919 * f-valprint.c: Likewise.
1920 * fbsd-nat.c: Likewise.
1921 * findvar.c: Likewise.
1922 * frame-unwind.c: Likewise.
1923 * frame.c: Likewise.
1924 * frv-tdep.c: Likewise.
1925 * gcore.c: Likewise.
1926 * gdb-dlfcn.c: Likewise.
1927 * gdb_bfd.c: Likewise.
1928 * gdbarch.c: Likewise.
1929 * gdbarch.sh: Likewise.
1930 * gdbtypes.c: Likewise.
1931 * gnu-nat.c: Likewise.
1932 * gnu-v3-abi.c: Likewise.
1933 * go-lang.c: Likewise.
1934 * guile/scm-exception.c: Likewise.
1935 * guile/scm-gsmob.c: Likewise.
1936 * guile/scm-lazy-string.c: Likewise.
1937 * guile/scm-math.c: Likewise.
1938 * guile/scm-pretty-print.c: Likewise.
1939 * guile/scm-safe-call.c: Likewise.
1940 * guile/scm-utils.c: Likewise.
1941 * guile/scm-value.c: Likewise.
1942 * h8300-tdep.c: Likewise.
1943 * hppa-hpux-nat.c: Likewise.
1944 * hppa-tdep.c: Likewise.
1945 * hppanbsd-tdep.c: Likewise.
1946 * hppaobsd-tdep.c: Likewise.
1947 * i386-darwin-nat.c: Likewise.
1948 * i386-darwin-tdep.c: Likewise.
1949 * i386-nto-tdep.c: Likewise.
1950 * i386-tdep.c: Likewise.
1951 * i386bsd-nat.c: Likewise.
1952 * i386fbsd-tdep.c: Likewise.
1953 * i386gnu-nat.c: Likewise.
1954 * i386nbsd-tdep.c: Likewise.
1955 * i386obsd-tdep.c: Likewise.
1956 * i387-tdep.c: Likewise.
1957 * ia64-libunwind-tdep.c: Likewise.
1958 * ia64-tdep.c: Likewise.
1959 * inf-ptrace.c: Likewise.
1960 * inf-ttrace.c: Likewise.
1961 * infcall.c: Likewise.
1962 * infcmd.c: Likewise.
1963 * infrun.c: Likewise.
1964 * inline-frame.c: Likewise.
1965 * interps.c: Likewise.
1966 * jv-lang.c: Likewise.
1967 * jv-typeprint.c: Likewise.
1968 * linux-fork.c: Likewise.
1969 * linux-nat.c: Likewise.
1970 * linux-thread-db.c: Likewise.
1971 * m32c-tdep.c: Likewise.
1972 * m32r-linux-nat.c: Likewise.
1973 * m32r-tdep.c: Likewise.
1974 * m68k-tdep.c: Likewise.
1975 * m68kbsd-nat.c: Likewise.
1976 * m68kbsd-tdep.c: Likewise.
1977 * m88k-tdep.c: Likewise.
1978 * machoread.c: Likewise.
1979 * macroexp.c: Likewise.
1980 * macrotab.c: Likewise.
1981 * maint.c: Likewise.
1982 * mdebugread.c: Likewise.
1983 * memory-map.c: Likewise.
1984 * mep-tdep.c: Likewise.
1985 * mi/mi-common.c: Likewise.
1986 * microblaze-tdep.c: Likewise.
1987 * mingw-hdep.c: Likewise.
1988 * mips-linux-nat.c: Likewise.
1989 * mips-linux-tdep.c: Likewise.
1990 * mips-tdep.c: Likewise.
1991 * mips64obsd-tdep.c: Likewise.
1992 * mipsnbsd-tdep.c: Likewise.
1993 * mn10300-linux-tdep.c: Likewise.
1994 * mn10300-tdep.c: Likewise.
1995 * moxie-tdep.c: Likewise.
1996 * mt-tdep.c: Likewise.
1997 * nat/linux-btrace.c: Likewise.
1998 * nat/linux-osdata.c: Likewise.
1999 * nat/linux-ptrace.c: Likewise.
2000 * nat/mips-linux-watch.c: Likewise.
2001 * nios2-linux-tdep.c: Likewise.
2002 * nios2-tdep.c: Likewise.
2003 * objc-lang.c: Likewise.
2004 * objfiles.c: Likewise.
2005 * obsd-nat.c: Likewise.
2006 * opencl-lang.c: Likewise.
2007 * osabi.c: Likewise.
2008 * parse.c: Likewise.
2009 * ppc-linux-nat.c: Likewise.
2010 * ppc-sysv-tdep.c: Likewise.
2011 * ppcfbsd-nat.c: Likewise.
2012 * ppcfbsd-tdep.c: Likewise.
2013 * ppcnbsd-nat.c: Likewise.
2014 * ppcnbsd-tdep.c: Likewise.
2015 * ppcobsd-nat.c: Likewise.
2016 * ppcobsd-tdep.c: Likewise.
2017 * printcmd.c: Likewise.
2018 * procfs.c: Likewise.
2019 * prologue-value.c: Likewise.
2020 * psymtab.c: Likewise.
2021 * python/py-lazy-string.c: Likewise.
2022 * python/py-value.c: Likewise.
2023 * regcache.c: Likewise.
2024 * reggroups.c: Likewise.
2025 * registry.c: Likewise.
2026 * remote-sim.c: Likewise.
2027 * remote.c: Likewise.
2028 * rs6000-aix-tdep.c: Likewise.
2029 * rs6000-tdep.c: Likewise.
2030 * s390-linux-tdep.c: Likewise.
2031 * score-tdep.c: Likewise.
2032 * ser-base.c: Likewise.
2033 * ser-mingw.c: Likewise.
2034 * sh-tdep.c: Likewise.
2035 * sh64-tdep.c: Likewise.
2036 * solib-darwin.c: Likewise.
2037 * solib-spu.c: Likewise.
2038 * solib-svr4.c: Likewise.
2039 * source.c: Likewise.
2040 * sparc-nat.c: Likewise.
2041 * sparc-sol2-tdep.c: Likewise.
2042 * sparc-tdep.c: Likewise.
2043 * sparc64-sol2-tdep.c: Likewise.
2044 * sparc64-tdep.c: Likewise.
2045 * sparc64fbsd-tdep.c: Likewise.
2046 * sparc64nbsd-tdep.c: Likewise.
2047 * sparc64obsd-tdep.c: Likewise.
2048 * sparcnbsd-tdep.c: Likewise.
2049 * sparcobsd-tdep.c: Likewise.
2050 * spu-multiarch.c: Likewise.
2051 * spu-tdep.c: Likewise.
2052 * stabsread.c: Likewise.
2053 * stack.c: Likewise.
2054 * symfile.c: Likewise.
2055 * symtab.c: Likewise.
2056 * target-descriptions.c: Likewise.
2057 * target-memory.c: Likewise.
2058 * target.c: Likewise.
2059 * tic6x-linux-tdep.c: Likewise.
2060 * tic6x-tdep.c: Likewise.
2061 * tilegx-linux-nat.c: Likewise.
2062 * tilegx-tdep.c: Likewise.
2064 * tramp-frame.c: Likewise.
2065 * tui/tui-out.c: Likewise.
2066 * tui/tui-winsource.c: Likewise.
2067 * ui-out.c: Likewise.
2068 * user-regs.c: Likewise.
2069 * utils.c: Likewise.
2070 * v850-tdep.c: Likewise.
2071 * valops.c: Likewise.
2072 * value.c: Likewise.
2073 * varobj.c: Likewise.
2074 * vax-nat.c: Likewise.
2075 * xml-syscall.c: Likewise.
2076 * xml-tdesc.c: Likewise.
2077 * xstormy16-tdep.c: Likewise.
2078 * xtensa-linux-nat.c: Likewise.
2079 * xtensa-tdep.c: Likewise.
2081 2014-08-07 Gary Benson <gbenson@redhat.com>
2083 * common/common-defs.h: Include common-utils.h.
2084 * defs.h: Do not include common-utils.h.
2085 * common/gdb_assert.h: Likewise.
2086 * darwin-nat.h: Likewise.
2087 * nat/linux-btrace.c: Likewise.
2088 * target/waitstatus.h: Likewise.
2090 2014-08-07 Gary Benson <gbenson@redhat.com>
2092 * common/common-defs.h: Include ptid.h.
2093 * defs.h: Do not include ptid.h.
2094 * inferior.h: Likewise.
2095 * infrun.h: Likewise.
2096 * nat/linux-btrace.h: Likewise.
2097 * nat/linux-osdata.h: Likewise.
2098 * target/waitstatus.h: Likewise.
2100 2014-08-07 Gary Benson <gbenson@redhat.com>
2102 * common/common-defs.h: Include gdb_locale.h.
2103 * defs.h: Do not include gdb_locale.h.
2105 2014-08-07 Gary Benson <gbenson@redhat.com>
2107 * common/common-defs.h: Include gdb/signals.h.
2108 * defs.h: Do not include gdb/signals.h.
2110 2014-08-07 Gary Benson <gbenson@redhat.com>
2112 * common/common-defs.h: Include pathmax.h.
2113 * defs.h: Do not include pathmax.h.
2115 2014-08-07 Gary Benson <gbenson@redhat.com>
2117 * common/common-defs.h: Include libiberty.h.
2118 * defs.h: Do not include libiberty.h.
2119 * common/queue.h: Likewise.
2120 * cp-name-parser.y: Likewise.
2121 * mi/mi-cmd-catch.c: Likewise.
2122 * python/python.c: Likewise.
2124 2014-08-07 Gary Benson <gbenson@redhat.com>
2126 * common/common-defs.h: Include ansidecl.h.
2127 * defs.h: Do not include ansidecl.h.
2128 * common/buffer.h: Likewise.
2129 * common/common-utils.h: Likewise.
2131 2014-08-07 Gary Benson <gbenson@redhat.com>
2133 * common/common-defs.h: Include stddef.h.
2134 * defs.h: Do not include stddef.h.
2135 * common/common-utils.h: Likewise.
2136 * amd64fbsd-nat.c: Likewise.
2137 * bcache.c: Likewise.
2138 * charset.c: Likewise.
2139 * common/buffer.h: Likewise.
2140 * common/vec.h: Likewise.
2141 * i386bsd-nat.c: Likewise.
2142 * nat/linux-btrace.h: Likewise.
2143 * ppcfbsd-nat.c: Likewise.
2144 * ppcnbsd-tdep.h: Likewise.
2145 * ppcobsd-nat.c: Likewise.
2146 * ppcobsd-tdep.h: Likewise.
2147 * python/py-gdb-readline.c: Likewise.
2149 2014-08-07 Gary Benson <gbenson@redhat.com>
2151 * common/common-defs.h: Include stdarg.h.
2152 * defs.h: Do not include stdarg.h.
2153 * ada-lang.c: Likewise.
2154 * common/common-utils.h: Likewise.
2155 * guile/scm-string.c: Likewise.
2156 * guile/scm-utils.c: Likewise.
2157 * m32c-tdep.c: Likewise.
2159 2014-08-07 Gary Benson <gbenson@redhat.com>
2161 * common/common-defs.h: Include stdlib.h.
2162 * defs.h: Do not include stdlib.h.
2163 * addrmap.c: Likewise.
2164 * bcache.c: Likewise.
2165 * common/buffer.c: Likewise.
2166 * common/common-utils.c: Likewise.
2167 * cp-name-parser.y: Likewise.
2168 * go32-nat.c: Likewise.
2169 * mn10300-linux-tdep.c: Likewise.
2170 * nat/linux-osdata.c: Likewise.
2171 * tui/tui.c: Likewise.
2172 * windows-nat.c: Likewise.
2174 2014-08-07 Gary Benson <gbenson@redhat.com>
2176 * common/common-defs.h: Include stdio.h.
2177 * defs.h: Do not include stdio.h.
2178 * ada-lang.c: Likewise.
2179 * common/buffer.c: Likewise.
2180 * common/common-utils.c: Likewise.
2181 * cp-name-parser.y: Likewise.
2182 * gnu-nat.c: Likewise.
2183 * go32-nat.c: Likewise.
2184 * i386gnu-nat.c: Likewise.
2185 * proc-api.c: Likewise.
2186 * proc-events.c: Likewise.
2187 * proc-flags.c: Likewise.
2188 * proc-why.c: Likewise.
2189 * python/python-internal.h: Likewise.
2190 * target-memory.c: Likewise.
2191 * tui/tui-io.c: Likewise.
2192 * tui/tui.c: Likewise.
2194 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2196 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2197 (scan_dyntag_auxv): Same.
2199 2014-08-06 Yao Qi <yao@codesourcery.com>
2201 * amd64-linux-nat.c: Remove duplicated include
2203 * i386-linux-nat.c: Likewise.
2205 2014-08-06 Yao Qi <yao@codesourcery.com>
2207 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2208 operand" with "Special opcode" in comments.
2210 2014-08-05 Gary Benson <gbenson@redhat.com>
2212 * interps.c (initialize_interps): Remove prototype.
2213 (interpreter_initialized): Remove static global.
2214 (interp_add): Do not call initialize_interps.
2215 (initialize_interps): Remove function.
2217 2014-08-05 Gary Benson <gbenson@redhat.com>
2219 * utils.c (vwarning): Remove spurious va_end.
2221 2014-08-05 Alan Modra <amodra@gmail.com>
2223 * charset.c (convert_between_encodings): Cast result of obstack_base.
2224 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2225 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2226 (read_unwind_info): Use size_t for some locals.
2227 * jit.c (finalize_symtab): Likewise.
2228 * utils.c (hashtab_obstack_allocate): Likewise.
2229 * symmisc.c (print_objfile_statistics): Update format strings.
2231 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2233 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2234 (Changes in GDB 7.8): ... here.
2236 2014-08-04 Tom Tromey <tromey@redhat.com>
2238 * target.c (set_targetdebug): New function.
2239 (initialize_targets): Pass set_targetdebug when creating "set
2242 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2244 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2245 if detecting a variable-sized field that is not the last field.
2246 Fix struct type length computation.
2248 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2250 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2253 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2255 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2256 Remove "+ 8" offset in computation of CHAIN_VMA.
2258 2014-07-31 Doug Evans <dje@google.com>
2260 * inflow.c (child_terminal_inferior): Add comment.
2261 (child_terminal_ours_for_output): Add comment.
2262 (child_terminal_ours): Add comment.
2263 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2264 (linux_nat_terminal_ours): Add comment.
2266 2014-07-31 Gary Benson <gbenson@redhat.com>
2268 * common/btrace-common.h: Do not include defs.h or server.h.
2269 * nat/mips-linux-watch.h: Likewise.
2270 * gdb-dlfcn.h: Do not include defs.h.
2271 * tracefile.h: Likewise.
2273 2014-07-30 Roland McGrath <mcgrathr@google.com>
2275 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2277 2014-07-30 Tom Tromey <tromey@redhat.com>
2279 * bsd-kvm.c (bsd_kvm_open): Constify.
2280 * corelow.c (core_open): Constify.
2281 * ctf.c (ctf_open): Constify.
2282 * dbug-rom.c (dbug_open): Constify.
2283 * exec.c (exec_open): Constify.
2284 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2285 * microblaze-rom.c (picobug_open): Constify.
2286 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2288 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2289 * record-btrace.c (record_btrace_open): Constify.
2290 * record-full.c (record_full_core_open_1, record_full_open_1)
2291 (record_full_open): Constify.
2292 * remote-m32r-sdi.c (m32r_open): Constify.
2293 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2294 (rockhopper_open, lsi_open): Constify.
2295 * remote-sim.c (gdbsim_open): Constify.
2296 * remote.c (remote_open, extended_remote_open, remote_open_1):
2298 * target.h (struct target_ops) <to_open>: Make "arg" const.
2299 * tracefile-tfile.c (tfile_open): Constify.
2301 2014-07-30 Tom Tromey <tromey@redhat.com>
2303 * breakpoint.c (map_breakpoint_numbers): Update.
2304 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2305 (get_number_const): New function.
2306 (get_number): Rewrite using get_number_const.
2307 (init_number_or_range): Make "string" const.
2308 (number_is_in_list): Make "list" const.
2309 * cli/cli-utils.h (get_number_const): Declare.
2310 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2311 (init_number_or_range, number_is_in_list): Update.
2312 * printcmd.c (map_display_numbers): Update.
2313 * value.c (value_from_history_ref): Constify.
2314 * value.h (value_from_history_ref): Update.
2316 2014-07-30 Tom Tromey <tromey@redhat.com>
2318 * corefile.c (hook_type, call_extra_exec_file_hooks)
2319 (specify_exec_file_hook): Constify.
2320 * exec.c (exec_file_attach): Make "filename" const.
2321 * gdbcore.h (deprecated_exec_file_display_hook)
2322 (specify_exec_file_hook, exec_file_attach): Constify.
2323 * main.c (captured_main): Use catch_command_errors_const.
2325 2014-07-30 Tom Tromey <tromey@redhat.com>
2327 * target.c (open_target): New function.
2328 (add_target_with_completer, add_deprecated_target_alias): Use
2329 set_cmd_sfunc, set_cmd_context.
2330 (debug_to_open): Remove.
2331 (setup_target_debug): Update.
2333 2014-07-30 Yao Qi <yao@codesourcery.com>
2335 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2337 * parse.c (exp_iterate): Update comments.
2339 2014-07-30 Gary Benson <gbenson@redhat.com>
2341 * common/common-defs.h: New file.
2342 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2343 * defs.h: Include common-defs.h.
2344 Do not include config.h or build-gnulib/config.h.
2346 2014-07-30 Gary Benson <gbenson@redhat.com>
2348 * common/common-utils.h: Do not include config.h.
2349 * nat/linux-btrace.h: Likewise.
2351 2014-07-30 Gary Benson <gbenson@redhat.com>
2353 * btrace.c: Include defs.h.
2354 * common/ptid.c: Include defs.h or server.h as appropriate.
2355 * nat/mips-linux-watch.c: Likewise.
2357 2014-07-29 Tom Tromey <tromey@redhat.com>
2359 * target.c (target_is_pushed): Simplify.
2361 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2365 2014-07-29 Yao Qi <yao@codesourcery.com>
2368 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2370 2014-07-28 Doug Evans <xdje42@gmail.com>
2373 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2374 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2377 2014-07-28 Will Newton <will.newton@linaro.org>
2379 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2380 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2381 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2382 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2383 (THUMB2_EABI_SYSCALL): Likewise.
2384 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2386 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2387 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2389 2014-07-27 Doug Evans <xdje42@gmail.com>
2391 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2393 2014-07-27 Doug Evans <xdje42@gmail.com>
2395 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2397 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2398 Doug Evans <xdje42@gmail.com>
2401 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2402 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2403 * configure.ac: Try to use guild to compile an scm file, if it fails
2404 then disable guile support.
2405 * configure: Regenerate.
2406 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2408 (GUILE_COMPILED_FILES): New variable.
2409 (GUILE_FILES) Update.
2410 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2411 (stamp-guile): Compile scm files.
2412 * guile/guile.c (boot_guile_support): New function.
2413 (standard_throw_args_p): New function.
2414 (print_standard_throw_error, print_throw_error): New functions.
2415 (handle_boot_error): New function.
2416 (initialize_scheme_side): Rewrite to call boot_guile_support.
2417 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2418 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2420 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2421 Doug Evans <xdje42@gmail.com>
2424 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2425 * guile/lib/gdb/support.scm: New file.
2426 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2427 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2429 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2431 (%assert-type): Ditto, and renamed to assert-type.
2432 (%exception-print-style): Delete.
2434 2014-07-26 Doug Evans <xdje42@gmail.com>
2437 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2438 * configure: Regenerate.
2439 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2441 (PYTHON_FILES): New variable.
2442 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2443 (GUILE_FILES): New variable.
2444 (stamp-python, install-python, uninstall-python): Handle empty
2446 (stamp-guile, install-guile, uninstall-guile): Ditto.
2448 2014-07-26 Doug Evans <xdje42@gmail.com>
2451 * guile/lib/gdb.scm (pretty-printers): Export.
2452 (set-pretty-printers!): Export.
2453 * guile/lib/gdb/printing.scm (gdb module): Update.
2454 (prepend-pretty-printer!, append-pretty-printer!): Update.
2455 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2456 (pretty_printer_list_var): Delete.
2457 (pretty_printer_list): New static global.
2458 (gdbscm_pretty_printers): New function.
2459 (gdbscm_set_pretty_printers_x): New function.
2460 (ppscm_find_pretty_printer_from_gdb): Update.
2461 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2462 (gdbscm_initialize_pretty_printers): Update.
2464 2014-07-26 Doug Evans <xdje42@gmail.com>
2467 * configure.ac: Add check for header gc/gc.h.
2468 Add check for function setenv.
2469 * configure: Regenerate.
2470 * config.in: Regenerate.
2471 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2473 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2475 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2476 variation in gdbarch matching.
2478 2014-07-25 Tom Tromey <tromey@redhat.com>
2480 * exec.c (using_exec_ops): Remove.
2481 (exec_close_1): Update. Remove extraneous block, reindent.
2482 (add_target_sections): Use target_is_pushed.
2484 2014-07-25 Pedro Alves <palves@redhat.com>
2486 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2487 * monitor.c (monitor_create_inferior): Likewise.
2488 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2489 * remote-sim.c (gdbsim_create_inferior): Likewise.
2490 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2491 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2492 * windows-nat.c (do_initial_windows_stuff): Likewise.
2494 2014-07-25 Pedro Alves <palves@redhat.com>
2496 * NEWS: Mention signal passing and "signal" command changes.
2497 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2499 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2501 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2502 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2503 (jump_command): Adjust clear_proceed_status call.
2504 (signal_command): Warn if other thread that are resumed have
2505 signals that will be delivered. Adjust clear_proceed_status call.
2506 (until_next_command, finish_command)
2507 (proceed_after_attach_callback, attach_command_post_wait)
2508 (attach_command): Adjust clear_proceed_status call.
2509 * infrun.c (proceed_after_vfork_done): Likewise.
2510 (proceed_after_attach_callback): Adjust comment.
2511 (clear_proceed_status_thread): Clear stop_signal if not in pass
2513 (clear_proceed_status_callback): Delete.
2514 (clear_proceed_status): New 'step' parameter. Only clear the
2515 proceed status of threads the command being prepared is about to
2517 (proceed): If passed in an explicit signal, override stop_signal
2518 with it. Don't pass the last stop signal to the thread we're
2520 (init_wait_for_inferior): Adjust clear_proceed_status call.
2521 (switch_back_to_stepped_thread): Clear the signal if it should not
2523 * infrun.h (clear_proceed_status): New 'step' parameter.
2524 (user_visible_resume_ptid): Add comment.
2525 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2526 signal is in pass state.
2527 * remote.c (append_pending_thread_resumptions): Likewise.
2528 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2530 2014-07-25 Tom Tromey <tromey@redhat.com>
2532 * target.h (target_stopped_data_address)
2533 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2536 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2538 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2540 (avr_pointer_to_address): Likewise.
2542 2014-07-24 Tom Tromey <tromey@redhat.com>
2544 * monitor.c (compile_pattern): Update.
2545 * target.h (struct target_ops) <to_shortname, to_longname,
2548 2014-07-24 Tom Tromey <tromey@redhat.com>
2550 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2551 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2552 (add_info_alias, add_com): Make "doc" const.
2553 (print_doc_line): Make "str" const.
2554 (delete_cmd): Update.
2555 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2556 (print_doc_line): Update.
2557 * cli/cli-script.c (document_command): Update.
2558 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2559 (add_com, add_info, add_info_alias): Update.
2560 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2561 * python/py-cmd.c (cmdpy_destroyer): Update.
2563 2014-07-24 Tom Tromey <tromey@redhat.com>
2565 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2566 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2567 (help_cmd_list): Constify.
2568 (lookup_cmd): Update.
2569 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2571 (help_cmd_list, apropos_cmd): Update.
2572 * cli/cli-script.c (show_user): Update.
2573 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2574 * cli/cli-setshow.h (cmd_show_list): Update.
2575 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2576 (cmd_show_list): Update.
2577 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2578 * python/py-cmd.c (cmdpy_destroyer): Update.
2580 2014-07-24 Tom Tromey <tromey@redhat.com>
2582 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2583 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2585 * command.h (deprecate_cmd): Update.
2586 * maint.c (maintenance_do_deprecate): Add casts.
2588 2014-07-24 Tom Tromey <tromey@redhat.com>
2590 * cli/cli-decode.c (help_cmd): Make parameter "const".
2591 * cli/cli-decode.h (help_cmd): Update.
2593 2014-07-24 Tom Tromey <tromey@redhat.com>
2595 * stack.c (up_silently_base, down_silently_base): Make argument
2598 2014-07-24 Tom Tromey <tromey@redhat.com>
2600 * solib.c (solib_add): Make "pattern" const.
2601 * solib.h (solib_add): Update.
2603 2014-07-24 Tom Tromey <tromey@redhat.com>
2605 * remote.c (remote_serial_open, print_packet, putpkt)
2606 (putpkt_binary): Constify.
2607 * remote.h (putpkt): Update.
2609 2014-07-24 Tom Tromey <tromey@redhat.com>
2611 * monitor.c (monitor_open): Make "args" const.
2612 * monitor.h (monitor_open): Update.
2614 2014-07-24 Tom Tromey <tromey@redhat.com>
2616 * maint.c (match_bfd_flags): Make "string" const.
2617 (print_bfd_section_info): Remove casts.
2618 (print_objfile_section_info): Make "string" const.
2620 2014-07-24 Tom Tromey <tromey@redhat.com>
2622 * inf-child.c (inf_child_open_target): Make "arg" const.
2623 * inf-child.h (inf_child_open_target): Update.
2625 2014-07-24 Tom Tromey <tromey@redhat.com>
2627 * environ.c (unset_in_environ): Make "var" const.
2628 * environ.h (unset_in_environ): Update.
2630 2014-07-24 Tom Tromey <tromey@redhat.com>
2632 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2634 (scan_filename_with_cleanup): Likewise.
2635 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2636 Make arguments const.
2637 (restore_command): Update.
2639 2014-07-24 Pedro Alves <palves@redhat.com>
2641 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2643 2014-07-24 Tom Tromey <tromey@redhat.com>
2644 Gary Benson <gbenson@redhat.com>
2646 * nat/linux-ptrace.c (additional_flags): New global.
2647 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2648 additional_flags; don't check GDBSERVER.
2649 (linux_ptrace_set_additional_flags): New function.
2650 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2652 * linux-nat.c (_initialize_linux_nat): Call
2653 linux_ptrace_set_additional_flags.
2655 2014-07-24 Tom Tromey <tromey@redhat.com>
2657 * make-target-delegates (munge_type, write_debugmethod): New
2659 (debug_names): New global.
2660 ($TARGET_DEBUG_PRINTER): New global.
2661 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2663 Write debug methods. Generate init_debug_target.
2664 * target-debug.h: New file.
2665 * target-delegates.c: Rebuild.
2666 * target.c: Include target-debug.h.
2667 (debug_target): Hoist definition.
2668 (target_kill, target_get_section_table, target_memory_map)
2669 (target_flash_erase, target_flash_done, target_detach)
2670 (target_disconnect, target_wait, target_resume)
2671 (target_pass_signals, target_program_signals, target_follow_fork)
2672 (target_mourn_inferior, target_search_memory)
2673 (target_thread_address_space, target_close)
2674 (target_find_new_threads, target_core_of_thread)
2675 (target_verify_memory, target_insert_mask_watchpoint)
2676 (target_remove_mask_watchpoint): Remove targetdebug code.
2677 (debug_to_post_attach, debug_to_prepare_to_store)
2678 (debug_to_files_info, debug_to_insert_breakpoint)
2679 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2680 (debug_to_region_ok_for_hw_watchpoint)
2681 (debug_to_can_accel_watchpoint_condition)
2682 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2683 (debug_to_watchpoint_addr_within_range)
2684 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2685 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2686 (debug_to_terminal_init, debug_to_terminal_inferior)
2687 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2688 (debug_to_terminal_save_ours, debug_to_terminal_info)
2689 (debug_to_load, debug_to_post_startup_inferior)
2690 (debug_to_insert_fork_catchpoint)
2691 (debug_to_remove_fork_catchpoint)
2692 (debug_to_insert_vfork_catchpoint)
2693 (debug_to_remove_vfork_catchpoint)
2694 (debug_to_insert_exec_catchpoint)
2695 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2696 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2697 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2698 (setup_target_debug): Call init_debug_target.
2699 * target.h (TARGET_DEBUG_PRINTER): New macro.
2700 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2701 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2703 2014-07-24 Gary Benson <gbenson@redhat.com>
2705 * exceptions.h (throw_vfatal): Renamed to...
2706 (throw_vquit): New declaration.
2707 (throw_quit): Likewise.
2708 * exceptions.c (throw_vfatal): Renamed to...
2709 (throw_vquit): New function.
2710 (throw_quit): Likewise.
2711 (throw_error): Call throw_verror rather than throw_it.
2712 * utils.h (vfatal): Removed.
2714 * utils.c (vfatal): Removed.
2716 (internal_verror): Replaced call to fatal with call to throw_quit.
2717 (quit): Replaced calls to fatal with calls to throw_quit.
2719 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2721 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2724 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2726 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2727 less than zero in conditional expression.
2729 2014-07-23 Tom Tromey <tromey@redhat.com>
2731 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2732 ($INTRO_PART): Don't match whitespace.
2733 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2735 ($METHOD): Add $METHOD_TRAILER.
2737 (scan_target_h): New sub.
2738 Change main loop not to collect state.
2739 * target-delegates.c: Rebuild.
2741 2014-07-23 Gary Benson <gbenson@redhat.com>
2743 * cp-support.c (gdb_demangle): Fix build on systems without
2746 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2748 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2749 for reference entry value target data value.
2751 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2753 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2754 value_available_contents_eq.
2756 2014-07-22 Pedro Alves <palves@redhat.com>
2758 * value.c (allocate_optimized_out_value): Don't mark value as
2761 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2763 * MAINTAINERS (Write After Approval): Update my email address.
2765 2014-07-20 Doug Evans <dje@google.com>
2768 * remote.c (putpkt_binary): Add text to error message.
2770 2014-07-20 Yao Qi <yao@codesourcery.com>
2772 * eval.c: Remove "Chill" from comments.
2773 * gdbtypes.h: Likewise.
2774 * symtab.h: Likewise.
2776 2014-07-20 Yao Qi <yao@codesourcery.com>
2778 * std-operator.def: Update comments to TERNOP_SLICE.
2780 2014-07-20 Yao Qi <yao@codesourcery.com>
2782 * std-operator.def: Remove BINOP_RANGE.
2783 * breakpoint.c (watchpoint_exp_is_const): Update.
2784 * expprint.c (dump_subexp_body_standard): Likewise.
2785 * eval.c (init_array_element): Remove dead code.
2786 (evaluate_subexp_standard): Likewise.
2788 2014-07-20 Yao Qi <yao@codesourcery.com>
2790 * std-operator.def: Remove BINOP_IN.
2791 * breakpoint.c (watchpoint_exp_is_const): Update.
2792 * eval.c (evaluate_subexp_standard): Likewise.
2793 * expprint.c (dump_subexp_body_standard): Likewise.
2795 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2797 * microblaze-tdep.c (microblaze_register_names): Add
2798 the rshr and rslr register names.
2799 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2800 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2801 Use of tdesc_numbered_register. Use of
2802 microblaze_register_g_packet_guesses. Use of
2803 tdesc_use_registers. Use of set_gdbarch_register_type.
2804 (microblaze_register_g_packet_guesses): New.
2805 * microblaze-tdep.h (microblaze_reg_num): Add
2806 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2807 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2808 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2809 * features/microblaze-core.xml: New file.
2810 * features/microblaze-stack-protect.xml: New file.
2811 * features/microblaze-with-stack-protect.c: New file.
2812 * features/microblaze-with-stack-protect.xml: New file.
2813 * features/microblaze.xml: New file.
2814 * features/microblaze.c: New file.
2815 * features/Makefile (microblaze-with-stack-protect): Add
2816 microblaze-with-stack-protect microblaze and microblaze-expedite.
2817 * regformats/microblaze-with-stack-protect.dat: New file.
2818 * regformats/microblaze.dat: New file.
2819 * doc/gdb.texinfo (MicroBlaze Features): Added.
2821 2014-07-18 Tom Tromey <tromey@redhat.com>
2823 * exec.c (exec_ops): Now static.
2824 * exec.h (exec_ops): Don't declare.
2826 2014-07-18 Tom Tromey <tromey@redhat.com>
2828 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2829 to find_target_beneath.
2830 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2831 find_target_beneath.
2832 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2834 2014-07-18 Tom Tromey <tromey@redhat.com>
2837 * utils.c (quit): Use target_supports_terminal_ours.
2838 * target.h (target_supports_terminal_ours): Declare.
2839 * target.c (target_supports_delete_record): Don't check
2840 to_delete_record against NULL.
2841 (target_supports_terminal_ours): New function.
2843 2014-07-18 Tom Tromey <tromey@redhat.com>
2846 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2847 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2848 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2849 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2850 * windows-nat.c (windows_xfer_partial): Always delegate.
2851 * record-btrace.c (record_btrace_xfer_partial): Simplify
2853 (record_btrace_fetch_registers, record_btrace_store_registers)
2854 (record_btrace_prepare_to_store, record_btrace_resume)
2855 (record_btrace_wait, record_btrace_find_new_threads)
2856 (record_btrace_thread_alive): Likewise.
2857 * procfs.c (procfs_xfer_partial): Always delegate.
2858 * corelow.c (core_xfer_partial): Always delegate.
2859 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2861 2014-07-18 Tom Tromey <tromey@redhat.com>
2863 * exec.c (exec_make_note_section): Move earlier.
2865 2014-07-17 Doug Evans <dje@google.com>
2868 * maint.c (count_symtabs_and_blocks): Handle NULL
2869 current_program_space.
2870 (report_command_stats): Check global enabled flag in addition to
2871 recorded enabled flag.
2872 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2874 2014-07-16 Pedro Alves <palves@redhat.com>
2876 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2878 2014-07-16 Tom Tromey <tromey@redhat.com>
2880 * target.h (struct target_ops) <to_delete_record>: Reformat
2883 2014-07-16 Tom Tromey <tromey@redhat.com>
2885 * target-delegates.c: Rebuild.
2887 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2889 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2890 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2891 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2892 (avr_pointer_to_address): Likewise.
2893 (avr_address_class_type_flags): New function.
2894 (avr_address_class_type_flags_to_name): Likewise.
2895 (avr_address_class_name_to_type_flags): Likewise.
2896 (avr_gdbarch_init): Set address_class_type_flags,
2897 address_class_type_flags_to_name and
2898 address_class_name_to_type_flags.
2900 2014-07-15 Pedro Alves <palves@redhat.com>
2902 * linux-nat.c (kill_callback): Save errno and work with saved
2905 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2907 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2909 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2911 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2912 breakpoint support correctly.
2914 2014-07-14 Pedro Alves <palves@redhat.com>
2916 * utils.c (prompt_for_continue): Call target_terminal_ours.
2918 2014-07-14 Pedro Alves <palves@redhat.com>
2920 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2921 catch_errors. Don't re-enable stdin or notify observers where,
2923 (fetch_inferior_event_wrapper): Delete.
2925 2014-07-14 Pedro Alves <palves@redhat.com>
2928 * top.c: Include "inf-loop.h".
2929 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2931 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2933 (gdb_readline_wrapper): Store whether the target is async, and
2936 2014-07-14 Pedro Alves <palves@redhat.com>
2939 * top.c (gdb_readline_wrapper_line): Tweak comment.
2940 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2941 the input handler callback.
2943 2014-07-14 Pedro Alves <palves@redhat.com>
2946 * main.c: Include event-top.h.
2947 (handle_command_errors): New function.
2948 (catch_command_errors, catch_command_errors_const): Use it.
2950 2014-07-14 Pedro Alves <palves@redhat.com>
2952 * exceptions.c (catch_command_errors, catch_command_errors_const):
2954 * exceptions.h (catch_command_errors_ftype)
2955 (catch_command_errors_const_ftype): Moved to main.c.
2956 (catch_command_errors, catch_command_errors_const): Delete
2958 * main.c (catch_command_errors_ftype)
2959 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2960 (catch_command_errors, catch_command_errors_const)): Moved here
2961 from exceptions.c and make static.
2963 2014-07-14 Pedro Alves <palves@redhat.com>
2965 * exceptions.c (print_any_exception): Delete.
2966 (catch_exceptions_with_msg): Use exception_print instead of
2967 print_any_exception.
2968 (catch_errors): Use exception_fprintf instead of
2969 print_any_exception.
2970 (catch_command_errors, catch_command_errors_const): Use
2971 exception_print instead of print_any_exception.
2973 2014-07-14 Pedro Alves <palves@redhat.com>
2975 * infcall.c (run_inferior_call): Set 'sync_execution' while
2976 running the inferior call.
2978 2014-07-14 Pedro Alves <palves@redhat.com>
2980 * value.c (value_contents_equal): Delete function.
2981 * value.h (value_contents_equal): Delete declaration.
2983 2014-07-14 Tom Tromey <tromey@redhat.com>
2986 * gdbtypes.c (is_dynamic_type_internal): New function, from
2988 (is_dynamic_type): Rewrite.
2989 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2990 (resolve_dynamic_struct): Likewise.
2991 (resolve_dynamic_type_internal): New function, from
2992 resolve_dynamic_type.
2993 (resolve_dynamic_type): Rewrite.
2995 2014-07-14 Tom Tromey <tromey@redhat.com>
2997 * target.c (target_require_runnable): Also check record_stratum.
3000 2014-07-11 Yao Qi <yao@codesourcery.com>
3002 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3003 thumb_instruction_restores_sp return true.
3005 2014-07-11 Yao Qi <yao@codesourcery.com>
3007 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3008 (thumb_in_function_epilogue_p): Call
3009 thumb_instruction_restores_sp.
3011 2014-07-11 Yao Qi <yao@codesourcery.com>
3013 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3015 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3017 2014-07-11 Gary Benson <gbenson@redhat.com>
3019 * amd64-linux-nat.c (gdbcore.h): Remove include.
3020 (regset.h): Likewise.
3021 (nat/linux-btrace.h): Likewise.
3022 (btrace.h): Likewise.
3023 (gdb_assert.h): Likewise.
3024 (string.h): Likewise.
3025 (sys/uio.h): Likewise.
3026 (sys/debugreg.h): Likewise.
3027 (sys/syscall.h): Likewise.
3028 (sys/procfs.h): Likewise.
3029 (sys/user.h): Likewise.
3030 (asm/ptrace.h): Likewise.
3031 (i386-nat.h): Likewise.
3032 * i386-linux-nat.c (i386-nat.h): Likewise.
3033 (regset.h): Likewise.
3034 (target.h): Likewise.
3035 (linux-nat.h): Likewise.
3036 (nat/linux-btrace.h): Likewise.
3037 (btrace.h): Likewise.
3038 (gdb_assert.h): Likewise.
3039 (string.h): Likewise.
3040 (sys/uio.h): Likewise.
3041 (sys/user.h): Likewise.
3042 (sys/procfs.h): Likewise.
3043 (sys/reg.h): Likewise.
3044 (sys/debugreg.h): Likewise.
3045 (ORIG_EAX): Remove definition.
3047 2014-07-11 Gary Benson <gbenson@redhat.com>
3049 * i386-linux-nat.h: New file.
3050 * x86-linux-nat.h: Likewise.
3051 * x86-linux-nat.c: Likewise.
3052 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3053 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3054 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3055 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3056 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3057 (PTRACE_SETREGSET): Likewise.
3058 (arch_lwp_info): Now in x86-linux-nat.c.
3059 (have_ptrace_getregset): Now in x86-linux-nat.h.
3060 (x86_linux_dr_get): Now in x86-linux-nat.c.
3061 (x86_linux_dr_set): Likewise.
3062 (x86_linux_dr_get_addr): Likewise.
3063 (x86_linux_dr_get_control): Likewise.
3064 (x86_linux_dr_get_status): Likewise.
3065 (update_debug_registers_callback): Likewise.
3066 (x86_linux_dr_set_control): Likewise.
3067 (x86_linux_dr_set_addr): Likewise.
3068 (x86_linux_prepare_to_resume): Likewise.
3069 (x86_linux_new_thread): Likewise.
3070 (x86_linux_new_fork): Likewise.
3071 (x86_linux_get_thread_area): Likewise.
3072 (super_post_startup_inferior): Likewise.
3073 (x86_linux_child_post_startup_inferior): Likewise.
3074 (AMD64_LINUX_USER64_CS): Likewise.
3075 (AMD64_LINUX_X32_DS): Likewise.
3076 (x86_linux_read_description): Likewise.
3077 (x86_linux_enable_btrace): Likewise.
3078 (x86_linux_disable_btrace): Likewise.
3079 (x86_linux_teardown_btrace): Likewise.
3080 (x86_linux_read_btrace): Likewise.
3081 (x86_linux_create_target): Likewise.
3082 (x86_linux_add_target): Likewise.
3083 * i386-linux-nat.c (x86-linux-nat.h): New include.
3084 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3085 (PTRACE_SETREGSET): Likewise.
3086 (arch_lwp_info): Now in x86-linux-nat.c.
3087 (have_ptrace_getregset): Now in x86-linux-nat.h.
3088 (x86_linux_dr_get): Now in x86-linux-nat.c.
3089 (x86_linux_dr_set): Likewise.
3090 (x86_linux_dr_get_addr): Likewise.
3091 (x86_linux_dr_get_control): Likewise.
3092 (x86_linux_dr_get_status): Likewise.
3093 (update_debug_registers_callback): Likewise.
3094 (x86_linux_dr_set_control): Likewise.
3095 (x86_linux_dr_set_addr): Likewise.
3096 (x86_linux_prepare_to_resume): Likewise.
3097 (x86_linux_new_thread): Likewise.
3098 (x86_linux_new_fork): Likewise.
3099 (x86_linux_get_thread_area): Likewise.
3100 (super_post_startup_inferior): Likewise.
3101 (x86_linux_child_post_startup_inferior): Likewise.
3102 (AMD64_LINUX_USER64_CS): Likewise.
3103 (AMD64_LINUX_X32_DS): Likewise.
3104 (x86_linux_read_description): Likewise.
3105 (x86_linux_enable_btrace): Likewise.
3106 (x86_linux_disable_btrace): Likewise.
3107 (x86_linux_teardown_btrace): Likewise.
3108 (x86_linux_read_btrace): Likewise.
3109 (x86_linux_create_target): Likewise.
3110 (x86_linux_add_target): Likewise.
3112 2014-07-11 Gary Benson <gbenson@redhat.com>
3114 * amd64-linux-nat.c: Comment and whitespace changes.
3115 * i386-linux-nat.c: Comment and whitespace changes.
3117 2014-07-11 Gary Benson <gbenson@redhat.com>
3119 * amd64-linux-nat.c (x86_linux_create_target): New function.
3120 (x86_linux_add_target): Likewise.
3121 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3122 * i386-linux-nat.c (x86_linux_create_target): New function.
3123 (x86_linux_add_target): Likewise.
3124 (_initialize_i386_linux_nat): Delegate to the above new functions.
3126 2014-07-11 Gary Benson <gbenson@redhat.com>
3128 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3129 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3130 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3131 (ps_get_thread_area): Delegate to the above.
3133 2014-07-11 Gary Benson <gbenson@redhat.com>
3135 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3136 x86_linux_read_description. All uses updated. amd64-specific
3137 code conditionalized. Conditionalized i386-specific code added.
3138 Redundant cast removed.
3139 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3140 x86_linux_read_description. All uses updated. i386-specific
3141 code conditionalized. Conditionalized amd64-specific code added.
3142 One sizeof replaced with the actual type it is describing.
3144 2014-07-11 Gary Benson <gbenson@redhat.com>
3146 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3147 x86_linux_dr_get. All uses updated.
3148 (amd64_linux_dr_set): Renamed to
3149 x86_linux_dr_set. All uses updated.
3150 (amd64_linux_dr_get_addr): Renamed to
3151 x86_linux_dr_get_addr. All uses updated.
3152 (amd64_linux_dr_get_control): Renamed to
3153 x86_linux_dr_get_control. All uses updated.
3154 (amd64_linux_dr_get_status): Renamed to
3155 x86_linux_dr_get_status. All uses updated.
3156 (amd64_linux_dr_set_control): Renamed to
3157 x86_linux_dr_set_control. All uses updated.
3158 (amd64_linux_dr_set_addr): Renamed to
3159 x86_linux_dr_set_addr. All uses updated.
3160 (amd64_linux_prepare_to_resume): Renamed to
3161 x86_linux_prepare_to_resume. All uses updated.
3162 (amd64_linux_new_thread): Renamed to
3163 x86_linux_new_thread. All uses updated.
3164 (amd64_linux_new_fork): Renamed to
3165 x86_linux_new_fork. All uses updated.
3166 (amd64_linux_child_post_startup_inferior): Renamed to
3167 x86_linux_child_post_startup_inferior. All uses updated.
3168 (amd64_linux_enable_btrace): Renamed to
3169 x86_linux_enable_btrace. All uses updated.
3170 (amd64_linux_disable_btrace): Renamed to
3171 x86_linux_disable_btrace. All uses updated.
3172 (amd64_linux_teardown_btrace): Renamed to
3173 x86_linux_teardown_btrace. All uses updated.
3174 (amd64_linux_read_btrace): Renamed to
3175 x86_linux_read_btrace. All uses updated.
3176 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3177 x86_linux_dr_get. All uses updated.
3178 (i386_linux_dr_set): Renamed to
3179 x86_linux_dr_set. All uses updated.
3180 (i386_linux_dr_get_addr): Renamed to
3181 x86_linux_dr_get_addr. All uses updated.
3182 (i386_linux_dr_get_control): Renamed to
3183 x86_linux_dr_get_control. All uses updated.
3184 (i386_linux_dr_get_status): Renamed to
3185 x86_linux_dr_get_status. All uses updated.
3186 (i386_linux_dr_set_control): Renamed to
3187 x86_linux_dr_set_control. All uses updated.
3188 (i386_linux_dr_set_addr): Renamed to
3189 x86_linux_dr_set_addr. All uses updated.
3190 (i386_linux_prepare_to_resume): Renamed to
3191 x86_linux_prepare_to_resume. All uses updated.
3192 (i386_linux_new_thread): Renamed to
3193 x86_linux_new_thread. All uses updated.
3194 (i386_linux_new_fork): Renamed to
3195 x86_linux_new_fork. All uses updated.
3196 (i386_linux_child_post_startup_inferior): Renamed to
3197 x86_linux_child_post_startup_inferior. All uses updated.
3198 (i386_linux_enable_btrace): Renamed to
3199 x86_linux_enable_btrace. All uses updated.
3200 (i386_linux_disable_btrace): Renamed to
3201 x86_linux_disable_btrace. All uses updated.
3202 (i386_linux_teardown_btrace): Renamed to
3203 x86_linux_teardown_btrace. All uses updated.
3204 (i386_linux_read_btrace): Renamed to
3205 x86_linux_read_btrace. All uses updated.
3207 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3209 * remote.c (extended_remote_post_attach): New function.
3210 (init_extended_remote_ops): Install it as to_post_attach method.
3212 2014-07-09 Pedro Alves <palves@redhat.com>
3214 * infcmd.c (attach_command_post_wait): Don't call
3215 target_terminal_inferior here.
3216 (attach_command): Call it here instead.
3218 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3220 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3222 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3223 from varobj.c, with additional checks.
3224 (c_varobj_ops): Fill in is_path_expr_parent field.
3225 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3226 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3228 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3230 (varobj_default_is_path_expr_parent): New function.
3231 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3232 (varobj_default_is_path_expr_parent): Declare new function.
3234 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3236 * infcmd.c (finish_backward): Turn internal error into normal error.
3238 2014-07-07 Pedro Alves <palves@redhat.com>
3241 * remote.c (async_handle_remote_sigint)
3242 (async_handle_remote_sigint_twice): Call
3243 gdb_call_async_signal_handler instead of
3244 mark_async_signal_handler.
3246 2014-07-07 Tom Tromey <tromey@redhat.com>
3248 * target-delegates.c: Rebuild.
3249 * target.c (target_info_record): Remove.
3250 * record.c (info_record_command): Unconditionally call
3252 * target.h (struct target_ops) <to_info_record>: Use
3253 TARGET_DEFAULT_IGNORE.
3254 (target_info_record): Remove.
3256 2014-07-07 Tom Tromey <tromey@redhat.com>
3258 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3259 TARGET_DEFAULT_NORETURN.
3260 * target.c (generic_tls_error): New function.
3261 (target_translate_tls_address): Don't search target stack.
3262 * target-delegates.c: Rebuild.
3263 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3265 * linux-thread-db.c (thread_db_get_thread_local_address):
3266 Unconditionally call beneath target.
3268 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3270 * cli/cli-logging.c (pop_output_files): Assign targerr to
3273 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3275 * MAINTAINERS (Write After Approval): Update my email address.
3277 2014-07-02 Gary Benson <gbenson@redhat.com>
3279 * proc-service.c (ps_xfer_memory): Update comment.
3280 (ps_pstop): Remove unused function.
3281 (ps_pcontinue): Likewise.
3282 (ps_lstop): Likewise.
3283 (ps_lcontinue): Likewise.
3284 (ps_lgetxregsize): Likewise.
3285 (ps_lgetxregs): Likewise.
3286 (ps_lsetxregs): Likewise.
3287 (ps_plog): Likewise.
3288 (ps_ptread): Likewise.
3289 (ps_ptwrite): Likewise.
3291 2014-07-01 Mark Wielaard <mjw@redhat.com>
3293 * dwarf2read.c (add_array_cv_type): New function.
3294 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3295 (read_tag_volatile_type): Likewise.
3297 2014-07-01 Tom Tromey <tromey@redhat.com>
3299 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3300 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3301 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3302 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3303 * command.h (cmd_cfunc_ftype): Move earlier.
3304 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3305 (add_com, add_info): Use cmd_cfunc_ftype.
3307 2014-06-30 Tom Tromey <tromey@redhat.com>
3309 * symtab.c (operator_chars): Make parameters and return type
3311 (file_matches): Make "files" const.
3312 (struct search_symbols_data) <files>: Now const.
3313 (search_symbols): Make "regexp" and "files" parameters const.
3315 (symtab_symbol_info): Remove cast.
3316 (rbreak_command): Update.
3317 * symtab.h (search_symbols): Update.
3319 2014-06-27 Yao Qi <yao@codesourcery.com>
3321 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3322 Change parameter type to 'struct thread_info *'. Caller
3324 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3326 * dummy-frame.c (struct dummy_frame_id): New.
3327 (dummy_frame_id_eq): New function.
3328 (struct dummy_frame) <id>: Change its type to 'struct
3330 (dummy_frame_push): Add parameter ptid and save it in
3332 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3334 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3336 (lookup_dummy_frame): Change parameter type to 'struct
3337 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3338 instead of frame_id_eq.
3339 (dummy_frame_pop): Add parameter ptid. Callers updated.
3340 Update comments. Compose dummy_frame_id and pass it to
3342 (dummy_frame_discard): Add parameter ptid.
3343 (dummy_frame_sniffer): Compose dummy_frame_id and call
3344 dummy_frame_id_eq instead of frame_id_eq.
3345 (fprint_dummy_frames): Print ptid.
3346 * dummy-frame.h: Remove comments.
3347 (dummy_frame_push): Add ptid in declaration.
3348 (dummy_frame_pop, dummy_frame_discard): Likewise.
3350 2014-06-26 Tom Tromey <tromey@redhat.com>
3352 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3353 * command.h (error_no_arg): Update.
3355 2014-06-26 Tom Tromey <tromey@redhat.com>
3357 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3358 (do_show_command): Make "arg" const.
3359 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3361 2014-06-26 Tom Tromey <tromey@redhat.com>
3363 * record-full.c (record_full_get_bookmark): Make "args" const.
3364 (record_full_goto_bookmark): Make "raw_bookmark" const.
3365 * record.c (record_goto): New function.
3366 (cmd_record_goto): Use it. Now static.
3367 * record.h (record_goto): Declare.
3368 (cmd_record_goto): Remove declaration.
3369 * target-delegates.c: Rebuild.
3370 * target.h (struct target_ops) <to_get_bookmark,
3371 to_goto_bookmark>: Make parameter const.
3373 2014-06-26 Tom Tromey <tromey@redhat.com>
3375 * defs.h (generic_load): Update.
3376 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3377 * monitor.c (monitor_load): Make "args" const.
3378 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3379 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3381 (mips_load): Make "file" const.
3382 * remote-sim.c (gdbsim_load): Make "args" const.
3383 * remote.c (remote_load): Make "name" const.
3384 * symfile.c (generic_load): Make "args" const.
3385 * target-delegates.c: Rebuild.
3386 * target.c (target_load): Make "arg" const.
3387 (debug_to_load): Make "args" const.
3388 * target.h (struct target_ops) <to_load>: Make parameter const.
3389 (target_load): Update.
3391 2014-06-26 Tom Tromey <tromey@redhat.com>
3394 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3395 (dwarf2_physname, read_partial_die)
3396 (guess_partial_die_structure_name, fixup_partial_die)
3397 (guess_full_die_structure_name, anonymous_struct_prefix)
3398 (dwarf2_name): Use per-BFD obstack.
3400 2014-06-26 Yao Qi <yao@codesourcery.com>
3402 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3403 dummyframe and this_id into inner block below.
3405 2014-06-26 Yao Qi <yao@codesourcery.com>
3407 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3408 with "signal_pass[0]" in the initialization of signal_pass.
3410 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3412 * record-btrace.c (record_btrace_generating_corefile)
3413 (record_btrace_prepare_to_generate_core)
3414 (record_btrace_done_generating_core): New.
3415 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3416 (record_btrace_store_registers, record_btrace_prepare_to_store):
3417 Forward request when generating a core file.
3418 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3419 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3420 to_done_generating_core.
3422 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3424 * target.h (target_ops) <to_prepare_to_generate_core>
3425 <to_done_generating_core>: New.
3426 (target_prepare_to_generate_core, target_done_generating_core): New.
3427 * target.c (target_prepare_to_generate_core)
3428 (target_done_generating_core): New.
3429 * target-delegates.c: Regenerate.
3430 * gcore.c: (write_gcore_file): Rename to ...
3431 (write_gcore_file_1): ...this.
3432 (write_gcore_file): Call target_prepare_to_generate_core
3433 and target_done_generating_core.
3435 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3437 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3438 * gcore.c (write_gcore_file): Free memory returned from
3439 make_corefile_notes.
3440 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3441 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3443 2014-06-24 Yao Qi <yao@codesourcery.com>
3445 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3446 (arm_linux_init_abi): Set skip_trampoline_code with
3447 gdbarch_skip_trampoline_code instead of
3448 find_solib_trampoline_target.
3450 2014-06-24 Yao Qi <yao@codesourcery.com>
3452 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3453 arm_skip_bx_reg returns non-zero.
3455 2014-06-24 Yao Qi <yao@codesourcery.com>
3457 * arm-tdep.c (arm_skip_bx_reg): New function.
3458 (arm_skip_stub): Call arm_skip_bx_reg.
3460 2014-06-23 Don Breazeal <donb@codesourcery.com>
3462 * MAINTAINERS: Add myself as write-after-approval maintainer.
3464 2014-06-23 Pedro Alves <palves@redhat.com>
3466 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3467 DR_CONTROL before setting DR0..DR3.
3468 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3469 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3470 bits of DR_CONTROL related to the debug register slot being
3471 disabled. If all slots are vacant, clear local slowdown as well,
3472 and assert DR_CONTROL is 0.
3474 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3476 * python/lib/gdb/command/xmethods.py
3477 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3478 current progspace only if the string "progspace" matches LOCUS_RE.
3480 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3482 Fix --with-system-readline with readline-6.3 patch 5.
3483 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3484 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3487 2014-06-20 Tom Tromey <tromey@redhat.com>
3489 * dwarf2read.c (dw2_get_real_path): Use correct type in
3491 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3493 2014-06-20 Gary Benson <gbenson@redhat.com>
3495 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3496 * common/glibc_thread_db.h: Likewise.
3497 * common/i386-cpuid.h: Likewise.
3498 * common/i386-gcc-cpuid.h: Likewise.
3499 * common/linux-btrace.h: Likewise.
3500 * common/linux-osdata.h: Likewise.
3501 * common/linux-procfs.h: Likewise.
3502 * common/linux-ptrace.h: Likewise.
3503 * common/mips-linux-watch.h: Likewise.
3504 * common/linux-btrace.c: Moved to nat.
3505 * common/linux-osdata.c: Likewise.
3506 * common/linux-procfs.c: Likewise.
3507 * common/linux-ptrace.c: Likewise.
3508 * common/mips-linux-watch.c: Likewise.
3509 * nat/gdb_thread_db.h: Moved from common.
3510 * nat/glibc_thread_db.h: Likewise.
3511 * nat/i386-cpuid.h: Likewise.
3512 * nat/i386-gcc-cpuid.h: Likewise.
3513 * nat/linux-btrace.c: Likewise.
3514 * nat/linux-btrace.h: Likewise.
3515 * nat/linux-osdata.c: Likewise.
3516 * nat/linux-osdata.h: Likewise.
3517 * nat/linux-procfs.c: Likewise.
3518 * nat/linux-procfs.h: Likewise.
3519 * nat/linux-ptrace.c: Likewise.
3520 * nat/linux-ptrace.h: Likewise.
3521 * nat/mips-linux-watch.c: Likewise.
3522 * nat/mips-linux-watch.h: Likewise.
3523 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3524 (object file files): Reordered.
3525 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3526 of glibc_thread_db.h.
3528 2014-06-20 Gary Benson <gbenson@redhat.com>
3530 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3531 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3532 (i386_dr_low): Likewise.
3533 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3534 (i386_dr_low_set_addr): Likewise.
3535 (i386_dr_low_get_addr): Likewise.
3536 (i386_dr_low_can_set_control): Likewise.
3537 (i386_dr_low_set_control): Likewise.
3538 (i386_dr_low_get_control): Likewise.
3539 (i386_dr_low_get_status): Likewise.
3540 (i386_get_debug_register_length): Likewise.
3541 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3542 (i386_dr_low): Likewise.
3543 * nat/i386-dregs.c (i386-low.h): Remove include.
3544 (i386-nat.h): Likewise.
3545 (nat/i386-dregs.h): New include.
3546 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3547 (i386_dr_low_set_addr): Likewise.
3548 (i386_dr_low_get_addr): Likewise.
3549 (i386_dr_low_can_set_control): Likewise.
3550 (i386_dr_low_set_control): Likewise.
3551 (i386_dr_low_get_control): Likewise.
3552 (i386_dr_low_get_status): Likewise.
3553 (i386_get_debug_register_length): Likewise.
3554 (debug_hw_points): Likewise.
3556 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3558 * Makefile.in (SFILES): Add d-exp.y.
3559 (YYFILES): Add d-exp.c.
3560 (YYOBJ): Add d-exp.o.
3561 (local-maintainer-clean): Delete d-exp.c.
3562 * d-exp.y: New file.
3563 * d-lang.h (d_parse): New declaration.
3564 (d_error): New declaration.
3565 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3566 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3567 PREC_ORDER operators.
3568 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3570 2014-06-19 Yao Qi <yao@codesourcery.com>
3572 * gdbthread.h (any_running): Remove the declaration.
3573 * thread.c (any_running): Remove.
3575 2014-06-19 Yao Qi <yao@codesourcery.com>
3577 * gdbthread.h (struct thread_info) <state>: Change its type to
3578 'enum thread_state'. Update comments.
3580 2014-06-19 Pedro Alves <palves@redhat.com>
3582 * gdbthread.h (ALL_THREADS): Delete.
3583 (ALL_NON_EXITED_THREADS): New macro.
3584 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3585 instead of ALL_THREADS.
3586 * infrun.c (find_thread_needs_step_over)
3587 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3588 instead of ALL_THREADS.
3589 * record-btrace.c (record_btrace_open)
3590 (record_btrace_stop_recording, record_btrace_close)
3591 (record_btrace_is_replaying, record_btrace_resume)
3592 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3593 * remote.c (append_pending_thread_resumptions): Likewise.
3594 * thread.c (thread_apply_all_command): Likewise.
3596 2014-06-19 Gary Benson <gbenson@redhat.com>
3598 * i386-nat.c (i386_stopped_by_watchpoint):
3599 Use i386_dr_stopped_by_watchpoint.
3600 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3601 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3603 2014-06-19 Gary Benson <gbenson@redhat.com>
3605 * nat/i386-dregs.c: New file.
3606 * Makefile.in (i386-dregs.o): New rule.
3607 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3608 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3609 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3610 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3611 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3612 * config/i386/go32.mh (NATDEPFILES): Likewise.
3613 * config/i386/linux.mh (NATDEPFILES): Likewise.
3614 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3615 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3616 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3617 * i386-nat.h (debug_hw_points): New declaration.
3618 * i386-nat.c (breakpoint.h): Remove include.
3619 (command.h): Likewise.
3620 (target.h): Likewise.
3621 (gdb_assert.h): Likewise.
3622 (debug_hw_points): Made nonstatic.
3623 (debug_printf): Now in i386-dregs.c.
3624 (TARGET_HAS_DR_LEN_8): Likewise.
3625 (DR_CONTROL_SHIFT): Likewise.
3626 (DR_CONTROL_SIZE): Likewise.
3627 (DR_RW_EXECUTE): Likewise.
3628 (DR_RW_WRITE): Likewise.
3629 (DR_RW_READ): Likewise.
3630 (DR_RW_IORW): Likewise.
3631 (DR_LEN_1): Likewise.
3632 (DR_LEN_2): Likewise.
3633 (DR_LEN_4): Likewise.
3634 (DR_LEN_8): Likewise.
3635 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3636 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3637 (DR_ENABLE_SIZE): Likewise.
3638 (DR_LOCAL_SLOWDOWN): Likewise.
3639 (DR_GLOBAL_SLOWDOWN): Likewise.
3640 (DR_CONTROL_RESERVED): Likewise.
3641 (I386_DR_CONTROL_MASK): Likewise.
3642 (I386_DR_VACANT): Likewise.
3643 (I386_DR_LOCAL_ENABLE): Likewise.
3644 (I386_DR_GLOBAL_ENABLE): Likewise.
3645 (I386_DR_DISABLE): Likewise.
3646 (I386_DR_SET_RW_LEN): Likewise.
3647 (I386_DR_GET_RW_LEN): Likewise.
3648 (I386_DR_WATCH_HIT): Likewise.
3649 (i386_wp_op_t): Likewise.
3650 (i386_show_dr): Likewise.
3651 (i386_length_and_rw_bits): Likewise.
3652 (i386_insert_aligned_watchpoint): Likewise.
3653 (i386_remove_aligned_watchpoint): Likewise.
3654 (i386_handle_nonaligned_watchpoint): Likewise.
3655 (i386_update_inferior_debug_regs): Likewise.
3656 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3657 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3658 (i386_region_ok_for_watchpoint):
3659 Use i386_dr_region_ok_for_watchpoint.
3660 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3662 2014-06-19 Gary Benson <gbenson@redhat.com>
3664 * i386-nat.c (i386_insert_hw_breakpoint): Use
3665 i386_insert_watchpoint.
3666 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3668 2014-06-19 Gary Benson <gbenson@redhat.com>
3670 * i386-nat.c (i386_dr_show): Renamed to
3671 i386_show_dr and made static. All uses updated.
3672 (i386_dr_length_and_rw_bits): Renamed to
3673 i386_length_and_rw_bits and made static.
3675 (i386_dr_insert_aligned_watchpoint): Renamed to
3676 i386_insert_aligned_watchpoint and made static.
3678 (i386_dr_remove_aligned_watchpoint): Renamed to
3679 i386_remove_aligned_watchpoint and made static.
3681 (i386_dr_update_inferior_debug_regs): Renamed to
3682 i386_update_inferior_debug_regs and made static.
3684 * nat/i386-dregs.h (i386_dr_show): Removed.
3685 (i386_dr_length_and_rw_bits): Likewise.
3686 (i386_dr_insert_aligned_watchpoint): Likewise.
3687 (i386_dr_remove_aligned_watchpoint): Likewise.
3688 (i386_dr_update_inferior_debug_regs): Likewise.
3690 2014-06-19 Gary Benson <gbenson@redhat.com>
3692 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3693 * configure: Regenerate.
3694 * config.in: Likewise.
3695 * main.c (signal.h): New include.
3696 (setup_alternate_signal_stack): New function.
3697 (captured_main): Call the above.
3698 * cp-support.c (signal.h): New include.
3699 (catch_demangler_crashes): New flag.
3700 (SIGJMP_BUF): New define.
3701 (SIGSETJMP): Likewise.
3702 (SIGLONGJMP): Likewise.
3703 (gdb_demangle_jmp_buf): New static global.
3704 (gdb_demangle_attempt_core_dump): Likewise.
3705 (gdb_demangle_signal_handler): New function.
3706 (gdb_demangle): If catch_demangler_crashes is set, install the
3707 above signal handler before calling bfd_demangle, and restore
3708 the original signal handler afterwards. Display the offending
3709 symbol and call demangler_warning the first time a segmentation
3711 (_initialize_cp_support): New maint set/show command.
3713 2014-06-19 Gary Benson <gbenson@redhat.com>
3715 * utils.h (resource_limit_kind): New enum.
3716 (can_dump_core): New declaration.
3717 (warn_cant_dump_core): Likewise.
3718 (dump_core): Likewise.
3719 * utils.c (dump_core): Made nonstatic. Added new
3720 parameter "limit_kind".
3721 (can_dump_core): Made nonstatic. Moved printing code to...
3722 (warn_cant_dump_core): New function.
3723 (can_dump_core_warn): Likewise.
3724 (internal_vproblem): Replace calls to can_dump_core with
3725 calls to can_dump_core_warn. Supply new argument to each.
3727 2014-06-19 Gary Benson <gbenson@redhat.com>
3729 * utils.h (demangler_vwarning): New declaration.
3730 (demangler_warning): Likewise.
3731 * utils.c (struct internal_problem)
3732 <user_settable_should_quit>: New field.
3733 <user_settable_should_dump_core>: Likewise
3734 (internal_error_problem): Add values for above new fields.
3735 (internal_warning_problem): Likewise.
3736 (demangler_warning_problem): New static global.
3737 (demangler_vwarning): New function.
3738 (demangler_warning): Likewise.
3739 (add_internal_problem_command): Selectively add commands.
3740 (_initialize_utils): New internal problem command.
3741 * maint.c (maintenance_demangler_warning): New function.
3742 (_initialize_maint_cmds): New command.
3744 2014-06-18 Tom Tromey <tromey@redhat.com>
3746 * f-valprint.c (info_common_command_for_block): Update.
3747 * symtab.h (struct general_symbol_info) <common_block>: Now
3750 2014-06-18 Tom Tromey <tromey@redhat.com>
3752 * symtab.h (struct symtab) <blockvector>: Now const.
3753 * ada-lang.c (ada_add_global_exceptions): Update.
3754 * buildsym.c (augment_type_symtab): Update.
3755 * dwarf2read.c (dw2_lookup_symbol): Update.
3756 * jit.c (finalize_symtab): Update.
3757 * jv-lang.c (add_class_symtab_symbol): Update.
3758 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3760 * objfiles.c (objfile_relocate1): Update.
3761 * psymtab.c (lookup_symbol_aux_psymtabs)
3762 (maintenance_check_psymtabs): Update.
3763 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3765 * spu-tdep.c (spu_catch_start): Update.
3766 * symmisc.c (dump_symtab_1): Update.
3767 * symtab.c (lookup_global_symbol_from_objfile)
3768 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3769 (basic_lookup_transparent_type_quick)
3770 (basic_lookup_transparent_type, find_pc_sect_symtab)
3771 (find_pc_sect_line, search_symbols): Update.
3772 * block.c (find_block_in_blockvector): Make "bl" const.
3773 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3775 (blockvector_contains_pc): Make "bv" const.
3776 (block_for_pc_sect): Update.
3777 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3778 (blockvector_contains_pc): Update.
3779 * breakpoint.c (resolve_sal_pc): Update.
3780 * inline-frame.c (block_starting_point_at): Update.
3782 2014-06-18 Tom Tromey <tromey@redhat.com>
3784 * completer.c (complete_line): Make "line_buffer" const.
3785 * completer.h (complete_line): Update.
3787 2014-06-18 Tom Tromey <tromey@redhat.com>
3789 * symtab.c (add_macro_name): Remove unneeded cast.
3791 2014-06-18 Tom Tromey <tromey@redhat.com>
3793 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3794 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3796 2014-06-18 Tom Tromey <tromey@redhat.com>
3798 * probe.c (info_probes_for_ops): Make "arg" const.
3799 * probe.h (info_probes_for_ops): Update.
3801 2014-06-18 Tom Tromey <tromey@redhat.com>
3803 * varobj.c (varobj_create): Update.
3804 * valops.c (value_of_this): Update.
3805 * tracepoint.c (add_local_symbols, scope_info): Update.
3806 * symtab.h (struct general_symbol_info) <block>: Now const.
3807 * symtab.c (skip_prologue_sal)
3808 (default_make_symbol_completion_list_break_on)
3809 (skip_prologue_using_sal): Update.
3810 * stack.h (iterate_over_block_locals)
3811 (iterate_over_block_local_vars): Update.
3812 * stack.c (print_frame_args): Update.
3813 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3815 (get_selected_block): Make return type const.
3816 * python/py-frame.c (frapy_block): Update.
3817 * python/py-block.c (gdbpy_block_for_pc): Update.
3818 * p-exp.y (%union) <bval>: Now const.
3819 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3820 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3821 * m2-exp.y (%union) <bval>: Now const.
3822 * linespec.c (get_current_search_block): Make return type const.
3823 (create_sals_line_offset, find_label_symbols): Update.
3824 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3826 (block_starting_point_at): Make "block" const.
3827 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3828 (check_exception_resume): Update.
3829 * guile/scm-frame.c (gdbscm_frame_block): Update.
3830 * guile/scm-block.c (gdbscm_lookup_block): Update.
3831 * frame.h (get_frame_block): Update.
3832 (get_selected_block): Make return type const.
3833 * frame.c (frame_id_inner): Update.
3834 * f-valprint.c (info_common_command_for_block)
3835 (info_common_command): Update.
3836 * dwarf2loc.c (dwarf2_find_location_expression)
3837 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3838 (locexpr_describe_location_piece): Update.
3839 * c-exp.y (%union) <bval>: Now const.
3840 * breakpoint.c (resolve_sal_pc): Update.
3841 * blockframe.c (get_frame_block):Make return type const.
3842 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3843 (block_innermost_frame): Update.
3844 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3845 (block_for_pc, block_for_pc_sect): Update.
3846 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3848 (block_for_pc_sect, block_for_pc): Make return type const.
3849 * ax-gdb.c (gen_expr): Update.
3850 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3851 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3852 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3853 (ada_read_var_value): Update.
3854 * ada-exp.y (struct name_info) <block>: Now const.
3856 (block_lookup): Constify.
3858 2014-06-18 Gary Benson <gbenson@redhat.com>
3860 * nat/i386-dregs.h: New file.
3861 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3862 * i386-nat.h (i386-dregs.h): New include.
3863 (DR_FIRSTADDR): Now in i386-dregs.h.
3864 (DR_LASTADDR): Likewise.
3865 (DR_NADDR): Likewise.
3866 (DR_STATUS): Likewise.
3867 (DR_CONTROL): Likewise.
3868 (i386_debug_reg_state): Likewise.
3869 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3871 2014-06-18 Don Breazeal <donb@codesourcery.com>
3873 * breakpoint.c (set_longjmp_breakpoint): Call
3874 momentary_breakpoint_from_master with additional argument.
3875 (set_longjmp_breakpoint_for_call_dummy): Call
3876 momentary_breakpoint_from_master with additional argument.
3877 (set_std_terminate_breakpoint): Call
3878 momentary_breakpoint_from_master with additional argument.
3879 (momentary_breakpoint_from_master): Add argument to function
3880 definition and use it to initialize structure member flag.
3881 (clone_momentary_breakpoint): Call
3882 momentary_breakpoint_from_master with additional argument.
3883 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3884 member flags set in momentary_breakpoint_from_master.
3886 2014-06-18 Gary Benson <gbenson@redhat.com>
3888 * i386-nat.c (i386_show_dr): Renamed to
3889 i386_dr_show and made nonstatic. All uses updated.
3890 (i386_length_and_rw_bits): Renamed to
3891 i386_dr_length_and_rw_bits and made nonstatic.
3893 (i386_insert_aligned_watchpoint): Renamed to
3894 i386_dr_insert_aligned_watchpoint and made nonstatic.
3896 (i386_remove_aligned_watchpoint): Renamed to
3897 i386_dr_remove_aligned_watchpoint and made nonstatic.
3899 (i386_update_inferior_debug_regs): Renamed to
3900 i386_dr_update_inferior_debug_regs and made nonstatic.
3903 2014-06-18 Gary Benson <gbenson@redhat.com>
3905 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3906 (i386_dr_low_can_set_control): Likewise.
3907 (i386_dr_low_set_addr): Likewise.
3908 (i386_dr_low_set_control): Likewise.
3909 (i386_dr_low_get_addr): Likewise.
3910 (i386_dr_low_get_status): Likewise.
3911 (i386_dr_low_get_control): Likewise.
3912 (i386_insert_aligned_watchpoint): Use new macros.
3913 (i386_update_inferior_debug_regs): Likewise.
3914 (i386_stopped_data_address): Likewise.
3916 2014-06-18 Gary Benson <gbenson@redhat.com>
3918 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3919 New parameter. All uses updated.
3921 2014-06-18 Gary Benson <gbenson@redhat.com>
3923 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3926 2014-06-18 Gary Benson <gbenson@redhat.com>
3928 * i386-nat.c (debug_printf): New macro.
3929 (i386_get_debug_register_length): Likewise.
3930 (TARGET_HAS_DR_LEN_8): Use above macro.
3931 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3932 and printf_unfiltered. Use phex to format values.
3934 2014-06-18 Gary Benson <gbenson@redhat.com>
3936 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3939 2014-06-18 Gary Benson <gbenson@redhat.com>
3941 * i386-nat.c: Comment changes.
3943 2014-06-18 Gary Benson <gbenson@redhat.com>
3945 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3947 2014-06-18 Gary Benson <gbenson@redhat.com>
3949 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3950 (i386_insert_aligned_watchpoint): Likewise.
3951 (i386_remove_aligned_watchpoint): Likewise.
3952 (i386_handle_nonaligned_watchpoint): Likewise.
3954 2014-06-18 Gary Benson <gbenson@redhat.com>
3956 * i386-nat.c: Whitespace changes.
3958 2014-06-17 Samuel Bronson <naesten@gmail.com>
3960 * MAINTAINERS: Update Roland McGrath's email address.
3961 Thanks to Sergio Durigan Junior for pointing out that he left
3962 Red Hat a while ago, and giving me a current address.
3964 2014-06-17 Tom Tromey <tromey@redhat.com>
3966 * utils.h (savestring): Remove declaration.
3968 2014-06-17 Tom Tromey <tromey@redhat.com>
3970 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3972 2014-06-16 Keith Seitz <keiths@redhat.com>
3975 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3976 to update the varobj if inferior_ptid is null_ptid.
3978 2014-06-16 Tom Tromey <tromey@redhat.com>
3980 * target.h (struct target_ops) <to_info_proc>: Make parameter
3982 (target_info_proc): Update.
3983 * target.c (target_info_proc): Make "args" const.
3984 * procfs.c (procfs_info_proc): Update.
3985 * linux-tdep.c (linux_info_proc): Update.
3986 (linux_core_info_proc_mappings): Make "args" const.
3987 (linux_core_info_proc): Update.
3988 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3989 * gdbarch.c: Rebuild.
3990 * gdbarch.h: Rebuild.
3991 * corelow.c (core_info_proc): Update.
3993 2014-06-16 Tom Tromey <tromey@redhat.com>
3995 * target.h (struct target_ops) <to_disconnect>: Make parameter
3997 (target_disconnect): Update.
3998 * target.c (target_disconnect): Make "args" const.
3999 * target-delegates.c: Rebuild.
4000 * remote.c (remote_disconnect): Update.
4001 * record.h (record_disconnect): Update.
4002 * record.c (record_disconnect): Update.
4003 * inf-child.c (inf_child_disconnect): Update.
4005 2014-06-16 Tom Tromey <tromey@redhat.com>
4007 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4008 * target.c (debug_to_rcmd, default_rcmd): Update.
4009 * target-delegates.c: Rebuild.
4010 * remote.c (remote_rcmd): Update.
4011 * monitor.c (monitor_rcmd): Update.
4013 2014-06-16 Pedro Alves <palves@redhat.com>
4015 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4016 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4017 have OBJF_SHARED set.
4018 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4019 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4020 instead of OBJF_USERLOADED.
4021 * objfiles.h (OBJF_SHARED): Update comment.
4022 (userloaded_objfile_contains_address_p): Rename to ...
4023 (shared_objfile_contains_address_p): ... this, and update
4025 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4027 (remove_symbol_file_command): Skip objfiles that don't have
4030 2014-06-16 Tom Tromey <tromey@redhat.com>
4032 * minsyms.h (prim_record_minimal_symbol)
4033 (prim_record_minimal_symbol_and_info): Update comments.
4035 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4037 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4038 or --without-guile, according to how GDB was built.
4040 2014-06-13 Tom Tromey <tromey@redhat.com>
4042 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4044 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4046 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4048 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4049 help_list.Pass all_commands, not -1, to help_list.
4050 * cli/cli-dump.c (dump_command, append_command)
4051 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4052 (binary_dump_command, binary_append_command): Pass all_commands,
4053 not -1, to help_list.
4054 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4056 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4058 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4060 * top.c (set_history): Pass all_commands, not -1, to help_list.
4061 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4062 all_commands, not -1, to help_list.
4063 * symfile.c (overlay_command): Pass all_commands, not -1, to
4065 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4067 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4069 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4071 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4072 not -1, to help_list.
4073 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4074 not -1, to help_list.
4075 * maint.c (maintenance_command, maintenance_info_command)
4076 (maintenance_print_command, maintenance_set_cmd): Pass
4077 all_commands, not -1, to help_list.
4078 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4080 * language.c (set_check): Pass all_commands, not -1, to help_list.
4081 * infcmd.c (unset_command): Pass all_commands, not -1, to
4083 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4085 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4087 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4089 * breakpoint.c (save_command): Pass all_commands, not -1, to
4091 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4092 all_commands, not -1, to help_list.
4094 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4096 * regcache.c (struct register_to_invalidate): New structure.
4097 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4099 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4101 2014-06-12 Yao Qi <yao@codesourcery.com>
4103 * varobj.c (varobj_get_num_children): Call
4104 varobj_is_dynamic_p.
4105 (varobj_list_children): Likewise.
4106 (varobj_update): Likewise. Update comments.
4108 2014-06-12 Yao Qi <yao@codesourcery.com>
4110 * varobj.c (varobj_pretty_printed_p): Rename to ...
4111 (varobj_is_dynamic_p): ... this. New function.
4112 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4113 (varobj_is_dynamic_p): Declare.
4114 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4115 (mi_print_value_p, varobj_update_one): Likewise.
4117 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4118 Yao Qi <yao@codesourcery.com>
4120 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4121 (varobj_get_iterator): Wrap up code for pretty-printer by
4122 "#if HAVE_PYTHON" and "#endif".
4123 (update_dynamic_varobj_children): Likewise.
4125 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4126 Yao Qi <yao@codesourcery.com>
4128 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4129 gdb_python_initialized is false. Move some code from varobj.c.
4130 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4131 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4132 (struct varobj_item): Moved to varobj-iter.h".
4133 (varobj_clear_saved_item): New function.
4134 (update_dynamic_varobj_children): Move python-related code to
4136 (free_variable): Call varobj_clear_saved_item and
4139 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4140 Yao Qi <yao@codesourcery.com>
4142 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4143 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4144 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4145 (py-varobj.o): New rule.
4146 * python/py-varobj.c: New file.
4147 * python/python-internal.h (py_varobj_get_iterator): Declare.
4148 * varobj-iter.h: New file.
4149 * varobj.c: Include "varobj-iter.h"
4150 (struct varobj) <child_iter>: Change its type from "PyObject *"
4151 to "struct varobj_iter *".
4152 <saved_item>: Likewise.
4153 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4154 [HAVE_PYTHON] (varobj_get_iterator): New function.
4155 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4156 python-specific code to python/py-varobj.c.
4157 (install_visualizer): Call varobj_iter_delete instead of
4159 * varobj.h (varobj_ensure_python_env): Declare.
4161 2014-06-12 Yao Qi <yao@codesourcery.com>
4163 * varobj.c (struct varobj_item): New structure.
4164 (create_child_with_value): Update declaration.
4165 (varobj_add_child): Replace arguments 'name' and 'value' with
4166 'item'. All callers updated.
4167 (install_dynamic_child): Likewise.
4168 (update_dynamic_varobj_children): Likewise.
4169 (varobj_add_child): Likewise.
4170 (create_child_with_value): Likewise.
4172 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4174 * NEWS: Create a new section for the next release branch.
4175 Rename the section of the current branch, now that it has
4178 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4180 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4181 * version.in: Bump version to 7.8.50.DATE-cvs.
4183 2014-06-11 Pedro Alves <palves@redhat.com>
4186 * ser-mingw.c (net_windows_socket_check_pending): New function.
4187 (net_windows_select_thread): Ignore spurious wakeups. Use
4188 net_windows_socket_check_pending.
4189 (net_windows_wait_handle): Check for pending events with
4190 ioctlsocket, through net_windows_socket_check_pending, instead of
4191 checking the socket's event.
4193 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4195 * python/python-internal.h (gdb_PyObject_GetAttrString)
4196 (gdb_PyObject_HasAttrString): New inline function definitions.
4197 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4198 char * of the second argument to PyObject_GetAttrString.
4200 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4202 * serial.c (serial_write): Fix index of character to be printed
4203 in call to serial_logchar when serial debug traces are enabled.
4205 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4207 * gdbtypes (resolve_dynamic_range): Add function description.
4209 2014-06-09 Pedro Alves <palves@redhat.com>
4211 * linux-nat.c (linux_child_follow_fork): Initialize status with
4212 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4213 inner block. Only pass the signal to PTRACE_DETACH if in pass
4216 2014-06-09 Gary Benson <gbenson@redhat.com>
4218 * common/signals.c (gdb_signal_from_host): Reorder to separate
4219 the always-available ANSI-standard signals from the signals that
4221 (do_gdb_signal_to_host): Likewise.
4222 * proc-events.c (signal_table): Likewise.
4224 2014-06-08 Hui Zhu <hui@codesourcery.com>
4226 * common/linux-ptrace.c (linux_disable_event_reporting): New
4228 * common/linux-ptrace.h (linux_disable_event_reporting): New
4230 * linux-nat.c (linux_child_follow_fork): Do a single step before
4233 2014-06-07 Keith Seitz <keiths@redhat.com>
4237 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4238 from symbol_matches_domain in symtab.c. All local callers
4239 of symbol_matches_domain updated.
4240 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4241 search STRUCT_DOMAIN.
4242 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4243 independently. standard_lookup will do that automatically.
4244 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4245 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4246 (cp_lookup_symbol_in_namespace): Likewise.
4247 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4248 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4249 may return a STRUCT_DOMAIN match.
4250 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4251 * cp-support.c: Include language.h.
4252 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4254 * psymtab.c (match_partial_symbol): Compare the requested
4255 domain with the symbol's domain directly.
4256 (lookup_partial_symbol): Likewise.
4257 * symtab.c (lookup_symbol_in_language): Explain when/why
4258 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4259 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4260 appropriate languages.
4261 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4262 and moved to ada-lang.c
4263 (lookup_block_symbol): Explain that this function only returns
4264 symbol matching the requested DOMAIN.
4265 Compare the requested domain with the symbol's domain directly.
4266 (iterate_over_symbols): Compare the requested domain with the
4267 symbol's domain directly.
4268 * symtab.h (symbol_matches_domain): Remove.
4270 2014-06-06 Doug Evans <xdje42@gmail.com>
4272 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4273 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4274 (gdbscm_guile_version_is_at_least): Declare.
4275 (gdbscm_scm_string_to_int): Declare.
4276 * guile/guile.c (gdbscm_guile_major_version): New global.
4277 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4278 (guile_datadir): New static global.
4279 (gdbscm_guile_data_directory): New function.
4280 (initialize_scheme_side): Update.
4281 (misc_guile_functions): Add guile-data-directory.
4282 (initialize_gdb_module): Fetch guile version number.
4283 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4284 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4285 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4286 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4288 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4289 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4290 * guile/scm-value.c (gdbscm_value_to_string): Only call
4291 scm_port_conversion_strategy if Guile version >= 2.0.6.
4293 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4295 * main.c (print_gdb_help): Add -q and --silent.
4297 2014-06-06 Gary Benson <gbenson@redhat.com>
4299 * common/signals.c: Remove preprocessor conditionals for
4300 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4301 SIGSEGV and SIGTERM.
4302 * proc-events.c: Likewise.
4304 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4306 * symfile.c (symfile_free_objfile): Remove restriction to
4308 * symfile-mem.c (symbol_file_add_from_memory): Call
4309 add_target_sections_of_objfile.
4311 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4313 * guile/scm-value.c (gdbscm_history_append_x): Use
4314 'vlscm_get_value_smob_arg_unsafe' instead of
4315 'vlscm_scm_to_value'.
4317 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4320 * utils.c (printchar): Don't escape at all if quoter is NUL.
4321 Update function documentation to clarify effect of parameter
4323 * remote.c (escape_buffer): Pass '\\' as the quoter to
4324 fputstrn_unfiltered.
4325 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4326 generate the output.
4327 (mi_solib_unloaded): Same.
4329 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4331 * development.sh: Delete.
4332 * Makefile.in (config.status): Adjust dependency on development.sh.
4333 * configure.ac: Adjust development.sh source call.
4334 * configure: Regenerate.
4336 2014-06-04 Doug Evans <xdje42@gmail.com>
4338 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4339 is_scheme_bkpt, spec.
4340 (bpscm_make_breakpoint_smob): Initialize new members.
4341 (gdbscm_create_breakpoint_x): Split into two ...
4342 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4343 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4344 (scheme_function breakpoint_functions): Update.
4345 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4346 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4347 register-breakpoint!.
4349 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4352 * mem-break.c (z_type_supported): Return zero if
4353 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4355 2014-06-04 Tom Tromey <tromey@redhat.com>
4357 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4358 value_from_contents_and_address_unresolved.
4359 (ada_template_to_fixed_record_type_1): Likewise.
4360 (ada_which_variant_applies): Likewise.
4361 * value.h (value_from_contents_and_address_unresolved): Declare.
4362 * value.c (value_from_contents_and_address_unresolved): New
4364 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4365 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4366 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4368 2014-06-04 Tom Tromey <tromey@redhat.com>
4370 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4372 2014-06-04 Tom Tromey <tromey@redhat.com>
4374 * procfs.c (procfs_attach): Make "args" const.
4375 * windows-nat.c (windows_attach): Make "args" const.
4376 * nto-procfs.c (procfs_attach): Make "args" const.
4377 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4378 * go32-nat.c (go32_attach): Make "args" const.
4379 * gnu-nat.c (gnu_attach): Make "args" const.
4380 * darwin-nat.c (darwin_attach): Make "args" const.
4381 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4382 * linux-nat.c (linux_nat_attach): Make "args" const.
4383 * remote.c (extended_remote_attach_1, extended_remote_attach):
4385 * target.h (struct target_ops) <to_attach>: Make "args" const.
4386 (find_default_attach): Likewise.
4387 * utils.c (parse_pid_to_attach): Make "args" const.
4388 * utils.h (parse_pid_to_attach): Update.
4390 2014-06-04 Tom Tromey <tromey@redhat.com>
4392 * target-delegates.c: Rebuild.
4393 * target.c (default_thread_address_space): New function.
4394 (target_thread_address_space): Simplify.
4395 * target.h (struct target_ops) <to_thread_address_space>: Add
4396 TARGET_DEFAULT_FUNC.
4398 2014-06-04 Doug Evans <xdje42@gmail.com>
4400 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4402 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4404 * record-btrace.c: Include event-loop.h and inf-loop.h.
4405 (record_btrace_resume_exec_dir)
4406 (record_btrace_async_inferior_event_handler)
4407 (record_btrace_handle_async_inferior_event): New.
4408 (record_btrace_open): Create async event handler.
4409 (record_btrace_close): Delete async event handler.
4410 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4411 Mark async event handler.
4412 (record_btrace_execution_direction): New.
4413 (init_record_btrace_ops): Initialize to_execution_direction.
4415 2014-06-03 Doug Evans <xdje42@gmail.com>
4417 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4418 (gdbscm_make_parameter): Ditto.
4420 2014-06-03 Doug Evans <dje@google.com>
4422 * exec.c (exec_close_1): Call clear_section_table instead of
4423 resize_section_table.
4424 (clear_section_table): New function.
4425 (resize_section_table): Make static. Rename arg num_added to
4427 * exec.h (clear_section_table): Declare.
4428 (resize_section_table): Delete.
4429 * progspace.c (release_program_space): Call clear_section_table
4430 instead of resize_section_table.
4432 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4434 * NEWS (Python Scripting): Add entry about the new xmethods
4437 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4439 * python/py-xmethods.c: New file.
4440 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4441 (objfpy_dealloc): XDECREF on the new xmethods field.
4442 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4444 (objfpy_get_xmethods): New function.
4445 (objfile_getset): New entry 'xmethods'.
4446 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4447 (pspy_dealloc): XDECREF on the new xmethods field.
4448 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4450 (pspy_get_xmethods): New function.
4451 (pspace_getset): New entry 'xmethods'.
4452 * python/python-internal.h: Add declarations for new functions.
4453 * python/python.c (_initialize_python): Invoke
4454 gdbpy_initialize_xmethods.
4455 * python/lib/gdb/__init__.py (xmethods): New
4457 * python/lib/gdb/xmethod.py: New file.
4458 * python/lib/gdb/command/xmethods.py: New file.
4460 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4462 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4463 best match method returned by find_overload_match is an xmethod.
4464 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4465 the best matching operator returned by find_overload_match is an
4467 * valops.c: #include "extension.h".
4468 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4469 Return void. The list of matching source methods is returned in
4470 "fn_list" and a vector of matching debug method workers is
4471 returned in "xm_worker_vec". Update all callers.
4472 (value_find_oload_method_list): Likewise.
4473 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4474 non-NULL, then the index of the best matching method in this
4475 vector is returned. Update all callers.
4476 (find_overload_match): Include xmethods while performing overload
4479 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4481 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4482 * extension-priv.h (struct extension_language_ops): Add the
4484 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4485 get_matching_xmethod_workers, get_xmethod_argtypes,
4486 invoke_xmethod, free_xmethod_worker,
4487 free_xmethod_worker_vec): New functions.
4488 * extension.h: #include "common/vec.h".
4489 New function declarations.
4490 (struct xmethod_worker): New struct.
4491 (VEC (xmethod_worker_ptr)): New vector type.
4492 (xmethod_worker_ptr): New typedef.
4493 (xmethod_worker_vec): Likewise.
4494 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4496 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4497 (struct builtin_type): New field "xmethod".
4498 * valarith.c (value_ptradd): Assert that the value argument is not
4500 * valops.c (value_must_coerce_to_target): Return 0 for
4501 lval_xcallable values.
4502 * value.c (struct value): New field XM_WORKER in the field
4504 (value_address, value_raw_address): Return 0 for lval_xcallable
4506 (set_value_address): Assert that the value is not an
4508 (value_free): Free the associated xmethod worker when freeing
4509 lval_xcallable values.
4510 (set_value_component_location): Assert that the WHOLE value is not
4512 (value_of_xmethod, call_xmethod): New functions.
4513 * value.h: Declare "struct xmethod_worker".
4514 Declare new functions value_of_xmethod, call_xmethod.
4516 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4517 Pedro Alves <palves@redhat.com>
4519 PR breakpoints/17000
4520 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4521 New function, extracted from software_breakpoint_inserted_here_p.
4522 (software_breakpoint_inserted_here_p): Replace factored out code
4523 by call to find_non_raw_software_breakpoint_inserted_here.
4524 (bp_target_info_copy_insertion_state): New function.
4525 (bkpt_insert_location): Handle the case of a single-step
4526 breakpoint already inserted at the same address.
4527 (bkpt_remove_location): Handle the case of a single-step
4528 breakpoint still inserted at the same address.
4529 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4530 breakpoint already inserted at the same address.
4531 (deprecated_remove_raw_breakpoint): Handle the case of a
4532 non-raw breakpoint still inserted at the same address.
4533 (find_single_step_breakpoint): New function, extracted from
4534 single_step_breakpoint_inserted_here_p.
4535 (find_single_step_breakpoint): New function,
4536 factored out from single_step_breakpoint_inserted_here_p.
4537 (single_step_breakpoint_inserted_here_p): Reimplement.
4539 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4541 Pushed by Joel Brobecker <brobecker@adacore.com>
4542 * source.c (show_substitute_path_command): Fix display of matching
4545 2014-06-03 Gary Benson <gbenson@redhat.com>
4547 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4549 2014-06-02 Doug Evans <xdje42@gmail.com>
4551 Add parameter support for Guile.
4552 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4553 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4554 (scm-param.o): New rule.
4555 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4556 (gdbscm_misc_error): Declare.
4557 (gdbscm_canonicalize_command_name): Declare.
4558 (gdbscm_scm_to_host_string): Declare.
4559 (gdbscm_scm_from_host_string): Declare.
4560 (gdbscm_initialize_parameters): Declare.
4561 * guile/guile.c (initialize_gdb_module): Call
4562 gdbscm_initialize_parameters.
4563 * guile/lib/gdb.scm: Export parameter symbols.
4564 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4565 cmdscm_canonicalize_name and made public. All callers updated.
4566 * guile/scm-exception.c (gdbscm_misc_error): New function.
4567 * guile/scm-param.c: New file.
4568 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4569 (gdbscm_scm_to_host_string): New function.
4570 (gdbscm_scm_from_host_string): New function.
4571 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4573 2014-06-02 Doug Evans <xdje42@gmail.com>
4575 Add command support for Guile.
4576 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4577 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4578 (scm-cmd.o): New rule.
4579 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4580 (gdbscm_user_error_p): Declare.
4581 (gdbscm_parse_command_name): Declare.
4582 (gdbscm_valid_command_class_p): Declare.
4583 (gdbscm_initialize_commands): Declare.
4584 * guile/guile.c (initialize_gdb_module): Call
4585 gdbscm_initialize_commands.
4586 * guile/lib/gdb.scm: Export command symbols.
4587 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4588 (throw-user-error): New function.
4589 * guile/scm-cmd.c: New file.
4590 * guile/scm-exception.c (user_error_symbol): New static global.
4591 (gdbscm_user_error_p): New function.
4592 (gdbscm_initialize_exceptions): Set user_error_symbol.
4593 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4595 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4597 * top.c (command_loop): Handle comments here...
4598 (command_line_input): ... not here.
4600 2014-06-02 Doug Evans <xdje42@gmail.com>
4602 Add progspace support for Guile.
4603 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4604 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4605 (scm-progspace.o): New rule.
4606 * guile/guile-internal.h (pspace_smob): New typedef.
4607 (psscm_pspace_smob_pretty_printers): Declare.
4608 (psscm_pspace_smob_from_pspace): Declare.
4609 (psscm_scm_from_pspace): Declare.
4610 * guile/guile.c (initialize_gdb_module): Call
4611 gdbscm_initialize_pspaces.
4612 * guile/lib/gdb.scm: Export progspace symbols.
4613 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4615 (append-pretty-printer!): Ditto.
4616 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4618 * guile/scm-progspace.c: New file.
4620 2014-06-03 Alan Modra <amodra@gmail.com>
4622 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4623 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4625 2014-06-02 Doug Evans <dje@google.com>
4627 Add support for skeletonless type units.
4628 * dwarf2read.c (struct dwarf2_per_objfile): New member
4629 n_allocated_type_units.
4630 (struct dwarf2_per_objfile) <tu_stats>: New member
4631 nr_all_type_units_reallocs.
4632 (create_signatured_type_table_from_index): Initialize
4633 n_allocated_type_units
4634 (create_all_type_units): Ditto.
4635 (add_type_unit): Move up in file. New arg slot.
4636 All callers updated. Increase space for all_type_units more
4638 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4639 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4640 (lookup_dwp_signatured_type): Ditto.
4641 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4642 All callers updated.
4643 (build_type_psymtabs_1): Leave type_unit_groups as
4644 NULL if no TUs present.
4645 (print_tu_stats): New function.
4646 (process_skeletonless_type_unit): New function.
4647 (process_dwo_file_for_skeletonless_type_units): New
4649 (process_skeletonless_type_units): New function.
4650 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4651 Call print tu_stats if debugging enabled.
4653 2014-06-02 Pedro Alves <palves@redhat.com>
4655 * breakpoint.c (build_target_command_list): Don't build a command
4656 list if we have any duplicate location that isn't a dprintf.
4658 2014-06-02 Pedro Alves <palves@redhat.com>
4660 * breakpoint.c (dprintf_breakpoint_hit): New function.
4661 (initialize_breakpoint_ops): Install it as dprintf's
4662 breakpoint_hit method.
4664 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4666 * source.c (substitute_path_rule_matches): Simplify using
4667 filename_ncmp instead of FILENAME_CMP.
4669 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4671 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4673 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4675 * configure.ac: When Guile is available, check for the
4676 availability of 'scm_new_smob'.
4677 * configure, config.h.in: Regenerate.
4678 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4681 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4683 * frame.c (struct frame_info): Add stop_string field.
4684 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4685 (get_prev_frame_always): Old content moved into
4686 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4687 TRY_CATCH, handle MEMORY_ERROR exceptions.
4688 (frame_stop_reason_string): New function definition.
4689 * frame.h (unwind_stop_reason_to_string): Extend comment to
4690 mention frame_stop_reason_string.
4691 (frame_stop_reason_string): New function declaration.
4692 * stack.c (frame_info): Switch to frame_stop_reason_string.
4693 (backtrace_command_1): Switch to frame_stop_reason_string.
4694 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4695 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4696 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4698 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4700 * frame.c (frame_stop_reason_string): Rename to ...
4701 (unwind_stop_reason_to_string): this.
4702 * frame.h (frame_stop_reason_string): Rename to ...
4703 (unwind_stop_reason_to_string): this.
4704 * stack.c (frame_info): Update call to frame_stop_reason_string.
4705 (backtrace_command_1): Likewise.
4706 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4707 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4709 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4711 * frame.c (remove_prev_frame): New function.
4712 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4715 2014-05-29 Pedro Alves <palves@redhat.com>
4717 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4718 and make it const. When a single-step decays to a continue,
4719 clear 'step', not 'hw_step'. Pass whether the caller wanted
4720 to step to user_visible_resume_ptid, not what we ask the
4723 2014-05-29 Pedro Alves <palves@redhat.com>
4725 * infrun.c (process_event_stop_test, handle_step_into_function)
4726 (handle_step_into_function_backward): Adjust.
4727 Don't set the even thread's stop_step and call stop_waiting before
4728 calling end_stepping_range. Instead do that ...
4729 (end_stepping_range): ... here. Take an ecs pointer parameter.
4731 2014-05-29 Pedro Alves <palves@redhat.com>
4733 * infrun.c (stop_stepping): Rename to ...
4734 (stop_waiting): ... this.
4735 (proceed): Update comment.
4736 (process_event_stop_test, handle_inferior_event)
4737 (handle_signal_stop, handle_step_into_function)
4738 (handle_step_into_function_backward): Update.
4740 2014-05-29 Pedro Alves <palves@redhat.com>
4742 * infcall.c (run_inferior_call): Don't check whether the current
4743 thread is running after the proceed call.
4745 2014-05-29 Pedro Alves <palves@redhat.com>
4746 Tom Tromey <tromey@redhat.com>
4748 * NEWS: Mention "maint set target-async", "set mi-async", and that
4749 background execution commands are now always available.
4750 * target.h (target_async_permitted): Update comment.
4751 * target.c (target_async_permitted, target_async_permitted_1):
4753 (set_target_async_command): Rename to ...
4754 (maint_set_target_async_command): ... this.
4755 (show_target_async_command): Rename to ...
4756 (maint_show_target_async_command): ... this.
4757 (_initialize_target): Adjust.
4758 * infcmd.c (prepare_execution_command): Make extern.
4759 * inferior.h (prepare_execution_command): Declare.
4760 * infrun.c (set_observer_mode): Leave target async alone.
4761 * mi/mi-interp.c (mi_interpreter_init): Install
4762 mi_on_sync_execution_done as sync_execution_done observer.
4763 (mi_on_sync_execution_done): New function.
4764 (mi_execute_command_input_handler): Don't print the prompt if we
4765 just started a synchronous command with an async target.
4766 (mi_on_resume): Check sync_execution before printing prompt.
4767 * mi/mi-main.h (mi_async_p): Declare.
4768 * mi/mi-main.c: Include gdbcmd.h.
4769 (mi_async_p): New function.
4770 (mi_async, mi_async_1): New globals.
4771 (set_mi_async_command, show_mi_async_command, mi_async): New
4773 (exec_continue): Call prepare_execution_command.
4774 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4775 (mi_execute_async_cli_command): Use mi_async_p.
4776 (_initialize_mi_main): Install "set mi-async". Make
4777 "target-async" a deprecated alias.
4779 2014-05-29 Pedro Alves <palves@redhat.com>
4781 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4782 (_initialize_cli_interp): Adjust.
4783 * event-loop.c: Include "observer.h".
4784 (start_event_loop): Notify 'command_error' observers instead of
4785 calling display_gdb_prompt. Remove FIXME comment.
4786 * event-top.c (display_gdb_prompt): Remove call into the
4788 * inf-loop.c: Include "observer.h".
4789 (inferior_event_handler): Notify 'command_error' observers instead
4790 of calling display_gdb_prompt.
4791 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4792 observers instead of calling display_gdb_prompt.
4793 * interps.c (interp_set): Don't call display_gdb_prompt.
4794 (current_interp_display_prompt_p): Delete.
4795 * interps.h (interp_prompt_p): Delete declaration.
4796 (interp_prompt_p_ftype): Delete.
4797 (struct interp_procs) <prompt_proc_p>: Delete field.
4798 (current_interp_display_prompt_p): Delete declaration.
4799 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4800 (_initialize_mi_interp): Adjust.
4801 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4802 'command_error' observers.
4803 (tui_on_sync_execution_done, tui_on_command_error): New
4805 (tui_display_prompt_p): Delete.
4806 (_initialize_tui_interp): Adjust.
4808 2014-05-29 Pedro Alves <palves@redhat.com>
4811 * cli/cli-interp.c: Include infrun.h and observer.h.
4812 (cli_uiout, cli_interp): New globals.
4813 (cli_on_signal_received, cli_on_end_stepping_range)
4814 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4816 (cli_interpreter_init): Install them as 'end_stepping_range',
4817 'signal_received' 'signal_exited', 'exited' and 'no_history'
4819 (_initialize_cli_interp): Remove cli_interp local.
4820 * infrun.c (handle_inferior_event): Call the several stop reason
4821 observers instead of printing the stop reason directly.
4822 (end_stepping_range): New function.
4823 (print_end_stepping_range_reason, print_signal_exited_reason)
4824 (print_exited_reason, print_signal_received_reason)
4825 (print_no_history_reason): Make static, and add an uiout
4826 parameter. Print to that instead of to CURRENT_UIOUT.
4827 * infrun.h (print_end_stepping_range_reason)
4828 (print_signal_exited_reason, print_exited_reason)
4829 (print_signal_received_reason print_no_history_reason): New
4831 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4833 <cli_uiout>: New field.
4834 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4835 uiout for CLI output. Install 'signal_received',
4836 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4838 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4839 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4840 (mi_on_no_history): New functions.
4841 (ui_out_free_cleanup): Delete function.
4842 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4843 instead use the one already stored in the MI interpreter data.
4844 (mi_ui_out): Adjust.
4845 * tui/tui-interp.c: Include infrun.h and observer.h.
4846 (tui_interp): New global.
4847 (tui_on_signal_received, tui_on_end_stepping_range)
4848 (tui_on_signal_exited, tui_on_exited)
4849 (tui_on_no_history): New functions.
4850 (tui_init): Install them as 'end_stepping_range',
4851 'signal_received' 'signal_exited', 'exited' and 'no_history'
4853 (_initialize_tui_interp): Delete tui_interp local.
4855 2014-05-29 Pedro Alves <palves@redhat.com>
4858 * linux-nat.c (linux_nat_resume_callback): Rename the second
4859 parameter to 'except'. Skip LP if it points to EXCEPT.
4860 (linux_nat_resume): Don't mark the event lwp as not stopped
4861 before resuming sibling lwps. Instead ask
4862 linux_nat_resume_callback to skip the event lwp. Mark it as not
4863 stopped after actually resuming it.
4864 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4866 (wait_lwp): Mark the lwp as stopped here.
4867 (stop_wait_callback): Mark the lwp as not stopped right after
4868 resuming it. Don't mark lwps as stopped here.
4869 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4870 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4872 2014-05-29 Pedro Alves <palves@redhat.com>
4875 * infrun.c (resume): Determine how much to resume depending on
4876 whether the caller wanted a step, not whether we can hardware step
4877 the target. Mark all threads that we intend to run as running,
4878 unless we're calling an inferior function.
4879 (normal_stop): If the thread is running an infcall, don't finish
4881 * target.c (target_resume): Don't mark threads as running here.
4883 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4885 * serial.c (_initialize_serial): Remove support for
4886 the "set remotebaud" and "show remotebaud" commands.
4887 * NEWS: Add entry documenting the removal of that command.
4889 2014-05-28 Yao Qi <yao@codesourcery.com>
4891 * charset.c: Fix typo in comments.
4893 2014-05-27 Gary Benson <gbenson@redhat.com>
4895 * utils.c (internal_vproblem): Prompt for a bug report.
4897 2014-05-26 Andy Wingo <wingo@igalia.com>
4899 * guile/scm-arch.c (arscm_mark_arch_smob):
4900 * guile/scm-block.c (bkscm_mark_block_smob)
4901 (bkscm_mark_block_syms_progress_smob):
4902 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4903 * guile/scm-exception.c (exscm_mark_exception_smob):
4904 * guile/scm-frame.c (frscm_mark_frame_smob):
4905 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4906 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4907 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4908 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4909 (ppscm_mark_pretty_printer_worker_smob):
4910 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4911 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4912 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4913 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4915 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4918 2014-05-26 Andy Wingo <wingo@igalia.com>
4919 Doug Evans <xdje42@gmail.com>
4921 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4922 empty_base_class. All uses updated.
4923 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4924 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4926 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4927 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4928 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4929 (gdbscm_gsmob_has_property_p, add_property_name)
4930 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4931 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4932 (gdb-object-has-property?, gdb-object-properties): Remove.
4933 (gdb-object-kind): Renamed from gsmob-kind.
4935 2014-05-26 Andy Wingo <wingo@igalia.com>
4937 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4938 * configure: Regenerate.
4940 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4942 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4944 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4946 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4947 (replay_memory_access_read_only, replay_memory_access_read_write)
4948 (replay_memory_access_types, replay_memory_access)
4949 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4950 (cmd_set_record_btrace, cmd_show_record_btrace)
4951 (cmd_show_replay_memory_access): New.
4952 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4953 (record_btrace_remove_breakpoint): Replace
4954 record_btrace_allow_memory_access with replay_memory_access.
4955 (_initialize_record_btrace): Add commands.
4956 * NEWS: Announce it.
4958 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4960 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4962 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4964 * MAINTAINERS (Write After Approval): Move self back from
4967 2014-05-22 Pedro Alves <palves@redhat.com>
4969 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4970 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4971 (disable_randomization, enum exec_direction_kind)
4972 (execution_direction, stop_registers, start_remote)
4973 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4974 (wait_for_inferior, normal_stop, get_last_target_status)
4975 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4976 (insert_step_resume_breakpoint_at_sal)
4977 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4978 (set_step_info, print_stop_event, signal_stop_state)
4979 (signal_print_state, signal_pass_state, signal_stop_update)
4980 (signal_print_update, signal_pass_update)
4981 (update_signals_program_target, clear_exit_convenience_vars)
4982 (displaced_step_dump_bytes, update_observer_mode)
4983 (signal_catch_update, gdb_signal_from_command): Move
4985 * infrun.h: ... to this new file.
4986 * amd64-tdep.c: Include infrun.h.
4987 * annotate.c: Include infrun.h.
4988 * arch-utils.c: Include infrun.h.
4989 * arm-linux-tdep.c: Include infrun.h.
4990 * arm-tdep.c: Include infrun.h.
4991 * break-catch-sig.c: Include infrun.h.
4992 * breakpoint.c: Include infrun.h.
4993 * common/agent.c: Include infrun.h instead of inferior.h.
4994 * corelow.c: Include infrun.h.
4995 * event-top.c: Include infrun.h.
4996 * go32-nat.c: Include infrun.h.
4997 * i386-tdep.c: Include infrun.h.
4998 * inf-loop.c: Include infrun.h.
4999 * infcall.c: Include infrun.h.
5000 * infcmd.c: Include infrun.h.
5001 * infrun.c: Include infrun.h.
5002 * linux-fork.c: Include infrun.h.
5003 * linux-nat.c: Include infrun.h.
5004 * linux-thread-db.c: Include infrun.h.
5005 * monitor.c: Include infrun.h.
5006 * nto-tdep.c: Include infrun.h.
5007 * procfs.c: Include infrun.h.
5008 * record-btrace.c: Include infrun.h.
5009 * record-full.c: Include infrun.h.
5010 * remote-m32r-sdi.c: Include infrun.h.
5011 * remote-mips.c: Include infrun.h.
5012 * remote-notif.c: Include infrun.h.
5013 * remote-sim.c: Include infrun.h.
5014 * remote.c: Include infrun.h.
5015 * reverse.c: Include infrun.h.
5016 * rs6000-tdep.c: Include infrun.h.
5017 * s390-linux-tdep.c: Include infrun.h.
5018 * solib-irix.c: Include infrun.h.
5019 * solib-osf.c: Include infrun.h.
5020 * solib-svr4.c: Include infrun.h.
5021 * target.c: Include infrun.h.
5022 * top.c: Include infrun.h.
5023 * windows-nat.c: Include infrun.h.
5024 * mi/mi-interp.c: Include infrun.h.
5025 * mi/mi-main.c: Include infrun.h.
5026 * python/py-threadevent.c: Include infrun.h.
5028 2014-05-22 Pedro Alves <palves@redhat.com>
5030 * infrun.c (handle_inferior_event): Store the exit code for
5031 --return-child-result here, instead of ...
5032 (print_exited_reason): ... here.
5034 2014-05-21 Pedro Alves <palves@redhat.com>
5037 * gdbthread.h (struct thread_control_state): New field
5039 * infrun.c (follow_fork): Copy the new thread control field to the
5041 (clear_proceed_status_thread): Clear the new thread control field.
5042 (proceed): Set the new thread control field.
5043 * interps.h (command_interp): Declare.
5044 * interps.c (command_interpreter): New global.
5045 (command_interp): New function.
5046 (interp_exec): Set `command_interpreter' while here.
5047 * cli-out.c (cli_uiout_dtor): New function.
5048 (cli_ui_out_impl): Install it.
5049 * mi/mi-interp.c: Include cli-out.h.
5050 (mi_cmd_interpreter_exec): Add comment.
5051 (restore_current_uiout_cleanup): New function.
5052 (ui_out_free_cleanup): New function.
5053 (mi_on_normal_stop): If finishing an execution command started by
5054 a CLI command, or any kind of breakpoint-like event triggered,
5055 print the stop event to the output (CLI) stream.
5056 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5058 2014-05-21 Pedro Alves <palves@redhat.com>
5060 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5061 current source line having changed.
5062 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5063 * infrun.c (normal_stop): Adjust call to
5064 set_current_sal_from_frame.
5065 * source.c (clear_lines_listed_range): New function.
5066 (set_current_source_symtab_and_line, identify_source_line): Clear
5067 the lines listed range.
5068 (line_info): Handle the first "info line" after the current source
5069 line having changed.
5070 * stack.c (print_stack_frame): Remove center handling.
5071 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5074 2014-05-21 Pedro Alves <palves@redhat.com>
5076 * inf-child.c (inf_child_mourn_inferior): New function.
5077 * inf-child.h (inf_child_mourn_inferior): New declaration.
5078 * darwin-nat.c (darwin_mourn_inferior): Use
5079 inf_child_mourn_inferior.
5080 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5081 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5082 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5083 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5084 * windows-nat.c (windows_mourn_inferior): Likewise.
5086 2014-05-21 Doug Evans <xdje42@gmail.com>
5088 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5090 2014-05-21 Doug Evans <xdje42@gmail.com>
5092 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5093 (gdbscm_out_of_range_error): Ditto.
5094 (gdbscm_memory_error): Ditto.
5095 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5096 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5097 (gdbscm_out_of_range_error): Update.
5098 (gdbscm_memory_error): Update.
5099 (gdbscm_scm_to_target_string_unsafe): Delete.
5101 2014-05-21 Pedro Alves <palves@redhat.com>
5103 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5105 (inf_child_open_target): New function.
5106 (inf_child_open): Use inf_child_open_target to push the target
5107 instead of erroring out.
5108 (inf_child_disconnect, inf_child_close)
5109 (inf_child_maybe_unpush_target): New functions.
5110 (inf_child_target): Install inf_child_disconnect and
5111 inf_child_close. Store a pointer to the returned object.
5112 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5114 * target.c (auto_connect_native_target): New global.
5115 (show_default_run_target): New function.
5116 (find_default_run_target): Return NULL if automatically connecting
5117 to the native target is disabled.
5118 (_initialize_target): Install set/show auto-connect-native-target.
5119 * NEWS: Mention "set auto-connect-native-target", and "target
5121 * linux-nat.c (super_close): New global.
5122 (linux_nat_close): Call super_close.
5123 (linux_nat_add_target): Store a pointer to the base class's
5125 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5126 inf_child_maybe_unpush.
5127 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5129 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5130 the inferior. Use inf_child_maybe_unpush_target.
5131 (inf_ttrace_attach): Don't push the target if it is already
5133 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5134 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5135 after mourning the inferior. Use inf_child_maybe_unpush_target.
5136 (darwin_attach_pid): Don't push the target if it is already
5138 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5139 mourning the inferior. Use inf_child_maybe_unpush_target.
5140 (gnu_detach): Use inf_child_maybe_unpush_target.
5141 * go32-nat.c (go32_create_inferior): Don't push the target if it
5143 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5144 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5145 (procfs_open): Rename to ...
5146 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5147 comments. Can target_preopen before changing node. Call
5148 inf_child_open_target to push the target explicitly.
5149 (procfs_attach): Don't push the target if it is already pushed.
5150 (procfs_detach): Use inf_child_maybe_unpush_target.
5151 (procfs_create_inferior): Don't push the target if it is already
5153 (nto_native_ops): New global.
5154 (procfs_open): Reimplement.
5155 (procfs_native_open): New function.
5156 (init_procfs_targets): Install procfs_native_open as to_open of
5157 "target native". Store a pointer to the "native" target in
5159 * procfs.c (procfs_attach): Don't push the target if it is already
5161 (procfs_detach): Use inf_child_maybe_unpush_target.
5162 (procfs_mourn_inferior): Only unpush the target after mourning the
5163 inferior. Use inf_child_maybe_unpush_target.
5164 (procfs_init_inferior): Don't push the target if it is already
5166 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5167 if it is already pushed.
5169 2014-05-21 Pedro Alves <palves@redhat.com>
5171 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5172 and "procfs" targets are now called "native" instead.
5174 2014-05-21 Pedro Alves <palves@redhat.com>
5176 * go32-nat.c (go32_open): Delete.
5177 (go32_target): Don't override the to_open method.
5179 2014-05-21 Pedro Alves <palves@redhat.com>
5181 * nto-procfs.c (procfs_can_run): New function.
5182 (nto_procfs_ops): New global.
5183 (init_procfs_targets): New, based on procfs_target. Install
5184 "target native" in addition to "target procfs".
5185 (_initialize_procfs): Call init_procfs_targets instead of adding
5188 2014-05-21 Pedro Alves <palves@redhat.com>
5190 * windows-nat.c (windows_target): Don't override to_shortname,
5191 to_longname or to_doc.
5193 2014-05-21 Pedro Alves <palves@redhat.com>
5195 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5198 2014-05-21 Pedro Alves <palves@redhat.com>
5200 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5201 to_shortname, to_longname or to_doc.
5203 2014-05-21 Pedro Alves <palves@redhat.com>
5205 * go32-nat.c (go32_target): Don't override to_shortname,
5206 to_longname or to_doc.
5208 2014-05-21 Pedro Alves <palves@redhat.com>
5210 * inf-child.c (inf_child_open): Remove mention of "child".
5211 (inf_child_target): Rename target to "native" instead of "child".
5213 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5215 * Makefile.in (SFILES): Delete "regset.c".
5216 (COMMON_OBS): Delete "regset.o".
5218 * regset.h (regset_alloc): Delete prototype.
5220 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5222 * sparc-linux-tdep.c (sparc32_linux_gregset)
5223 (sparc32_linux_fpregset): New static regset structures.
5224 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5225 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5227 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5228 (sparc64_linux_fpregset): New static regset structures.
5229 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5230 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5231 New static regset structures.
5232 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5233 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5234 New static regset structures.
5235 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5236 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5237 New static regset structures.
5238 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5239 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5240 New static regset structures.
5241 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5243 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5245 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5246 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5247 register maps ("regmaps") from "*regset" to "*regmap". Do this
5248 for all regmap types and variables.
5249 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5250 (sparc32_linux_supply_core_gregset)
5251 (sparc32_linux_collect_core_gregset)
5252 (sparc32_linux_supply_core_fpregset)
5253 (sparc32_linux_collect_core_fpregset): Likewise.
5254 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5255 (sparc_gregmap, sparc_fpregmap): ... these.
5256 (sparc_supply_gregset, sparc_collect_gregset)
5257 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5258 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5259 (_initialize_sparc_nat): Rename regmaps.
5260 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5261 (sparc_gregmap, sparc_fpregmap): ... these.
5262 (sparc_supply_gregset, sparc_collect_gregset)
5263 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5264 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5266 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5267 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5269 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5271 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5272 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5273 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5275 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5276 (sparc32_bsd_fpregset): Rename to...
5277 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5278 (sparc32_bsd_fpregmap): ... these.
5279 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5280 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5281 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5282 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5283 (struct sparc_gregmap, struct sparc_fpregmap)
5284 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5285 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5286 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5287 (sparc32_supply_regset, sparc32_collect_gregset)
5288 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5290 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5291 (sparc64_linux_ptrace_gregmap): ... this.
5292 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5293 (_initialize_sparc64_linux_nat): Rename regmaps.
5294 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5295 (sparc64_linux_core_gregmap): ... this.
5296 (sparc64_linux_supply_core_gregset)
5297 (sparc64_linux_collect_core_gregset)
5298 (sparc64_linux_supply_core_fpregset)
5299 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5300 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5301 (sparc64_sol2_fpregset): Rename to...
5302 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5303 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5304 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5306 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5307 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5308 (sparc64_bsd_fpregset): Rename to...
5309 (struct sparc_gregmap, sparc64_sol2_gregmap)
5310 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5311 (sparc64_bsd_fpregmap): ... these.
5312 (sparc64_supply_gregset, sparc64_collect_gregset)
5313 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5315 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5316 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5317 (sparc64fbsd_gregmap): ... this.
5318 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5319 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5321 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5322 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5323 (sparc64nbsd_collect_fpregset): Likewise.
5324 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5325 (sparc64nbsd_gregmap): ... this.
5326 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5328 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5329 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5330 (sparc64obsd_gregmap): ... this.
5331 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5333 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5334 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5335 (sparc32nbsd_gregmap): ... this.
5336 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5339 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5341 * score-tdep.c (score7_linux_gregset): New static regset
5343 (score7_linux_regset_from_core_section): Remove dynamic regset
5345 (score_gdbarch_init): Drop allocation of tdep structure.
5346 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5348 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5350 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5352 (am33_regset_from_core_section): Remove dynamic regset
5355 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5357 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5358 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5360 (mips_linux_regset_from_core_section): Remove dynamic regset
5362 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5363 'gregset64', 'fpregset', and 'fpregset64'.
5364 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5365 deleted tdep fields.
5367 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5369 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5371 (amd64_regset_from_core_section): Remove dynamic regset
5373 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5375 (amd64obsd_regset_from_core_section): Remove dynamic regset
5377 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5379 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5380 x86-common regset supply function.
5381 * i386-tdep.c (i386_collect_gregset): Make static.
5382 (i386_gregset): New global regset structure.
5383 (i386_fpregset, i386_xstateregset): New static regset structures.
5384 (i386_regset_from_core_section): Remove dynamic regset
5386 (i386_gdbarch_init): Remove initialization of tdep fields
5387 'gregset', 'fpregset', and 'xstateregset'.
5388 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5389 'fpregset', and 'xstateregset'.
5390 (i386_collect_gregset): Remove prototype.
5391 (i386_gregset): New declaration.
5392 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5394 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5397 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5399 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5400 (arm_linux_vfpregset): New static regset structures.
5401 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5403 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5404 and 'vfpregset' fields.
5406 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5408 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5409 (aarch64_linux_fpregset): New static regset structures.
5410 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5411 of regset structures.
5412 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5415 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5417 * regset.h (struct regset): Remove gdbarch field.
5418 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5419 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5420 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5422 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5423 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5424 (ppc32_linux_vsxregset): Likewise.
5425 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5426 via the regcache instead of the regset.
5427 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5428 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5429 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5430 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5433 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5435 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5436 Constify structures.
5437 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5438 (alphanbsd_aout_gregset): Likewise.
5439 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5440 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5442 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5443 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5445 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5446 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5447 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5448 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5449 * m88k-tdep.c (m88k_gregset): Likewise.
5450 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5451 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5452 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5453 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5454 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5455 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5456 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5457 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5458 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5460 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5461 * sh-tdep.h (sh_corefile_gregset): Likewise.
5462 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5463 * vax-tdep.c (vax_gregset): Likewise.
5465 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5467 Fix TLS access for -static -pthread.
5468 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5469 (try_thread_db_load_1): Initialize it.
5470 (thread_db_get_thread_local_address): Call it if LM is zero.
5471 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5472 * target.h (struct target_ops) (to_get_thread_local_address): Add
5473 load_module_addr comment.
5475 2014-05-21 Pedro Alves <palves@redhat.com>
5477 * dcache.c (dcache_read_memory_partial): If reading the cache line
5478 fails, fallback to reading just the memory the caller wanted.
5480 2014-05-20 Doug Evans <dje@google.com>
5482 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5483 instead of get_current_arch.
5485 2014-05-20 Pedro Alves <palves@redhat.com>
5487 * NEWS: Mention that compare-sections now works with all targets.
5489 * remote.c (PACKET_qCRC): New enum value.
5490 (remote_verify_memory): Don't send qCRC if the target has no
5491 execution. Use packet_support/packet_ok. If the target doesn't
5492 support the qCRC packet, fallback to a deep memory copy.
5493 (compare_sections_command): Say "target image" instead of "remote
5495 (_initialize_remote): Add PACKET_qCRC to the list of config
5496 packets that have no associated command. Extend comment.
5497 * target.c (simple_verify_memory, default_verify_memory): New
5499 * target.h (struct target_ops) <to_verify_memory>: Default to
5500 default_verify_memory.
5501 (simple_verify_memory): New declaration.
5502 * target-delegates.c: Regenerate.
5504 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5506 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5508 2014-05-20 Hui Zhu <hui@codesourcery.com>
5509 Yao Qi <yao@codesourcery.com>
5512 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5513 and change address of sp and pc.
5515 2014-05-19 Tom Tromey <tromey@redhat.com>
5517 * gdbtypes.c (rank_function): Use XNEWVEC.
5518 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5520 2014-05-19 Doug Evans <dje@google.com>
5522 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5523 build_type_unit_groups and moved closer to only caller. Remove
5524 arguments. All references updated. Remove outdated .gdb_index
5526 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5527 build_type_psymtabs_1.
5529 2014-05-19 Doug Evans <dje@google.com>
5531 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5532 n_type_unit_groups, all_type_unit_groups. All uses removed.
5533 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5534 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5535 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5536 (add_type_unit_group_to_table): Delete.
5538 2014-05-19 Doug Evans <dje@google.com>
5540 * eval.c (evaluate_subexp_standard): Add some comments.
5542 2014-05-17 Doug Evans <xdje42@gmail.com>
5544 * progspace.c (remove_program_space): Delete, unused.
5545 * progspace.h (remove_program_space): Ditto.
5547 2014-05-17 Doug Evans <xdje42@gmail.com>
5549 * inferior.c (prune_inferiors): Fix comment.
5550 (remove_inferior_command): Call prune_program_spaces.
5552 2014-05-16 Doug Evans <dje@google.com>
5554 New command line option -D.
5556 * main.c (set_gdb_data_directory): New function.
5557 (captured_main): Recognize -D. Flag error for --data-directory "".
5558 Call set_gdb_data_directory.
5559 (print_gdb_help): Print --data-directory, -D.
5560 * main.h (set_gdb_data_directory): Declare.
5561 * top.c (staged_gdb_datadir): New static global.
5562 (set_gdb_datadir): Call set_gdb_data_directory
5563 (show_gdb_datadir): New function.
5564 (init_main): Update init of data-directory parameter.
5566 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5568 Import the "dirfd" gnulib module.
5569 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5570 * gnulib/aclocal.m4: Update.
5571 * gnulib/config.in: Update.
5572 * gnulib/configure: Update.
5573 * gnulib/import/Makefile.am: Update.
5574 * gnulib/import/Makefile.in: Update.
5575 * gnulib/import/dirfd.c: New.
5576 * gnulib/import/m4/dirfd.m4: New.
5577 * gnulib/import/m4/gnulib-cache.m4: Update.
5578 * gnulib/import/m4/gnulib-comp.m4: Update.
5580 2014-05-16 Pierre Muller <muller@sourceware.org>
5581 Yao Qi <yao@codesourcery.com>
5583 * valprint.c (print_wchar): Move the code on checking whether
5584 W is a printable wide char to the default branch of switch
5585 statement below. Call wchar_printable instead of gdb_iswprint.
5587 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5589 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5590 ldr.w and ldrd instructions.
5592 2014-05-15 Doug Evans <dje@google.com>
5594 * dwarf2read.c (read_structure_type): Delete outdated comments.
5596 2014-05-14 Tom Tromey <tromey@redhat.com>
5598 * macrocmd.c (print_macro_definition): Reindent.
5600 2014-05-13 Doug Evans <xdje42@gmail.com>
5602 * python/py-cmd.c (cmdpy_completer): Add comment.
5603 (completers): Make const.
5605 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5607 * infrun.c (resume): Remove should_resume (unused). Move up
5608 declaration of resume_ptid.
5610 2014-05-13 Tom Tromey <tromey@redhat.com>
5612 * language.h (unop_type_check): Remove.
5613 (binop_type_check): Don't declare.
5615 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5617 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5618 call to regcache_raw_collect.
5620 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5622 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5623 mi_console->quote as the quoting character.
5625 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5627 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5629 2014-04-29 Tom Tromey <tromey@redhat.com>
5631 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5632 "show debug varobj".
5634 2014-05-07 Kyle McMartin <kyle@redhat.com>
5636 Pushed by Joel Brobecker <brobecker@adacore.com>.
5637 * aarch64-tdep.c (aarch64_software_single_step): New function.
5638 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5639 with aarch64_software_single_step.
5641 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5645 2014-05-05 Keith Seitz <keiths@redhat.com>
5647 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5648 variable or history value is successfully parsed.
5650 2014-05-05 Yao Qi <yao@codesourcery.com>
5651 Pedro Alves <palves@redhat.com>
5653 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5654 address of blocks that intersects the requested range. Trim
5655 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5657 * ctf.c (ctf_xfer_partial): Likewise.
5659 2014-05-05 Yao Qi <yao@codesourcery.com>
5661 * printcmd.c (display_command): Remove the check to
5662 target_has_execution.
5664 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5666 * ppcobsd-nat.c: Include "obsd-nat.h".
5667 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5669 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5671 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5673 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5674 and 16-bit signed and unsigned arguments. Update comment.
5675 (stap_parse_probe_arguments): Extend code to handle such
5676 arguments. Use warning instead of complaint to notify about
5677 unrecognized bitness.
5679 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5681 PR breakpoints/16889
5682 * stap-probe.c (stap_parse_probe_arguments): Simplify
5683 check for non-prefixed probes (i.e., probes whose
5684 arguments do not start with "N@"). Always set the
5685 argument type to a sane value.
5687 2014-05-01 David Taylor <dtaylor@emc.com>
5689 * remote.c (compare_sections_command): Add -r option to compare
5690 all loadable read-only sections.
5692 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5694 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5695 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5697 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5698 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5699 Remove unused CORE_ADDR argument. Update all callers.
5701 2014-04-29 Pedro Alves <palves@redhat.com>
5703 * remote.c (struct packet_config) <detect>: Extend comment.
5704 (add_packet_config_cmd): Don't set the config's detect or support
5706 (init_all_packet_configs): Also initialize the config's 'detect'
5708 (reset_all_packet_configs_support): New function.
5709 (remote_open_1): Call reset_all_packet_configs_support instead of
5710 init_all_packet_configs.
5711 (_initialize_remote): Initialize all packet configs. Assert that
5712 all packets have an associated command, except a few known
5715 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5717 * dwarf2read.c (read_subrange_type): Handle dynamic
5718 DW_AT_lower_bound attributes.
5720 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5722 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5723 dynamic bounds before computing its upper bound.
5724 (ada_discrete_type_low_bound): Same as above with the lower bound.
5726 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5728 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5729 range types. Adjust the array handling implementation to
5730 take advantage of this change.
5731 (resolve_dynamic_range): New function, mostly extracted from
5732 resolve_dynamic_bounds.
5733 (resolve_dynamic_array): New function, mostly extracted from
5734 resolve_dynamic_bounds.
5735 (resolve_dynamic_bounds): Delete.
5736 (resolve_dynamic_type): Reimplement. Add handling of
5737 TYPE_CODE_RANGE types.
5739 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5741 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5742 handling of parallel ___XA types.
5744 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5746 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5747 unnecessary second call to static_unwrap_type.
5749 2014-04-27 Hui Zhu <hui@codesourcery.com>
5751 * stack.c (print_frame_info): Call do_gdb_disassembly with
5752 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5754 2014-04-26 Doug Evans <xdje42@gmail.com>
5756 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5758 2014-04-25 Pedro Alves <palves@redhat.com>
5761 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5762 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5763 and newline from built string.
5764 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5765 (linux_ptrace_attach_fail_reason): ... this.
5766 * linux-nat.c (linux_nat_attach): Adjust to use
5767 linux_ptrace_attach_fail_reason.
5769 2014-04-25 Pedro Alves <palves@redhat.com>
5771 * remote.c (struct remote_state): Remove multi_process_aware,
5772 non_stop_aware, cond_tracepoints, cond_breakpoints,
5773 breakpoint_commands, fast_tracepoints, static_tracepoints,
5774 install_in_trace, disconnected_tracing,
5775 enable_disable_tracepoints, string_tracing, and
5776 augmented_libraries_svr4_read fields.
5777 (remote_multi_process_p): Move further below in the file.
5778 (struct packet_config): Add comments.
5779 (update_packet_config): Delete function.
5780 (show_packet_config_cmd): Use packet_config_support.
5781 (add_packet_config_cmd): Use NULL as set callback.
5782 (packet_ok): "set remote foo-packet"-style commands no longer
5783 change config->supported -- adjust.
5784 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5785 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5786 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5787 (PACKET_QNonStop, PACKET_multiprocess_feature)
5788 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5789 (PACKET_DisconnectedTracing_feature)
5790 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5791 (set_remote_protocol_packet_cmd): Delete function.
5792 (packet_config_support, packet_support): New functions.
5793 (set_remote_protocol_Z_packet_cmd): Don't call
5794 update_packet_config.
5795 (remote_query_attached, remote_pass_signals)
5796 (remote_program_signals, remote_threads_info)
5797 (remote_threads_extra_info, remote_start_remote): Use
5799 (remote_start_remote): Use packet_config_support and
5801 (init_all_packet_configs): Set all packets to unknown support,
5802 instead of calling update_packet_config.
5803 (remote_check_symbols): Use packet_support.
5804 (remote_supported_packet): Unconditionally set the packet config's
5806 (remote_multi_process_feature, remote_non_stop_feature)
5807 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5808 (remote_breakpoint_commands_feature)
5809 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5810 (remote_install_in_trace_feature)
5811 (remote_disconnected_tracing_feature)
5812 (remote_enable_disable_tracepoint_feature)
5813 (remote_string_tracing_feature)
5814 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5815 (remote_protocol_features): Adjust to use remote_supported_packet
5816 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5817 "ConditionalTracepoints", "ConditionalBreakpoints",
5818 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5819 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5820 "EnableDisableTracepoints", and "tracenz".
5821 (remote_query_supported): Use packet_support.
5822 (remote_open_1): Adjust.
5823 (extended_remote_attach_1): Use packet_support. Switch on the
5824 result of packet_ok instead of checking whether the packet ended
5826 (remote_vcont_resume): Use packet_support.
5827 (remote_resume, remote_stop_ns, fetch_register_using_p)
5828 (remote_prepare_to_store, store_register_using_P)
5829 (check_binary_download, remote_write_bytes): Use packet_support.
5830 (remote_vkill): Use packet_support. Switch on the result of
5831 packet_ok instead of checking whether the packet ended up
5833 (extended_remote_supports_disable_randomization): Use
5835 (extended_remote_run): Switch on the result of packet_ok instead
5836 of checking whether the packet ended up disabled.
5837 (remote_insert_breakpoint, remote_remove_breakpoint)
5838 (remote_insert_watchpoint, remote_remove_watchpoint)
5839 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5841 (remote_search_memory): Use packet_config_support.
5842 (remote_get_thread_local_address, remote_get_tib_address)
5843 (remote_hostio_send_command, remote_can_execute_reverse): Use
5845 (remote_supports_cond_tracepoints)
5846 (remote_supports_cond_breakpoints)
5847 (remote_supports_fast_tracepoints)
5848 (remote_supports_static_tracepoints)
5849 (remote_supports_install_in_trace)
5850 (remote_supports_enable_disable_tracepoint)
5851 (remote_supports_string_tracing)
5852 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5853 the packet config says the feature is enabled or disabled.
5854 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5855 (remote_get_trace_status): Use packet_support.
5856 (remote_set_disconnected_tracing): Adjust to check whether the
5857 feature is enabled with packet_support.
5858 (remote_set_trace_buffer_size, remote_use_agent)
5859 (remote_can_use_agent, remote_supports_btrace): Use
5861 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5862 Use packet_config_support.
5863 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5864 the packet config says the feature is enabled or disabled.
5865 (set_range_stepping): Use packet_support.
5867 2014-04-25 Tom Tromey <tromey@redhat.com>
5869 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5872 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5874 * NEWS: Mention support for C99 variable length arrays.
5876 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5878 * ada-lang.c (standard_exc): Expand introductory comment.
5880 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5881 Walfred Tedeschi <walfred.tedeschi@intel.com>
5883 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5885 (amd64_linux_read_description): Add code to handle AVX512 xstate
5886 mask and return respective tdesc.
5887 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5888 and features/i386/x32-avx512-linux.c.
5889 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5890 (amd64_linux_core_read_description): Add code to handle AVX512
5891 xstate mask and return respective tdesc.
5892 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5893 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5895 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5896 (tdesc_amd64_avx512_linux): New prototype.
5897 (tdesc_x32_avx512_linux): Likewise.
5898 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5899 features/i386/x32-avx512.c.
5900 (amd64_ymm_avx512_names): New register names for pseudo
5902 (amd64_ymmh_avx512_names): New register names for raw registers
5904 (amd64_k_names): New register names for K registers.
5905 (amd64_zmmh_names): New register names for ZMM raw registers.
5906 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5907 (amd64_xmm_avx512_names): New register names for XMM16-31
5909 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5911 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5912 if feature is present.
5913 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5914 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5915 (AMD64_NUM_REGS): Adjust to new number of registers.
5916 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5917 registers supplied via XSTATE by AVX512 registers.
5918 (i386_linux_read_description): Add case for AVX512.
5919 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5920 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5921 (i386_linux_core_read_description): Add case for AVX512.
5922 (i386_linux_init_abi): Install supported register note section
5924 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5926 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5927 registers to be number of zmm7h + 1.
5928 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5929 * i386-tdep.c: Include features/i386/i386-avx512.c.
5930 (i386_zmm_names): Add ZMM pseudo register names array.
5931 (i386_zmmh_names): Add ZMM raw register names array.
5932 (i386_k_names): Add K raw register names array.
5933 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5934 registers. AVX512 has 16 more ZMM registers than there are YMM
5936 (i386_zmmh_regnum_p): Add function to look up register number of
5938 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5939 (i386_k_regnum_p): Likewise for K raw registers.
5940 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5941 registers added by AVX512.
5942 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5943 registers added by AVX512.
5944 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5946 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5947 (i386_pseudo_register_name): Add ZMM pseudo registers.
5948 (i386_zmm_type): Construct and return vector registers type for ZMM
5950 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5951 ZMM0-31 pseudo registers and K registers.
5952 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5953 and YMM16-31 registers from register cache.
5954 (i386_pseudo_register_write): Add code to write K, ZMM and
5956 (i386_register_reggroup_p): Add code to include/exclude AVX512
5957 registers in/from respective register groups.
5958 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5959 registers if feature is present in xcr0.
5960 (i386_gdbarch_init): Add code to initialize AVX512 feature
5961 variables in tdep structure, wire in pseudo registers and call
5962 initialize_tdesc_i386_avx512.
5963 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5965 (i386_regnum): Add AVX512 registers.
5966 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5967 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5968 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5969 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5971 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5972 (i386_ymm_avx512_regnum_p): Likewise.
5973 (i386_k_regnum_p): Likewise.
5974 (i386_zmm_regnum_p): Likewise.
5975 (i386_zmmh_regnum_p): Likewise.
5976 * i387-tdep.c : Update year in copyright notice.
5977 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5979 (XSAVE_YMM_AVX512_ADDR): New macro.
5980 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5982 (XSAVE_XMM_AVX512_ADDR): New macro.
5983 (xsave_avx512_k_offset): New table for K register offsets in
5985 (XSAVE_AVX512_K_ADDR): New macro.
5986 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5988 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5989 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5991 (i387_collect_xsave): Add code to collect AVX512 registers from
5993 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5994 of XMM16-31 registers.
5995 (I387_NUM_K_REGS): New define for number of K registers.
5996 (I387_K0_REGNUM): New define for K0 register number.
5997 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5998 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5999 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6001 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6002 (I387_XMM16_REGNUM): New define for XMM16 register number.
6003 (I387_YMM0_REGNUM): New define for YMM0 register number.
6004 (I387_KEND_REGNUM): New define for last K register number.
6005 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6006 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6008 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6010 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6012 * features/Makefile: Add AVX512 related files.
6013 * features/i386/32bit-avx512.xml: New file.
6014 * features/i386/64bit-avx512.xml: Likewise.
6015 * features/i386/amd64-avx512-linux.c: Likewise.
6016 * features/i386/amd64-avx512-linux.xml: Likewise.
6017 * features/i386/amd64-avx512.c: Likewise.
6018 * features/i386/amd64-avx512.xml: Likewise.
6019 * features/i386/i386-avx512-linux.c: Likewise.
6020 * features/i386/i386-avx512-linux.xml: Likewise.
6021 * features/i386/i386-avx512.c: Likewise.
6022 * features/i386/i386-avx512.xml: Likewise.
6023 * features/i386/x32-avx512-linux.c: Likewise.
6024 * features/i386/x32-avx512-linux.xml: Likewise.
6025 * features/i386/x32-avx512.c: Likewise.
6026 * features/i386/x32-avx512.xml: Likewise.
6027 * regformats/i386/amd64-avx512-linux.dat: New file.
6028 * regformats/i386/amd64-avx512.dat: Likewise.
6029 * regformats/i386/i386-avx512-linux.dat: Likewise.
6030 * regformats/i386/i386-avx512.dat: Likewise.
6031 * regformats/i386/x32-avx512-linux.dat: Likewise.
6032 * regformats/i386/x32-avx512.dat: Likewise.
6033 * NEWS: Add note about new support for AVX512.
6036 2014-04-23 Pedro Alves <palves@redhat.com>
6038 * breakpoint.c (insert_bp_location): Tolerate errors if the
6039 breakpoint is set in a user-loaded objfile.
6040 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6041 location is marked shlib_disabled. If the breakpoint is set in a
6042 user-loaded objfile is a GDB-side memory breakpoint, validate it
6043 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6044 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6046 * mem-break.c (memory_validate_breakpoint): New function.
6047 * objfiles.c (userloaded_objfile_contains_address_p): New
6049 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6050 * target.h (memory_validate_breakpoint): New declaration.
6052 2014-04-23 Pedro Alves <palves@redhat.com>
6054 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6055 the breakpoint is set in a shared library, only suppress
6056 errors for software breakpoints, not hardware breakpoints.
6058 2014-04-22 Pedro Alves <palves@redhat.com>
6060 * infrun.c (schedlock_applies): New function, factored out from
6061 find_thread_needs_step_over.
6062 (find_thread_needs_step_over): Use it.
6063 (switch_back_to_stepped_thread): Always clear trap_expected if the
6064 step over is finished. Return early if scheduler locking applies.
6065 Look for the stepping thread and a potential step-over thread with
6067 (currently_stepping_or_nexting_callback): Delete.
6069 2014-04-22 Nick Clifton <nickc@redhat.com>
6071 * NEWS: Mention that ARM sim now supports tracing.
6073 2014-04-22 Yao Qi <yao@codesourcery.com>
6075 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6077 * tracefile.c (tracefile_fetch_registers): ... it. New
6079 * tracefile.h (tracefile_fetch_registers): Declare.
6080 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6081 tracefile_fetch_registers.
6083 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6086 * windows-nat.c (thread_rec): Don't display a warning when
6087 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6088 fails for any reason, set th->suspended to -1, so that we don't
6089 try to resume such a thread. Also, don't return NULL in these
6090 cases, to avoid completely ruin the session due to "PC register is
6091 not available" error.
6092 (do_windows_fetch_inferior_registers): Check errors in
6093 GetThreadContext call.
6094 (windows_continue): Accept an additional argument KILLED; if not
6095 zero, ignore errors in the SetThreadContext call, since the
6096 inferior was killed and is shutting down.
6097 (windows_resume, get_windows_debug_event)
6098 (windows_create_inferior, windows_mourn_inferior)
6099 (windows_kill_inferior): All callers of windows_continue changed
6100 to adjust to its new calling sequence.
6102 2014-04-19 Yao Qi <yao@codesourcery.com>
6104 * ctf.c (ctf_open): Call post_create_inferior.
6106 2014-04-19 Yao Qi <yao@codesourcery.com>
6108 * ctf.c (handle_id): New static variable.
6109 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6110 value. Get the declaration of event "register" and get length
6111 of field "contents".
6113 2014-04-19 Yao Qi <yao@codesourcery.com>
6115 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6117 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6119 * valops.c (oload_method_static): Remove unnecessary argument
6120 METHOD. Update all callers.
6122 2014-04-18 Pedro alves <palves@redhat.com>
6123 Tom Tromey <tromey@redhat.com>
6126 * frame.c (get_prev_frame_1): Rename to ...
6127 (get_prev_frame_always): ... this, and make extern. Adjust.
6128 (skip_artificial_frames): Use get_prev_frame_always.
6129 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6130 (get_frame_unwind_stop_reason): Adjust to rename.
6131 * frame.h (get_prev_frame_always): Declare.
6132 * inline-frame.c: Include frame.h.
6133 (inline_frame_this_id): Use get_prev_frame_always.
6135 2014-04-18 Tristan Gingold <gingold@adacore.com>
6137 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6138 code by using bfd_mach_o_get_base_address.
6140 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6142 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6143 (spu_ax_pseudo_register_collect): New function.
6144 (spu_ax_pseudo_register_push_stack): Likewise.
6145 (spu_dwarf_reg_to_regnum): Likewise.
6146 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6148 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6150 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6151 Replace FRAME argument with FRAME_ID.
6152 * gdbarch.c, gdbarch.h: Regenerate.
6153 * findvar.c (default_value_from_register): Add GDBARCH argument;
6154 replace FRAME by FRAME_ID. No longer call get_frame_id.
6155 (value_from_register): Update call to gdbarch_value_from_register.
6156 * value.h (default_value_from_register): Update prototype.
6157 * s390-linux-tdep.c (s390_value_from_register): Update interface
6158 and call to default_value_from_register.
6159 * spu-tdep.c (spu_value_from_register): Likewise.
6161 * findvar.c (address_from_register): Remove TYPE argument.
6162 Do not call value_from_register; use gdbarch_value_from_register
6163 with null_frame_id instead.
6164 * value.h (address_from_register): Update prototype.
6165 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6166 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6167 address_from_register interface change.
6169 2014-04-17 Yao Qi <yao@codesourcery.com>
6171 * gdbtypes.h: Update comments to link to types and macros'
6174 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6176 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6178 2014-04-16 Keith Seitz <keiths@redhat.com>
6181 * dwarf2read.c (skip_one_die): Check that all relative-offset
6182 sibling DIEs fall within range of the current reader's buffer.
6183 (read_partial_die): Likewise.
6185 2014-04-16 Keith Seitz <keiths@redhat.com>
6188 * cp-namespace.c (lookup_symbol_file): If the type name of
6189 `this' is NULL, return immediately.
6191 2014-04-14 Keith Seitz <keiths@redhat.com>
6194 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6195 from symbol_matches_domain in symtab.c. All local callers
6196 of symbol_matches_domain updated.
6197 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6198 search STRUCT_DOMAIN.
6199 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6200 independently. standard_lookup will do that automatically.
6201 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6202 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6203 (cp_lookup_symbol_in_namespace): Likewise.
6204 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6205 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6206 may return a STRUCT_DOMAIN match.
6207 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6208 * cp-support.c: Include language.h.
6209 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6211 * psymtab.c (match_partial_symbol): Compare the requested
6212 domain with the symbol's domain directly.
6213 (lookup_partial_symbol): Likewise.
6214 * symtab.c (lookup_symbol_in_language): Explain when/why
6215 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6216 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6217 appropriate languages.
6218 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6219 and moved to ada-lang.c
6220 (lookup_block_symbol): Explain that this function only returns
6221 symbol matching the requested DOMAIN.
6222 Compare the requested domain with the symbol's domain directly.
6223 (iterate_over_symbols): Compare the requested domain with the
6224 symbol's domain directly.
6225 * symtab.h (symbol_matches_domain): Remove.
6227 2014-04-14 Tom Tromey <tromey@redhat.com>
6230 * c-exp.y (type_aggregate_p): New function.
6231 (qualified_name, classify_inner_name): Use it.
6232 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6233 and TYPE_TARGET_TYPE of an enum type.
6234 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6236 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6237 handle TYPE_DECLARED_CLASS.
6238 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6240 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6241 * valops.c (enum_constant_from_type): New function.
6242 (value_aggregate_elt): Use it.
6243 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6246 2014-04-14 Tom Tromey <tromey@redhat.com>
6248 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6249 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6251 * value.h (value_aggregate_elt): Update.
6253 2014-04-14 Tom Tromey <tromey@redhat.com>
6255 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6257 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6259 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6260 (evaluate_subexp_standard): Pass noside argument.
6261 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6262 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6263 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6264 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6265 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6267 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6269 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6270 points to a constant blob.
6272 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6274 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6275 property and store it as the high bound and flag the range accordingly.
6276 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6277 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6278 * gdbtypes.h (enum range_flags): New enum.
6279 (struct range_bounds): Add flags member.
6281 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6283 * c-typeprint.c (c_type_print_varspec_suffix): Added
6284 check for not yet resolved high bound. If unresolved, print
6285 "variable length" string to the console instead of random
6288 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6290 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6292 (ada_template_to_fixed_record_type_1): Likewise.
6293 (ada_to_fixed_type_1): Likewise.
6294 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6295 (cp_print_value): Likewise.
6296 * d-valprint.c (dynamic_array_type): Likewise.
6297 * findvar.c (address_of_variable): Likewise.
6298 * jv-valprint.c (java_value_print): Likewise.
6299 * valops.c (value_ind): Likewise.
6300 * value.c (coerce_ref): Likewise.
6302 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6304 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6305 value and retrieve the dynamic type size.
6307 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6309 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6310 passed to sizeof is dynamic evaluate the argument to compute the length.
6312 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6313 Joel Brobecker <brobecker@adacore.com>
6315 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6316 (dwarf2_evaluate_property): New function.
6317 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6318 * dwarf2read.c (attr_to_dynamic_prop): New function.
6319 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6321 * gdbtypes.c: Include dwarf2loc.h.
6322 (is_dynamic_type): New function.
6323 (resolve_dynamic_type): New function.
6324 (resolve_dynamic_bounds): New function.
6325 (get_type_length): New function.
6326 (check_typedef): Use get_type_length to compute type length.
6327 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6328 (TYPE_LOW_BOUND_KIND): New macro.
6329 (is_dynamic_type): New function prototype.
6330 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6331 to resolve dynamic properties of the type. Update comment.
6332 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6334 2014-04-14 Richard Henderson <rth@redhat.com>
6336 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6338 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6339 Doug Evans <xdje42@gmail.com>
6341 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6342 dereference TYPE_CODE_REF values.
6344 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6346 Revert the following changes due to regressions:
6348 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6349 (dwarf2_evaluate_property): New function.
6350 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6351 * dwarf2read.c (attr_to_dynamic_prop): New function.
6352 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6354 * gdbtypes.c: Include dwarf2loc.h.
6355 (is_dynamic_type): New function.
6356 (resolve_dynamic_type): New function.
6357 (resolve_dynamic_bounds): New function.
6358 (get_type_length): New function.
6359 (check_typedef): Use get_type_length to compute type length.
6360 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6361 (TYPE_LOW_BOUND_KIND): New macro.
6362 (is_dynamic_type): New function prototype.
6363 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6364 to resolve dynamic properties of the type. Update comment.
6365 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6367 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6368 passed to sizeof is dynamic evaluate the argument to compute the length.
6370 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6371 value and retrieve the dynamic type size.
6373 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6374 (ada_template_to_fixed_record_type_1): Likewise.
6375 (ada_to_fixed_type_1): Likewise.
6376 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6377 (cp_print_value): Likewise.
6378 * d-valprint.c (dynamic_array_type): Likewise.
6379 * eval.c (evaluate_subexp_with_coercion): Likewise.
6380 * findvar.c (address_of_variable): Likewise.
6381 * jv-valprint.c (java_value_print): Likewise.
6382 * valops.c (value_ind): Likewise.
6383 * value.c (coerce_ref): Likewise.
6385 * c-typeprint.c (c_type_print_varspec_suffix): Added
6386 check for not yet resolved high bound. If unresolved, print
6387 "variable length" string to the console instead of random
6390 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6391 property and store it as the high bound and flag the range accordingly.
6392 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6393 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6394 * gdbtypes.h (enum range_flags): New enum.
6395 (struct range_bounds): Add flags member.
6397 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6398 points to a constant blob.
6400 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6401 (evaluate_subexp_standard): Pass noside argument.
6402 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6403 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6404 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6405 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6406 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6408 2014-04-11 Keith Seitz <keiths@redhat.com>
6411 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6412 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6415 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6417 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6418 (evaluate_subexp_standard): Pass noside argument.
6419 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6420 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6421 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6422 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6423 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6425 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6427 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6428 points to a constant blob.
6430 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6432 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6433 property and store it as the high bound and flag the range accordingly.
6434 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6435 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6436 * gdbtypes.h (enum range_flags): New enum.
6437 (struct range_bounds): Add flags member.
6439 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6441 * c-typeprint.c (c_type_print_varspec_suffix): Added
6442 check for not yet resolved high bound. If unresolved, print
6443 "variable length" string to the console instead of random
6446 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6448 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6449 (ada_template_to_fixed_record_type_1): Likewise.
6450 (ada_to_fixed_type_1): Likewise.
6451 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6452 (cp_print_value): Likewise.
6453 * d-valprint.c (dynamic_array_type): Likewise.
6454 * eval.c (evaluate_subexp_with_coercion): Likewise.
6455 * findvar.c (address_of_variable): Likewise.
6456 * jv-valprint.c (java_value_print): Likewise.
6457 * valops.c (value_ind): Likewise.
6458 * value.c (coerce_ref): Likewise.
6460 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6462 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6463 value and retrieve the dynamic type size.
6465 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6467 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6468 passed to sizeof is dynamic evaluate the argument to compute the length.
6470 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6472 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6473 (dwarf2_evaluate_property): New function.
6474 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6475 * dwarf2read.c (attr_to_dynamic_prop): New function.
6476 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6478 * gdbtypes.c: Include dwarf2loc.h.
6479 (is_dynamic_type): New function.
6480 (resolve_dynamic_type): New function.
6481 (resolve_dynamic_bounds): New function.
6482 (get_type_length): New function.
6483 (check_typedef): Use get_type_length to compute type length.
6484 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6485 (TYPE_LOW_BOUND_KIND): New macro.
6486 (is_dynamic_type): New function prototype.
6487 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6488 to resolve dynamic properties of the type. Update comment.
6489 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6491 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6493 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6494 declaring high/low bounds and change uses accordingly. Call
6495 create_range_type instead of create_static_range_type.
6496 * gdbtypes.c (create_range_type): New function.
6497 (create_range_type): Convert bounds into struct bound_prop and pass
6498 them to create_range_type.
6499 * gdbtypes.h (struct bound_prop): New struct.
6500 (create_range_type): New function prototype.
6501 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6502 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6503 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6505 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6507 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6509 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6510 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6511 * ada-lang.c: All uses of create_range_type updated.
6512 * coffread.c: All uses of create_range_type updated.
6513 * dwarf2read.c: All uses of create_range_type updated.
6514 * f-exp.y: All uses of create_range_type updated.
6515 * m2-valprint.c: All uses of create_range_type updated.
6516 * mdebugread.c: All uses of create_range_type updated.
6517 * stabsread.c: All uses of create_range_type updated.
6518 * valops.c: All uses of create_range_type updated.
6519 * valprint.c: All uses of create_range_type updated.
6521 2014-04-10 Pedro Alves <palves@redhat.com>
6523 * breakpoint.c (single_step_breakpoints)
6524 (single_step_gdbarch): Move up in the file.
6525 (one_breakpoint_xfer_memory): New function, factored out from ...
6526 (breakpoint_xfer_memory): ... here. Also process single-step
6529 2014-04-09 Tristan Gingold <gingold@adacore.com>
6531 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6533 (darwin_decode_exception_message): Free port only after use.
6535 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6537 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6538 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6539 when setting the size of call_length.
6541 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6543 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6544 dereference TYPE_CODE_REF values.
6546 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6548 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6549 end of warning message.
6551 2014-04-03 Doug Evans <dje@google.com>
6553 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6554 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6556 2014-04-02 Alan Modra <amodra@gmail.com>
6558 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6559 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6560 (struct symbol_file_add_from_memory_args): Add size field.
6561 (find_vdso_size): New function.
6562 (add_vsyscall_page): Attempt to find vdso size.
6564 2014-04-01 Doug Evans <dje@google.com>
6566 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6568 2014-04-01 Tristan Gingold <gingold@adacore.com>
6570 * darwin-nat.c (darwin_encode_reply): Add prototype.
6571 (darwin_decode_exception_message): Reply to unknown inferiors.
6572 (darwin_decode_message): Handle message by id. Ignore message
6573 to unknown inferior.
6574 (darwin_wait): Discard unknown messages, add debug trace.
6576 2014-03-31 Doug Evans <dje@google.com>
6578 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6581 2014-03-31 Doug Evans <dje@google.com>
6583 New option "set print symbol-loading".
6585 * solib.c (solib_read_symbols): Only print symbol loading messages
6587 (solib_add): If symbol loading is in "brief" mode, notify user
6588 symbols are being loaded.
6589 (reload_shared_libraries_1): Ditto.
6590 * symfile.c (print_symbol_loading_off): New static global.
6591 (print_symbol_loading_brief): New static global.
6592 (print_symbol_loading_full): New static global.
6593 (print_symbol_loading_enums): New static global.
6594 (print_symbol_loading): New static global.
6595 (print_symbol_loading_p): New function.
6596 (symbol_file_add_with_addrs): Only print symbol loading messages
6598 (_initialize_symfile): Register "print symbol-loading" set/show
6600 * symfile.h (print_symbol_loading_p): Declare.
6602 2014-03-30 Doug Evans <xdje42@gmail.com>
6604 * infrun.c (set_last_target_status): New function.
6605 (handle_inferior_event): Call it.
6607 2014-03-30 Doug Evans <xdje42@gmail.com>
6609 * inferior.h (enum stop_kind): Improve comment.
6611 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6613 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6614 a reference, strip the reference layer before calling
6615 the lang_ops value_has_mutated callback.
6617 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6619 Remove some globals from our parser.
6620 * language.c (unk_lang_parser): Add "struct parser_state"
6622 * language.h (struct language_defn) <la_parser>: Likewise.
6623 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6624 (initialize_expout): Add "struct parser_state" argument.
6625 Rewrite function to use the parser state.
6626 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6627 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6628 write_exp_elt_longcst, write_exp_elt_dblcst,
6629 write_exp_elt_decfloatcst, write_exp_elt_type,
6630 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6631 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6632 write_dollar_variable): Likewise.
6633 (parse_exp_in_context_1): Use parser state.
6634 (insert_type_address_space): Add "struct parser_state" argument.
6636 (increase_expout_size): New function.
6637 * parser-defs.h: Forward declare "struct language_defn" and
6638 "struct parser_state".
6639 (expout, expout_size, expout_ptr): Remove extern declarations.
6640 (parse_gdbarch, parse_language): Rewrite macro declarations to
6641 accept the parser state.
6642 (struct parser_state): New struct.
6643 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6644 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6645 write_exp_elt_decfloatcst, write_exp_elt_type,
6646 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6647 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6648 write_exp_msymbol, write_dollar_variable,
6649 mark_struct_expression, insert_type_address_space): Add "struct
6650 parser_state" argument.
6651 (increase_expout_size): New function.
6652 * utils.c (do_clear_parser_state): New function.
6653 (make_cleanup_clear_parser_state): Likewise.
6654 * utils.h (make_cleanup_clear_parser_state): New function
6656 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6657 Update calls to write_exp* in order to pass the parser state.
6658 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6659 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6660 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6661 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6662 * stap-probe.c (stap_parse_register_operand): Likewise.
6663 (stap_parse_single_operand): Likewise.
6664 (stap_parse_argument_1): Likewise.
6665 (stap_parse_argument): Use parser state.
6666 * stap-probe.h: Include "parser-defs.h".
6667 (struct stap_parse_info) <pstate>: New field.
6668 * c-exp.y (parse_type): Rewrite to use parser state.
6669 (yyparse): Redefine to c_parse_internal.
6670 (pstate): New global variable.
6671 (parse_number): Add "struct parser_state" argument.
6672 (write_destructor_name): Likewise.
6673 (type_exp): Update calls to write_exp* and similars in order to
6675 (exp1, exp, variable, qualified_name, space_identifier,
6676 typename, typebase): Likewise.
6677 (write_destructor_name, parse_number, lex_one_token,
6678 classify_name, classify_inner_name, c_parse): Add "struct
6679 parser_state" argument. Update function to use parser state.
6680 * c-lang.h: Forward declare "struct parser_state".
6681 (c_parse): Add "struct parser_state" argument.
6682 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6683 (yyparse): Redefine macro to ada_parse_internal.
6684 (pstate): New variable.
6685 (write_int, write_object_renaming, write_var_or_type,
6686 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6687 type_int, type_long, type_long_long, type_float, type_double,
6688 type_long_double, type_char, type_boolean, type_system_address):
6689 Add "struct parser_state" argument.
6690 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6691 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6692 var_or_type, aggregate, aggregate_component_list,
6693 positional_list, others, component_group,
6694 component_associations): Update calls to write_exp* and similar
6695 functions in order to use parser state.
6696 (ada_parse, write_var_from_sym, write_int,
6697 write_exp_op_with_string, write_object_renaming,
6698 find_primitive_type, write_selectors, write_ambiguous_var,
6699 write_var_or_type, write_name_assoc, type_int, type_long,
6700 type_long_long, type_float, type_double, type_long_double,
6701 type_char, type_boolean, type_system_address): Add "struct
6702 parser_state" argument. Adjust function to use parser state.
6703 * ada-lang.c (parse): Likewise.
6704 * ada-lang.h: Forward declare "struct parser_state".
6705 (ada_parse): Add "struct parser_state" argument.
6706 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6707 calls to both functions.
6708 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6710 (yyparse): Redefine macro to f_parse_internal.
6711 (pstate): New variable.
6712 (parse_number): Add "struct parser_state" argument.
6713 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6714 and similars in order to use parser state.
6715 (parse_number): Adjust code to use parser state.
6717 (f_parse): New function.
6718 * f-lang.h: Forward declare "struct parser_state".
6719 (f_parse): Add "struct parser_state" argument.
6720 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6722 (yyparse): Redefine macro for java_parse_internal.
6723 (pstate): New variable.
6724 (push_expression_name, push_expression_name, insert_exp): Add
6725 "struct parser_state" argument.
6726 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6727 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6728 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6729 PostIncrementExpression, PostDecrementExpression,
6730 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6731 UnaryExpressionNotPlusMinus, CastExpression,
6732 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6733 RelationalExpression, EqualityExpression, AndExpression,
6734 ExclusiveOrExpression, InclusiveOrExpression,
6735 ConditionalAndExpression, ConditionalOrExpression,
6736 ConditionalExpression, Assignment, LeftHandSide): Update
6737 calls to write_exp* and similars in order to use parser state.
6738 (parse_number): Ajust code to use parser state.
6740 (java_parse): New function.
6741 (push_variable): Add "struct parser_state" argument. Adjust
6742 code to user parser state.
6743 (push_fieldnames, push_qualified_expression_name,
6744 push_expression_name, insert_exp): Likewise.
6745 * jv-lang.h: Forward declare "struct parser_state".
6746 (java_parse): Add "struct parser_state" argument.
6747 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6749 (yyparse): Redefine macro to m2_parse_internal.
6750 (pstate): New variable.
6751 (type_exp, exp, fblock, variable, type): Update calls to
6752 write_exp* and similars to use parser state.
6754 (m2_parse): New function.
6755 * m2-lang.h: Forward declare "struct parser_state".
6756 (m2_parse): Add "struct parser_state" argument.
6757 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6758 * objc-lang.h: Forward declare "struct parser_state".
6759 (end_msglist): Add "struct parser_state" argument.
6760 * p-exp.y (parse_type): Rewrite macro to use parser state.
6761 (yyparse): Redefine macro to pascal_parse_internal.
6762 (pstate): New variable.
6763 (parse_number): Add "struct parser_state" argument.
6764 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6765 write_exp* and similars in order to use parser state.
6766 (parse_number, yylex): Adjust code to use parser state.
6767 (pascal_parse): New function.
6768 * p-lang.h: Forward declare "struct parser_state".
6769 (pascal_parse): Add "struct parser_state" argument.
6770 * go-exp.y (parse_type): Rewrite macro to use parser state.
6771 (yyparse): Redefine macro to go_parse_internal.
6772 (pstate): New variable.
6773 (parse_number): Add "struct parser_state" argument.
6774 (type_exp, exp1, exp, variable, type): Update calls to
6775 write_exp* and similars in order to use parser state.
6776 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6777 to use parser state.
6778 (go_parse): Likewise.
6779 * go-lang.h: Forward declare "struct parser_state".
6780 (go_parse): Add "struct parser_state" argument.
6782 2014-03-27 Doug Evans <dje@google.com>
6784 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6786 2014-03-27 Doug Evans <dje@google.com>
6788 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6789 Remove argument abbrev_section. All callers updated.
6791 2014-03-27 Doug Evans <dje@google.com>
6793 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6794 addr_base, ranges_base.
6796 2014-03-26 Keith Seitz <keiths@redhat.com>
6798 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6799 types, not VAR_DOMAIN.
6801 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6803 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6805 * features/nios2-linux.c: Regenerated.
6806 * features/nios2.c: Regenerated.
6808 2014-03-25 Pedro Alves <palves@redhat.com>
6810 * cli/cli-script.c (script_from_file): Force the interpreter to
6813 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6815 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6816 small stack allocation.
6818 2014-03-24 Tristan Gingold <gingold@adacore.com>
6820 * darwin-nat.c (exc_server): Remove unused prototype.
6821 (darwin_dump_message): Correctly display data on x86_64.
6822 (darwin_encode_reply): Fix style.
6823 Add comments and fix indentation.
6825 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6827 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6829 2014-03-22 Doug Evans <xdje42@gmail.com>
6831 * infcmd.c: Whitespace fixes.
6832 (interrupt_command): Merge two function comments into one.
6834 2014-03-22 Doug Evans <xdje42@gmail.com>
6836 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6839 2014-03-22 Yao Qi <yao@codesourcery.com>
6841 * remote.c (target_read_live_memory): Remove.
6842 (memory_xfer_live_readonly_partial): Rename it to
6843 remote_xfer_live_readonly_partial. Remove argument 'object'.
6844 All callers updated. Call remote_read_bytes_1
6845 instead of target_read_live_memory.
6846 * tracepoint.c (set_traceframe_number): Remove.
6847 (make_cleanup_restore_traceframe_number): Likewise .
6848 * tracepoint.h (set_traceframe_number): Remove declaration.
6849 (make_cleanup_restore_traceframe_number): Likewise.
6851 2014-03-22 Yao Qi <yao@codesourcery.com>
6853 * remote.c (remote_read_bytes): Move code on reading from the
6855 (remote_read_bytes_1): ... here. New function.
6857 2014-03-22 Yao Qi <yao@codesourcery.com>
6859 * ctf.c (ctf_xfer_partial): Check the return value of
6860 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6861 return TARGET_XFER_UNAVAILABLE.
6862 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6863 * target.c (target_read_live_memory): Move it to remote.c.
6864 (memory_xfer_live_readonly_partial): Likewise.
6865 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6866 * remote.c (target_read_live_memory): Moved from target.c.
6867 (memory_xfer_live_readonly_partial): Likewise.
6868 (remote_read_bytes): Factored out from
6869 memory_xfer_partial_1.
6871 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6873 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6876 2014-03-21 Pedro Alves <palves@redhat.com>
6878 * infrun.c (normal_stop): Extend comment.
6880 2014-03-21 Hui Zhu <hui@codesourcery.com>
6881 Pedro Alves <palves@redhat.com>
6883 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6885 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6886 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6887 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6889 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6891 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6892 `z' formatted output modifier.
6894 2014-03-20 Tom Tromey <tromey@redhat.com>
6895 Sergio Durigan Junior <sergiodj@redhat.com>
6897 * probe.c (parse_probes): Turn assert into an ordinary error.
6898 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6899 exceptions when parsing probes. Rearrange the code for clarity.
6901 2014-03-20 Tom Tromey <tromey@redhat.com>
6904 * top.c (execute_command): Only dispatch events if the command
6907 2014-03-20 Tom Tromey <tromey@redhat.com>
6910 * infcall.c: Include event-top.h.
6911 (run_inferior_call): Call async_disable_stdin if needed.
6913 2014-03-20 Pedro Alves <palves@redhat.com>
6915 * infrun.c (prepare_to_proceed): Delete.
6916 (thread_still_needs_step_over): New function.
6917 (find_thread_needs_step_over): New function.
6918 (proceed): If the current thread needs a step-over, set its
6919 steping_over_breakpoint flag. Adjust to use
6920 find_thread_needs_step_over instead of prepare_to_proceed.
6921 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6922 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6924 (switch_back_to_stepped_thread): Step over breakpoints of all
6925 threads not the stepping thread, before switching back to the
6928 2014-03-20 Pedro Alves <palves@redhat.com>
6930 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6932 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6933 * infrun.c (saved_singlestep_ptid)
6934 (stepping_past_singlestep_breakpoint): Delete.
6935 (resume): Remove stepping_past_singlestep_breakpoint handling.
6936 (proceed): Store the prev_pc of the stepping thread too.
6937 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6939 (enum infwait_states): Delete infwait_thread_hop_state.
6940 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6942 (handle_inferior_event): Adjust.
6943 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6944 handling and the thread-hop code. Before removing single-step
6945 breakpoints, check whether the thread hit a single-step breakpoint
6946 of another thread. If it did, the trap is not a random signal.
6947 (switch_back_to_stepped_thread): If the event thread hit a
6948 single-step breakpoint, unblock it before switching to the
6949 stepping thread. Handle the case of the stepped thread having
6951 (keep_going): Handle the case of the current thread moving past a
6952 single-step breakpoint.
6954 2014-03-20 Pedro Alves <palves@redhat.com>
6957 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6958 are being stepped over.
6959 (breakpoint_address_match): Make extern.
6960 * breakpoint.h (breakpoint_address_match): New declaration.
6961 * inferior.h (stepping_past_instruction_at): New declaration.
6962 * infrun.c (struct step_over_info): New type.
6963 (step_over_info): New global.
6964 (set_step_over_info, clear_step_over_info)
6965 (stepping_past_instruction_at): New functions.
6966 (handle_inferior_event): Clear the step-over info when
6967 trap_expected is cleared.
6968 (resume): Remove now stale comment.
6969 (clear_proceed_status): Clear step-over info.
6970 (proceed): Adjust step-over handling to set or clear the step-over
6971 info instead of removing all breakpoints.
6972 (handle_signal_stop): When setting up a thread-hop, don't remove
6974 (stop_stepping): Clear step-over info.
6975 (keep_going): Adjust step-over handling to set or clear step-over
6976 info and then always inserting breakpoints, instead of removing
6977 all breakpoints when stepping over one.
6979 2014-03-20 Pedro Alves <palves@redhat.com>
6981 * infrun.c (previous_inferior_ptid): Adjust comment.
6982 (deferred_step_ptid): Delete.
6983 (infrun_thread_ptid_changed, prepare_to_proceed)
6984 (init_wait_for_inferior): Adjust.
6985 (handle_signal_stop): Delete deferred_step_ptid handling.
6987 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6990 * defs.h (sync_quit_force_run): New declaration.
6991 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6992 * event-top.c (async_sigterm_handler): New declaration.
6993 (async_sigterm_token): New variable.
6994 (async_init_signals): Create also async_sigterm_token.
6995 (async_sigterm_handler): New function.
6996 (sync_quit_force_run): New variable.
6997 (handle_sigterm): Replace quit_force call by other calls.
6998 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7000 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7002 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7003 offset into SPE pseudo registers.
7005 2014-03-18 Pedro Alves <palves@redhat.com>
7008 * inferior.h (print_stop_event): Declare.
7009 * infrun.c (print_stop_event): New, factored out from ...
7010 (normal_stop): ... this.
7011 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7012 of bpstat_print/print_stack_frame.
7014 2014-03-17 Tom Tromey <tromey@redhat.com>
7016 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7018 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7020 * ada-lang.c (decode_constrained_packed_array): Perform a
7021 minimal coercion for reference with coerce_ref instead of
7024 2014-03-17 Tristan Gingold <gingold@adacore.com>
7026 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7027 (darwin_solib_create_inferior_hook): Emit a warning if version
7030 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7032 * python/py-value.c (get_field_flag): Cast flag_name argument to
7033 PyObject_GetAttrString to support Python 2.4.
7035 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7037 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7038 (Global Maintainers): Remove Jan Kratochvil.
7040 2014-03-14 Pedro Alves <palves@redhat.com>
7042 * inferior.h (terminal_ours_for_output): Rename to ...
7043 (child_terminal_ours_for_output): ... this.
7044 (terminal_save_ours): Rename to ...
7045 (child_terminal_save_ours): ... this.
7046 (terminal_ours): Rename to ...
7047 (child_terminal_ours): ... this.
7048 (terminal_inferior): Rename to ...
7049 (child_terminal_inferior): ... this.
7050 (terminal_init_inferior): Rename to ...
7051 (child_terminal_init_inferior): ... this.
7052 (terminal_init_inferior_with_pgrp): Rename to ...
7053 (child_terminal_init_inferior_with_pgrp): ... this.
7054 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7055 (child_terminal_init_with_pgrp): ... this.
7056 (terminal_save_ours): Rename to ...
7057 (child_terminal_save_ours): ... this.
7058 (terminal_init_inferior): Rename to ...
7059 (child_terminal_init): ... this. Adjust.
7060 (terminal_inferior): Rename to ...
7061 (child_terminal_inferior): ... this.
7062 (terminal_ours_for_output): Rename to ...
7063 (child_terminal_ours_for_output): ... this. Adjust.
7064 (terminal_ours): Rename to ...
7065 (child_terminal_ours): ... this.
7066 (terminal_ours_1): Rename to ...
7067 (child_terminal_ours_1): ... this. Adjust.
7068 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7069 * windows-nat.c (do_initial_windows_stuff): Adjust.
7070 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7071 (gnu_terminal_init): ... this. Adjust.
7072 (gnu_target): Adjust.
7073 * inf-child.c (inf_child_target): Adjust.
7075 2014-03-13 Doug Evans <xdje42@gmail.com>
7078 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7081 2014-03-13 Doug Evans <xdje42@gmail.com>
7083 * value.c (record_latest_value): Call release_value_or_incref
7084 instead of release_value.
7086 2014-03-13 Pedro Alves <palves@redhat.com>
7088 * procfs.c (procfs_target): Don't override to_shortname,
7089 to_longname or to_doc.
7091 2014-03-13 Pedro Alves <palves@redhat.com>
7093 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7094 Unix in user visible strings.
7096 2014-03-12 Stan Shebs <stan@codesourcery.com>
7098 * gdbtypes.h: Annotate comments for Doxygen, add a page
7099 block comment with some general info.
7101 2014-03-12 Pedro Alves <palves@redhat.com>
7103 * infcmd.c (prepare_execution_command): New function, factored out
7104 from several execution commands.
7105 (run_command_1, continue_command, step_1, jump_command)
7106 (signal_command, until_command, advance_command, finish_command)
7107 (attach_command): Use prepare_execution_command.
7109 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7111 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7114 (struct arm_linux_thread_points): Removed.
7115 (struct arm_linux_process_info): New.
7116 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7117 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7118 (arm_linux_find_breakpoints_by_tid): Removed.
7119 (struct arch_lwp_info): New.
7120 (arm_linux_find_process_pid): New functions.
7121 (arm_linux_add_process): New functions.
7122 (arm_linux_process_info_get): New functions.
7123 (arm_linux_forget_process): New function.
7124 (arm_linux_get_debug_reg_state): New function.
7125 (struct update_registers_data): New.
7126 (update_registers_callback): New function.
7127 (arm_linux_insert_hw_breakpoint1): Updated.
7128 (arm_linux_remove_hw_breakpoint1): Updated.
7129 (arm_linux_insert_hw_breakpoint): Updated.
7130 (arm_linux_remove_hw_breakpoint): Updated.
7131 (arm_linux_insert_watchpoint): Updated.
7132 (arm_linux_remove_watchpoint): Updated.
7133 (arm_linux_new_thread): Updated.
7134 (arm_linux_prepare_to_resume): New function.
7135 (arm_linux_new_fork): New function.
7136 (_initialize_arm_linux_nat): Updated.
7138 2014-03-12 Pedro Alves <palves@redhat.com>
7140 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7142 2014-03-12 Tom Tromey <tromey@redhat.com>
7144 * inf-child.c (return_zero): New function.
7145 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7146 * aix-thread.c (aix_thread_inferior_created): New function.
7147 (aix_thread_attach): Remove.
7148 (init_aix_thread_ops): Don't set to_attach.
7149 (_initialize_aix_thread): Register inferior_created observer.
7150 * corelow.c (init_core_ops): Don't set to_attach or
7152 * exec.c (init_exec_ops): Don't set to_attach or
7154 * infcmd.c (run_command_1): Use find_run_target. Make direct
7156 (attach_command): Use find_attach_target. Make direct target
7158 * record-btrace.c (init_record_btrace_ops): Don't set
7160 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7162 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7163 set to_create_inferior.
7164 * target.c (complete_target_initialization): Add assertion.
7165 (target_create_inferior): Remove.
7166 (find_default_attach, find_default_create_inferior): Remove.
7167 (find_attach_target, find_run_target): New functions.
7168 (find_default_is_async_p, find_default_can_async_p)
7169 (target_supports_non_stop, target_attach): Remove.
7170 (init_dummy_target): Don't set to_create_inferior or
7171 to_supports_non_stop.
7172 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7173 TARGET_DEFAULT_FUNC.
7174 <to_create_inferior>: Add comment.
7175 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7176 TARGET_DEFAULT_RETURN.
7177 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7178 (find_attach_target, find_run_target): Declare.
7179 (target_create_inferior): Remove.
7180 (target_has_execution_1): Update comment.
7181 (target_supports_non_stop): Remove.
7182 * target-delegates.c: Rebuild.
7184 2014-03-12 Pedro Alves <palves@redhat.com>
7186 * inf-child.h: Update comment to not mention Unix.
7188 2014-03-12 Pedro Alves <palves@redhat.com>
7190 * inf-child.c: Update top comment to not mention Unix. Add
7191 generic comment describing how this target is meant to be used.
7192 (inf_child_post_attach, inf_child_post_startup_inferior)
7193 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7196 2014-03-12 Pedro Alves <palves@redhat.com>
7198 * nto-procfs.c: Include inf-child.h.
7199 (procfs_ops): Delete global.
7200 (procfs_can_run): Delete method.
7201 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7202 target pointer instead of referencing procfs_ops.
7203 (procfs_prepare_to_store): Delete.
7204 (init_procfs_ops): Delete function.
7205 (procfs_target): New function, based on init_procfs_ops, but
7206 inherit inf_child_target.
7207 (_initialize_procfs): Use procfs_target.
7209 2014-03-12 Pedro Alves <palves@redhat.com>
7211 * windows-nat.c: Include inf-child.h.
7212 (windows_ops): Delete global.
7213 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7215 (init_windows_ops): Delete function.
7216 (windows_target): New function, based on init_windows_ops, but
7217 inherit inf_child_target.
7218 (_initialize_windows_nat): Use windows_target. Install x86
7219 specific target methods here.
7221 2014-03-10 Doug Evans <xdje42@gmail.com>
7223 * guile/guile.c (call_initialize_gdb_module): New function.
7224 (initialize_guile): Replace call to scm_init_guile with call to
7227 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7229 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7230 in call to TYPE_CODE macro.
7232 2014-03-10 Jerome Guitton <guitton@adacore.com>
7234 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7235 Resolve tagged types to full view.
7237 2014-03-10 Hui Zhu <hui@codesourcery.com>
7239 * target.h (target_insert_breakpoint): Remove "hardware" from its
7242 2014-03-07 Doug Evans <dje@google.com>
7244 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7246 2014-03-07 Doug Evans <dje@google.com>
7248 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7249 Remove unused local comp_dir_attr. Assert exactly one of
7250 stub_comp_unit_die, stub_comp_dir is non-NULL.
7252 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7254 * target.h (complete_target_initialization, add_target):
7257 2014-03-07 Pedro Alves <palves@redhat.com>
7259 * go32-nat.c: Include inf-child.h.
7260 (go32_ops): Delete global.
7261 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7263 (go32_create_inferior): Push the passed in target pointer instead
7264 of referencing go32_ops.
7265 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7266 (go32_target): New function, based on init_go32_ops, but inherit
7268 (_initialize_go32_nat): Use go32_target. Move parts of
7271 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7273 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7274 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7275 SYMBOL_VALUE_ADDRESS.
7276 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7278 2014-03-06 Yao Qi <yao@codesourcery.com>
7280 * breakpoint.c (get_tracepoint_by_number): Remove argument
7281 optional_p. All callers updated. Adjust comments. Update
7283 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7285 2014-03-06 Yao Qi <yao@codesourcery.com>
7287 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7288 early if get_number returns zero. Use 'p' instead of 'args'.
7290 2014-03-06 Yao Qi <yao@codesourcery.com>
7292 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7295 2014-03-06 Yao Qi <yao@codesourcery.com>
7297 PR breakpoints/16508
7298 * tracepoint.c (check_trace_running): New function.
7299 (trace_find_command): Move code to check_trace_running and
7300 call check_trace_running.
7301 (trace_find_pc_command): Likewise.
7302 (trace_find_tracepoint_command): Likewise.
7303 (trace_find_line_command): Likewise.
7304 (trace_find_range_command): Likewise.
7305 * tracepoint.h (check_trace_running): Likewise.
7306 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7308 2014-03-06 Yao Qi <yao@codesourcery.com>
7310 * target.h (struct target_ops) <to_traceframe_info>: Use
7311 TARGET_DEFAULT_NORETURN (tcomplain ()).
7312 * target-delegates.c: Regenerated.
7314 2014-03-05 Pedro Alves <palves@redhat.com>
7317 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7318 void. Update comment.
7319 (dcache_xfer_memory): Delete.
7320 (dcache_read_memory_partial): New, based on the read bits of
7322 (dcache_update): Add status parameter. Use ULONGEST for len, and
7323 adjust. Discard cache lines if the reason for the update was
7325 * dcache.h (dcache_xfer_memory): Delete declaration.
7326 (dcache_read_memory_partial): New declaration.
7327 (dcache_update): Update prototype.
7328 * target.c (raw_memory_xfer_partial): Update the dcache here.
7329 (memory_xfer_partial_1): Don't handle dcache writes here.
7331 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7333 * remote-sim.c (gdbsim_load): Add const to prog.
7335 2014-03-03 Tom Tromey <tromey@redhat.com>
7337 * elfread.c (probe_key): Change to bfd_data.
7338 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7339 now per-BFD, not per-objfile.
7340 * stap-probe.c (stap_probe_destroy): Update comment.
7341 (handle_stap_probe): Allocate on the per-BFD obstack.
7343 2014-03-03 Tom Tromey <tromey@redhat.com>
7345 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7346 * breakpoint.c (create_longjmp_master_breakpoint): Use
7348 (add_location_to_breakpoint, bkpt_probe_insert_location)
7349 (bkpt_probe_remove_location): Update.
7350 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7351 * elfread.c (elf_symfile_relocate_probe): Remove.
7352 (elf_probe_fns): Update.
7353 (insert_exception_resume_breakpoint): Change type of "probe"
7354 parameter to bound_probe.
7355 (check_exception_resume): Update.
7356 * objfiles.c (objfile_relocate1): Don't relocate probes.
7357 * probe.c (bound_probe_s): New typedef.
7358 (parse_probes): Use get_probe_address. Set sal's objfile.
7359 (find_probe_by_pc): Return a bound_probe.
7360 (collect_probes): Return a VEC(bound_probe_s).
7361 (compare_probes): Update.
7362 (gen_ui_out_table_header_info): Change type of "probes"
7364 (info_probes_for_ops): Update.
7365 (get_probe_address): New function.
7366 (probe_safe_evaluate_at_pc): Update.
7367 * probe.h (struct probe_ops) <get_probe_address>: New field.
7368 <set_semaphore, clear_semaphore>: Add objfile parameter.
7369 (struct probe) <objfile>: Remove field.
7371 <address>: Update comment.
7372 (struct bound_probe): New.
7373 (find_probe_by_pc): Return a bound_probe.
7374 (get_probe_address): Declare.
7375 * solib-svr4.c (struct probe_and_action) <address>: New field.
7376 (hash_probe_and_action, equal_probe_and_action): Update.
7377 (register_solib_event_probe): Add address parameter.
7378 (solib_event_probe_at): Update.
7379 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7381 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7382 (stap_get_probe_address): New function.
7383 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7384 (compile_probe_arg): Update.
7385 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7387 (handle_stap_probe): Don't relocate the probe.
7388 (stap_relocate): Remove.
7389 (stap_gen_info_probes_table_values): Update.
7390 (stap_probe_ops): Remove stap_relocate.
7391 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7392 (debug_sym_probe_fns): Update.
7393 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7394 * symtab.c (init_sal): Use memset.
7395 * symtab.h (struct symtab_and_line) <objfile>: New field.
7396 * tracepoint.c (start_tracing, stop_tracing): Update.
7398 2014-03-03 Tom Tromey <tromey@redhat.com>
7400 * probe.h (parse_probes, find_probe_by_pc)
7401 (find_probes_in_objfile): Fix comments.
7403 2014-03-02 Doug Evans <xdje42@gmail.com>
7405 * infrun.c (handle_signal_stop): Replace test for
7406 TARGET_WAITKIND_STOPPED with an assert.
7408 2014-03-02 Doug Evans <xdje42@gmail.com>
7410 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7412 2014-03-02 Doug Evans <xdje42@gmail.com>
7414 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7416 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7418 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7420 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7422 * i386obsd-nat.c: Include "obsd-nat.h".
7423 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7425 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7427 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7429 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7431 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7433 * mips64obsd-nat.c: Include "obsd-nath".
7434 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7436 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7438 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7440 * amd64obsd-nat.c: Include "obsd-nat,h.
7441 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7443 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7445 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7447 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7448 (find_overload_match): Update call to find_oload_champ.
7449 (find_oload_champ_namespace_loop): Likewise
7451 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7453 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7455 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7456 * config/sparc/obsd64.mh: New file.
7457 * sparc64obsd-nat.c: New file.
7459 * obsd-nat.h: New file.
7460 * obsd-nat.c: New file.
7461 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7462 (ALLDEPFILES): Add obsd-nat.c.
7464 2014-02-28 Tom Tromey <tromey@redhat.com>
7466 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7467 * cli-out.h (cli_ui_out_impl): Now const.
7468 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7469 * ui-out.c (struct ui_out) <impl>: Now const.
7470 (default_ui_out_impl): Now const.
7471 (ui_out_new): Make 'impl' parameter const.
7472 * ui-out.h (ui_out_new): Update.
7474 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7476 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7478 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7480 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7482 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7484 Additional PR 8882 fix.
7485 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7487 2014-02-27 Pedro Alves <palves@redhat.com>
7489 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7492 2014-02-27 Pedro Alves <palves@redhat.com>
7495 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7496 * nat/linux-waitpid.c: Include string.h.
7497 (status_to_str): Moved here and made extern.
7498 * nat/linux-waitpid.h (status_to_str): New declaration.
7500 2014-02-27 Hui Zhu <hui@codesourcery.com>
7503 * infrun.c (ptid_match): Move ...
7504 * common/ptid.c (ptid_match): ... here.
7505 * inferior.h (ptid_match): Move ...
7506 * common/ptid.h (ptid_match): ... here.
7508 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7510 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7511 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7514 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7516 * obsd-tdep.c (obsd_auxv_parse): New function.
7517 (obsd_init_abi): Set auxv_parse.
7519 * gdbarch.sh (auxv_parse): New.
7520 * gdbarch.h: Regenerated.
7521 * gdbarch.c: Regenerated.
7522 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7524 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7526 * guile/scm-value.c (gdbscm_history_append_x): New function.
7527 (value_functions): Add it.
7529 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7531 * dwarf2read.c (attr_value_as_address): New function.
7532 (dwarf2_find_base_address, read_call_site_scope): Use
7533 attr_value_as_address in place of DW_ADDR.
7534 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7535 the low and high addresses. Slight rework of the handling
7536 of the high pc being a constant form, and limit it to
7537 DWARF verson 4 or higher.
7538 (dwarf2_record_block_ranges): Likewise.
7539 (read_partial_die): Likewise.
7540 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7542 2014-02-26 Tom Tromey <tromey@redhat.com>
7544 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7546 2014-02-26 Tom Tromey <tromey@redhat.com>
7548 * elfread.c (elf_read_minimal_symbols): Return early if
7549 minimal symbols have already been read. Add "ei" parameter.
7550 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7551 * minsyms.c (prim_record_minimal_symbol_full): Update.
7552 * objfiles.h (struct objstats) <n_minsyms>: Move...
7553 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7554 * symmisc.c (print_objfile_statistics): Update.
7556 2014-02-26 Tom Tromey <tromey@redhat.com>
7558 * elfread.c (elf_read_minimal_symbols): New function, from
7560 (elf_symfile_read): Call it.
7562 2014-02-26 Tom Tromey <tromey@redhat.com>
7564 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7565 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7566 (lookup_minimal_symbol_solib_trampoline)
7567 (lookup_minimal_symbol_by_pc_section_1)
7568 (lookup_minimal_symbol_and_objfile): Update.
7569 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7570 Don't allocate a minimal symbol if minsyms have already been read.
7571 (build_minimal_symbol_hash_tables): Update.
7572 (install_minimal_symbols): Do nothing if minsyms already read.
7573 Use the per-BFD obstack.
7574 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7575 * objfiles.c (allocate_objfile): Call
7576 terminate_minimal_symbol_table later.
7577 (have_minimal_symbols): Update.
7578 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7579 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7580 Move from struct objfile.
7581 <minsyms_read>: New field.
7582 (struct objfile) <msymbols, minimal_symbol_count,
7583 msymbol_hash, msymbol_demangled_hash>: Move.
7584 (ALL_OBJFILE_MSYMBOLS): Update.
7585 * symfile.c (read_symbols): Set minsyms_read.
7586 (reread_symbols): Update.
7587 * symmisc.c (dump_objfile, dump_msymbols): Update.
7589 2014-02-26 Tom Tromey <tromey@redhat.com>
7591 * minsyms.c (msymbols_sort): Remove.
7592 * minsyms.h (msymbols_sort): Remove.
7593 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7594 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7595 * elfread.c (elf_symtab_read): Don't add section offsets.
7596 * xcoffread.c (record_minimal_symbol): Don't add section offset
7597 to minimal symbol address.
7598 * somread.c (text_offset, data_offset): Remove.
7599 (som_symtab_read): Don't add section offsets to minimal symbol
7601 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7602 Don't add section offsets to minimal symbols.
7603 * coffread.c (coff_symtab_read): Don't add section offsets
7604 to minimal symbol addresses.
7605 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7606 to minimal symbol addresses.
7607 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7608 section offset to minimal symbol addresses.
7609 * mdebugread.c (parse_partial_symbols): Don't add section
7610 offset to minimal symbol addresses.
7611 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7612 offset to minimal symbol addresses.
7614 2014-02-26 Tom Tromey <tromey@redhat.com>
7616 * ada-lang.c (ada_main_name): Update.
7617 (ada_add_standard_exceptions): Update.
7618 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7619 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7620 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7621 * auxv.c (ld_so_xfer_auxv): Update.
7622 * avr-tdep.c (avr_scan_prologue): Update.
7623 * ax-gdb.c (gen_var_ref): Update.
7624 * blockframe.c (get_pc_function_start)
7625 (find_pc_partial_function_gnu_ifunc): Update.
7626 * breakpoint.c (create_overlay_event_breakpoint)
7627 (create_longjmp_master_breakpoint)
7628 (create_std_terminate_master_breakpoint)
7629 (create_exception_master_breakpoint): Update.
7630 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7631 * c-valprint.c (c_val_print): Update.
7632 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7633 * common/agent.c (agent_look_up_symbols): Update.
7634 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7635 * dwarf2loc.c (call_site_to_target_addr): Update.
7636 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7637 * elfread.c (elf_gnu_ifunc_record_cache)
7638 (elf_gnu_ifunc_resolve_by_got): Update.
7639 * findvar.c (default_read_var_value): Update.
7640 * frame.c (inside_main_func): Update.
7641 * frv-tdep.c (frv_frame_this_id): Update.
7642 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7643 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7645 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7646 (hppa_hpux_find_dummy_bpaddr): Update.
7647 * hppa-tdep.c (hppa_symbol_address): Update.
7648 * infcmd.c (until_next_command): Update.
7649 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7651 * linespec.c (minsym_found, add_minsym): Update.
7652 * linux-nat.c (get_signo): Update.
7653 * linux-thread-db.c (inferior_has_bug): Update.
7654 * m32c-tdep.c (m32c_return_value)
7655 (m32c_m16c_address_to_pointer): Update.
7656 * m32r-tdep.c (m32r_frame_this_id): Update.
7657 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7658 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7659 * maint.c (maintenance_translate_address): Update.
7660 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7661 (frob_address): New function.
7662 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7663 frob_address. Rename parameter to "pc_in".
7664 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7666 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7668 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7669 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7670 * objc-lang.c (find_objc_msgsend): Update.
7671 * objfiles.c (objfile_relocate1): Update.
7672 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7673 * p-valprint.c (pascal_val_print): Update.
7674 * parse.c (write_exp_msymbol): Update.
7675 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7676 (ppc_elfv2_skip_entrypoint): Update.
7677 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7678 * printcmd.c (build_address_symbolic, msym_info)
7679 (address_info): Update.
7680 * proc-service.c (ps_pglobal_lookup): Update.
7681 * psymtab.c (find_pc_sect_psymtab_closer)
7682 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7683 Change msymbol parameter to bound_minimal_symbol.
7684 * ravenscar-thread.c (get_running_thread_id): Update.
7685 * remote.c (remote_check_symbols): Update.
7686 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7688 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7689 * solib-dsbt.c (lm_base): Update.
7690 * solib-frv.c (lm_base, main_got): Update.
7691 * solib-irix.c (locate_base): Update.
7692 * solib-som.c (som_solib_create_inferior_hook)
7693 (link_map_start): Update.
7694 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7695 * solib-svr4.c (elf_locate_base, enable_break): Update.
7696 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7697 (flush_ea_cache): Update.
7698 * stabsread.c (define_symbol, scan_file_globals): Update.
7699 * stack.c (find_frame_funname): Update.
7700 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7701 (debug_qf_find_pc_sect_symtab): Update.
7702 * symfile.c (simple_read_overlay_table)
7703 (simple_overlay_update): Update.
7704 * symfile.h (struct quick_symbol_functions)
7705 <find_pc_sect_symtab>: Change type of msymbol to
7706 bound_minimal_symbol.
7707 * symmisc.c (dump_msymbols): Update.
7708 * symtab.c (find_pc_sect_symtab_via_partial)
7709 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7710 (search_symbols, print_msymbol_info): Update.
7711 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7712 (MSYMBOL_VALUE_ADDRESS): Redefine.
7713 (BMSYMBOL_VALUE_ADDRESS): New macro.
7714 * tracepoint.c (scope_info): Update.
7715 * tui/tui-disasm.c (tui_find_disassembly_address)
7716 (tui_get_begin_asm_address): Update.
7717 * valops.c (find_function_in_inferior): Update.
7718 * value.c (value_static_field, value_fn_field): Update.
7720 2014-02-26 Tom Tromey <tromey@redhat.com>
7722 * ada-lang.c (ada_update_initial_language): Update.
7723 (ada_main_name, ada_has_this_exception_support): Update.
7724 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7725 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7726 * arm-tdep.c (arm_skip_stub): Update.
7727 * auxv.c (ld_so_xfer_auxv): Update.
7728 * avr-tdep.c (avr_scan_prologue): Update.
7729 * ax-gdb.c (gen_var_ref): Update.
7730 * breakpoint.c (struct breakpoint_objfile_data)
7731 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7732 type to bound_minimal_symbol.
7733 (create_overlay_event_breakpoint)
7734 (create_longjmp_master_breakpoint)
7735 (create_std_terminate_master_breakpoint)
7736 (create_exception_master_breakpoint): Update.
7737 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7738 * c-exp.y (classify_name): Update.
7739 * coffread.c (coff_symfile_read): Update.
7740 * common/agent.c (agent_look_up_symbols): Update.
7741 * d-lang.c (d_main_name): Update.
7742 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7743 * dec-thread.c (enable_dec_thread): Update.
7744 * dwarf2loc.c (call_site_to_target_addr): Update.
7745 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7746 * eval.c (evaluate_subexp_standard): Update.
7747 * findvar.c (struct minsym_lookup_data) <result>: Change type
7748 to bound_minimal_symbol.
7750 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7751 * frame.c (inside_main_func): Update.
7752 * frv-tdep.c (frv_frame_this_id): Update.
7753 * gcore.c (call_target_sbrk): Update.
7754 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7755 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7757 * go-lang.c (go_main_name): Update.
7758 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7759 (hppa_hpux_find_import_stub_for_addr): Update.
7760 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7761 Update. Change return type.
7762 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7764 * jit.c (jit_breakpoint_re_set_internal): Update.
7765 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7767 * linux-nat.c (get_signo): Update.
7768 * linux-thread-db.c (inferior_has_bug): Update
7769 * m32c-tdep.c (m32c_return_value)
7770 (m32c_m16c_address_to_pointer): Update.
7771 * m32r-tdep.c (m32r_frame_this_id): Update.
7772 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7773 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7774 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7775 lookup_minimal_symbol. Change return type.
7776 (lookup_minimal_symbol): Remove.
7777 (lookup_bound_minimal_symbol): Update.
7778 (lookup_minimal_symbol_text): Change return type.
7779 (lookup_minimal_symbol_solib_trampoline): Change return type.
7780 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7781 (lookup_minimal_symbol_solib_trampoline): Change return type.
7782 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7783 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7784 (value_nsstring, find_imps): Update.
7785 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7786 * p-lang.c (pascal_main_name): Update.
7787 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7788 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7789 * proc-service.c (ps_pglobal_lookup): Update.
7790 * ravenscar-thread.c (get_running_thread_msymbol): Change
7792 (has_ravenscar_runtime, get_running_thread_id): Update.
7793 * remote.c (remote_check_symbols): Update.
7794 * sol-thread.c (ps_pglobal_lookup): Update.
7795 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7796 * solib-dsbt.c (lm_base): Update.
7797 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7799 * solib-irix.c (locate_base): Update.
7800 * solib-som.c (som_solib_create_inferior_hook)
7801 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7803 * solib-spu.c (spu_enable_break): Update.
7804 * solib-svr4.c (elf_locate_base, enable_break): Update.
7805 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7806 (flush_ea_cache): Update.
7807 * stabsread.c (define_symbol): Update.
7808 * symfile.c (simple_read_overlay_table): Update.
7809 * symtab.c (find_pc_sect_line): Update.
7810 * tracepoint.c (scope_info): Update.
7811 * tui-disasm.c (tui_get_begin_asm_address): Update.
7812 * value.c (value_static_field): Update.
7814 2014-02-26 Tom Tromey <tromey@redhat.com>
7816 * minsyms.c (prim_record_minimal_symbol_full): Use
7817 SET_MSYMBOL_VALUE_ADDRESS.
7818 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7819 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7820 SET_MSYMBOL_VALUE_ADDRESS.
7821 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7822 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7824 2014-02-26 Tom Tromey <tromey@redhat.com>
7826 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7827 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7828 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7829 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7830 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7831 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7832 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7833 * ada-lang.c (ada_main_name): Update.
7834 (ada_lookup_simple_minsym): Update.
7835 (ada_make_symbol_completion_list): Update.
7836 (ada_add_standard_exceptions): Update.
7837 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7838 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7839 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7840 * arm-tdep.c (skip_prologue_function): Update.
7841 (arm_skip_stack_protector, arm_skip_stub): Update.
7842 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7843 (arm_wince_skip_main_prologue): Update.
7844 * auxv.c (ld_so_xfer_auxv): Update.
7845 * avr-tdep.c (avr_scan_prologue): Update.
7846 * ax-gdb.c (gen_var_ref): Update.
7847 * block.c (call_site_for_pc): Update.
7848 * blockframe.c (get_pc_function_start): Update.
7849 (find_pc_partial_function_gnu_ifunc): Update.
7850 * breakpoint.c (create_overlay_event_breakpoint): Update.
7851 (create_longjmp_master_breakpoint): Update.
7852 (create_std_terminate_master_breakpoint): Update.
7853 (create_exception_master_breakpoint): Update.
7854 (resolve_sal_pc): Update.
7855 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7856 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7858 * c-valprint.c (c_val_print): Update.
7859 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7860 * coffread.c (coff_symfile_read): Update.
7861 * common/agent.c (agent_look_up_symbols): Update.
7862 * dbxread.c (find_stab_function_addr): Update.
7863 (end_psymtab): Update.
7864 * dwarf2loc.c (call_site_to_target_addr): Update.
7865 (func_verify_no_selftailcall): Update.
7866 (tailcall_dump): Update.
7867 (call_site_find_chain_1): Update.
7868 (dwarf_expr_reg_to_entry_parameter): Update.
7869 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7870 (elf_gnu_ifunc_resolve_by_got): Update.
7871 * f-valprint.c (info_common_command): Update.
7872 * findvar.c (read_var_value): Update.
7873 * frame.c (get_prev_frame_1): Update.
7874 (inside_main_func): Update.
7875 * frv-tdep.c (frv_skip_main_prologue): Update.
7876 (frv_frame_this_id): Update.
7877 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7878 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7879 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7880 (gnuv3_skip_trampoline): Update.
7881 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7882 (hppa64_hpux_in_solib_call_trampoline): Update.
7883 (hppa_hpux_skip_trampoline_code): Update.
7884 (hppa64_hpux_search_dummy_call_sequence): Update.
7885 (hppa_hpux_find_import_stub_for_addr): Update.
7886 (hppa_hpux_find_dummy_bpaddr): Update.
7887 * hppa-tdep.c (hppa_symbol_address)
7888 (hppa_lookup_stub_minimal_symbol): Update.
7889 * i386-tdep.c (i386_skip_main_prologue): Update.
7890 (i386_pe_skip_trampoline_code): Update.
7891 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7892 * infcall.c (get_function_name): Update.
7893 * infcmd.c (until_next_command): Update.
7894 * jit.c (jit_breakpoint_re_set_internal): Update.
7895 (jit_inferior_init): Update.
7896 * linespec.c (minsym_found): Update.
7897 (add_minsym): Update.
7898 * linux-fork.c (info_checkpoints_command): Update.
7899 * linux-nat.c (get_signo): Update.
7900 * linux-thread-db.c (inferior_has_bug): Update.
7901 * m32c-tdep.c (m32c_return_value): Update.
7902 (m32c_m16c_address_to_pointer): Update.
7903 (m32c_m16c_pointer_to_address): Update.
7904 * m32r-tdep.c (m32r_frame_this_id): Update.
7905 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7906 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7907 * maint.c (maintenance_translate_address): Update.
7908 * minsyms.c (add_minsym_to_hash_table): Update.
7909 (add_minsym_to_demangled_hash_table): Update.
7910 (msymbol_objfile): Update.
7911 (lookup_minimal_symbol): Update.
7912 (iterate_over_minimal_symbols): Update.
7913 (lookup_minimal_symbol_text): Update.
7914 (lookup_minimal_symbol_by_pc_name): Update.
7915 (lookup_minimal_symbol_solib_trampoline): Update.
7916 (lookup_minimal_symbol_by_pc_section_1): Update.
7917 (lookup_minimal_symbol_and_objfile): Update.
7918 (prim_record_minimal_symbol_full): Update.
7919 (compare_minimal_symbols): Update.
7920 (compact_minimal_symbols): Update.
7921 (build_minimal_symbol_hash_tables): Update.
7922 (install_minimal_symbols): Update.
7923 (terminate_minimal_symbol_table): Update.
7924 (find_solib_trampoline_target): Update.
7925 (minimal_symbol_upper_bound): Update.
7926 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7927 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7928 (mips_skip_pic_trampoline_code): Update.
7929 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7930 * objc-lang.c (selectors_info): Update.
7931 (classes_info): Update.
7932 (find_methods): Update.
7933 (find_imps): Update.
7934 (find_objc_msgsend): Update.
7935 * objfiles.c (objfile_relocate1): Update.
7936 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7937 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7938 * p-valprint.c (pascal_val_print): Update.
7939 * parse.c (write_exp_msymbol): Update.
7940 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7941 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7942 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7943 * printcmd.c (build_address_symbolic): Update.
7945 (address_info): Update.
7946 * proc-service.c (ps_pglobal_lookup): Update.
7947 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7948 (find_pc_sect_psymtab): Update.
7949 * python/py-framefilter.c (py_print_frame): Update.
7950 * ravenscar-thread.c (get_running_thread_id): Update.
7951 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7953 * remote.c (remote_check_symbols): Update.
7954 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7955 (rs6000_skip_trampoline_code): Update.
7956 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7957 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7958 * solib-dsbt.c (lm_base): Update.
7959 * solib-frv.c (lm_base): Update.
7961 * solib-irix.c (locate_base): Update.
7962 * solib-som.c (som_solib_create_inferior_hook): Update.
7963 (som_solib_desire_dynamic_linker_symbols): Update.
7964 (link_map_start): Update.
7965 * solib-spu.c (spu_enable_break): Update.
7966 (ocl_enable_break): Update.
7967 * solib-svr4.c (elf_locate_base): Update.
7968 (enable_break): Update.
7969 * spu-tdep.c (spu_get_overlay_table): Update.
7970 (spu_catch_start): Update.
7971 (flush_ea_cache): Update.
7972 * stabsread.c (define_symbol): Update.
7973 (scan_file_globals): Update.
7974 * stack.c (find_frame_funname): Update.
7975 (frame_info): Update.
7976 * symfile.c (simple_read_overlay_table): Update.
7977 (simple_overlay_update): Update.
7978 * symmisc.c (dump_msymbols): Update.
7979 * symtab.c (fixup_section): Update.
7980 (find_pc_sect_line): Update.
7981 (skip_prologue_sal): Update.
7982 (search_symbols): Update.
7983 (print_msymbol_info): Update.
7984 (rbreak_command): Update.
7985 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7986 (completion_list_objc_symbol): Update.
7987 (default_make_symbol_completion_list_break_on): Update.
7988 * tracepoint.c (scope_info): Update.
7989 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7990 (tui_get_begin_asm_address): Update.
7991 * valops.c (find_function_in_inferior): Update.
7992 * value.c (value_static_field): Update.
7993 (value_fn_field): Update.
7995 2014-02-26 Tom Tromey <tromey@redhat.com>
7997 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7998 bound minimal symbols. Move code that knows about minsym
8000 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8002 * minsyms.h (minimal_symbol_upper_bound): Declare.
8003 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8004 minimal_symbol_upper_bound.
8006 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8008 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8009 Use the type's name if its basic type does not have a tag.
8011 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8013 * dwarf2read.c (read_subrange_type): Add comment.
8015 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8017 * dwarf2read.c (update_enumeration_type_from_children): New
8018 function, mostly extracted from process_structure_scope.
8019 (read_enumeration_type): Call update_enumeration_type_from_children.
8020 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8021 and flag_flag_enum fields.
8023 2014-02-26 Pedro Alves <palves@redhat.com>
8025 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8026 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8027 to_xfer_partial method.
8029 2014-02-26 Pedro Alves <palves@redhat.com>
8031 * target.c (complete_target_initialization): Don't install
8032 default_xfer_partial as to_xfer_partial hook.
8034 (update_current_target): Don't INHERIT nor de_fault
8035 deprecated_xfer_memory. Delete de_fault macro.
8036 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8037 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8038 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8041 2014-02-26 Pedro Alves <palves@redhat.com>
8043 * go32-nat.c (my_write_child): New function.
8044 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8045 (go32_xfer_partial): New function.
8046 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8047 Instead install a to_xfer_partial hook.
8049 2014-02-26 Pedro Alves <palves@redhat.com>
8051 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8052 to_xfer_partial helper. Rewrite.
8053 (procfs_xfer_partial): New function.
8054 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8055 Install a to_xfer_partial hook.
8057 2014-02-26 Pedro Alves <palves@redhat.com>
8059 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8060 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8061 (m32r_xfer_partial): New function.
8062 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8063 Install a to_xfer_partial hook.
8065 2014-02-26 Pedro Alves <palves@redhat.com>
8067 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8069 (mips_xfer_partial): New function.
8070 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8071 hook. Install a to_xfer_partial hook.
8073 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8075 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8076 * gdbtypes.c (create_array_type_with_stride): New function,
8077 renaming create_array_type, but with an added parameter
8078 called "bit_stride".
8079 (create_array_type): Re-implement using
8080 create_array_type_with_stride.
8081 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8082 and DW_AT_bit_stride attributes.
8084 2014-02-26 Pedro Alves <palves@redhat.com>
8086 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8087 task-specific breakpoints.
8089 2014-02-25 Pedro Alves <palves@redhat.com>
8091 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8092 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8094 2014-02-25 Stan Shebs <stan@codesourcery.com>
8096 * defs.h: Annotate comments for Doxygen.
8098 2014-02-25 Tom Tromey <tromey@redhat.com>
8100 * target.h (target_ignore): Don't declare.
8101 * target.c (target_ignore): Remove.
8103 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8106 * auto-load.c (auto_load_objfile_script_1): Change filename to
8109 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8111 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8112 documentation. Adjust prototype to match the target_ops
8113 to_xfer_partial method. Adjust implementation accordingly.
8115 2014-02-25 Hui Zhu <hui@codesourcery.com>
8117 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8120 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8122 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8123 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8124 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8125 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8126 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8127 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8128 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8129 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8131 (rl78_register_type): Use a data pointer type for SP and
8132 new pseudo registers mentioned above. Use a 16 bit integer
8133 type for all other register pairs.
8134 (rl78_register_name, rl78_g10_register_name): Update for
8135 new pseudo registers.
8136 (rl78_pseudo_register_read): Likewise.
8137 (rl78_pseudo_register_write): Likewise.
8138 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8139 to the newly added pseudo registers.
8141 2014-02-24 Doug Evans <dje@google.com>
8143 * value.c (record_latest_value): Fix comment.
8144 * printcmd.c (print_command_1): Remove code to handle -1 return from
8145 record_latest_value.
8147 2014-02-24 Pedro Alves <palves@redhat.com>
8149 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8150 deprecated_xfer_memory hook.
8151 (procfs_xfer_partial): Call procfs_xfer_memory instead
8152 of the deprecated_xfer_memory target hook.
8153 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8156 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8158 * windows-nat.c (windows_xfer_shared_libraries): Return
8159 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8160 requested object is TARGET_OBJECT_LIBRARIES.
8162 2014-02-24 Yao Qi <yao@codesourcery.com>
8164 * target.h (enum target_xfer_status)
8165 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8166 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8168 * corefile.c (memory_error_message): User updated.
8169 * exec.c (section_table_read_available_memory): Likewise.
8170 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8171 * target.c (target_xfer_status_to_string): Likewise.
8172 (raw_memory_xfer_partial): Likewise.
8173 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8174 * valops.c (read_value_memory): Likewise.
8175 * exec.h: Update comments.
8177 2014-02-24 Yao Qi <yao@codesourcery.com>
8179 * target.c (target_xfer_status_to_string): Rename argument err
8181 * target.h (target_xfer_status_to_string): Update declaration.
8182 Replace target_xfer_error_to_string with
8183 target_xfer_status_to_string in comment.
8185 2014-02-24 Yao Qi <yao@codesourcery.com>
8187 * mips-linux-nat.c (super_close): Update its type.
8188 (mips_linux_close): Pass 'self' to super_close.
8190 2014-02-24 Yao Qi <yao@codesourcery.com>
8192 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8193 * corefile.c (read_memory): Adjusted.
8194 * target.c (target_write_with_progress): Adjusted.
8196 2014-02-23 Yao Qi <yao@codesourcery.com>
8200 2013-10-25 Yao Qi <yao@codesourcery.com>
8202 * remote.c (remote_traceframe_info): Return early if
8203 traceframe is not selected.
8205 2013-07-19 Yao Qi <yao@codesourcery.com>
8207 * target.c (update_current_target): Change the default action
8208 of 'to_traceframe_info' from tcomplain to return_zero.
8209 * target.h (struct target_ops) <to_traceframe_info>: Add more
8212 2014-02-23 Yao Qi <yao@codesourcery.com>
8214 * valops.c (read_value_memory): Rewrite it. Call
8215 target_xfer_partial in a loop.
8216 * exec.h (section_table_available_memory): Remove declaration.
8217 Move comments to ...
8218 * exec.c (section_table_available_memory): ... here. Make it
8221 2014-02-23 Yao Qi <yao@codesourcery.com>
8223 * exec.c (section_table_read_available_memory): New function.
8224 * exec.h (section_table_read_available_memory): Declare.
8225 * ctf.c (ctf_xfer_partial): Call
8226 section_table_read_available_memory.
8227 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8229 2014-02-23 Yao Qi <yao@codesourcery.com>
8231 * ctf.c (ctf_xfer_partial): Move code to ...
8232 * exec.c (exec_read_partial_read_only): ... it. New function.
8233 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8234 * tracefile.c: Include "exec.h".
8235 * exec.h (exec_read_partial_read_only): Declare.
8237 2014-02-23 Yao Qi <yao@codesourcery.com>
8239 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8240 (tfile_has_memory): Remove.
8241 (init_tfile_ops): Don't set fields to_has_all_memory and
8242 to_has_memory of tfile_ops.
8243 * tracefile.c (tracefile_has_all_memory): New function.
8244 (tracefile_has_memory): New function.
8245 (init_tracefile_ops): Initialize fields to_has_all_memory and
8246 to_has_memory of 'ops'.
8248 2014-02-23 Yao Qi <yao@codesourcery.com>
8250 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8251 (ctf_thread_alive, ctf_get_trace_status): Remove.
8252 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8254 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8255 (tfile_has_stack, tfile_has_registers): Remove.
8256 (tfile_thread_alive): Remove.
8257 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8259 * tracefile.c (tracefile_has_stack): New function.
8260 (tracefile_has_registers): New function.
8261 (tracefile_thread_alive): New function.
8262 (tracefile_get_trace_status): New function.
8263 (init_tracefile_ops): New function.
8264 * tracefile.h (init_tracefile_ops): Declare.
8266 2014-02-23 Yao Qi <yao@codesourcery.com>
8268 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8269 (O_LARGEFILE): Likewise.
8270 (tfile_ops): Likewise.
8271 (TRACE_HEADER_SIZE): Likewise.
8272 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8273 (cur_data_size): Likewise.
8274 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8275 (tfile_close, tfile_files_info): Likewise.
8276 (tfile_get_trace_status): Likewise.
8277 (tfile_get_tracepoint_status): Likewise.
8278 (tfile_get_traceframe_address): Likewise.
8279 (tfile_trace_find, match_blocktype): Likewise.
8280 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8281 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8282 (tfile_get_trace_state_variable_value): Likewise.
8283 (tfile_has_all_memory, tfile_has_memory): Likewise.
8284 (tfile_has_stack, tfile_has_registers): Likewise.
8285 (tfile_thread_alive, build_traceframe_info): Likewise.
8286 (tfile_traceframe_info, init_tfile_ops): Likewise.
8287 (_initialize_tracepoint): Don't call init_tfile_ops
8288 and add_target_with_completer.
8289 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8290 exec.h, completer.h and filenames.h.
8291 (_initialize_tracefile_tfile): New function.
8293 2014-02-23 Yao Qi <yao@codesourcery.com>
8295 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8297 (HFILES_NO_SRCDIR): Add tracefile.h.
8298 * ctf.c: Include "tracefile.h".
8299 * tracefile.h: New file.
8300 * tracefile.c: New file
8301 * tracefile-tfile.c: New file.
8302 * tracepoint.c: Include "tracefile.h".
8303 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8304 (stop_reason_names): Add const.
8305 (trace_file_writer_xfree): Move it to tracefile.c.
8306 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8307 (trace_save_ctf): Likewise.
8308 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8309 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8310 (tfile_write_header, tfile_write_regblock_type): Likewise.
8311 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8312 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8313 (tfile_write_raw_data, tfile_end): Likewise.
8314 (tfile_trace_file_writer_new): Likewise.
8315 (free_uploaded_tp): Make it extern.
8316 (free_uploaded_tsv): Make it extern.
8317 (_initialize_tracepoint): Move code to register command 'tsave'
8319 * tracepoint.h (stop_reason_names): Declare.
8320 (struct trace_frame_write_ops): Move it to tracefile.h.
8321 (struct trace_file_write_ops): Likewise.
8322 (struct trace_file_writer): Likewise.
8323 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8325 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8328 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8330 (get_cores_used_by_process): New parameter num_cores, use it.
8331 (linux_xfer_osdata_processes): Pass num_cores to it.
8332 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8335 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8337 * target.c (memory_xfer_partial): Fix length arg in call to
8338 breakpoint_xfer_memory.
8340 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8343 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8344 number comes after the + or - signs. Adjust length of register
8345 name to be extracted.
8347 2014-02-20 Tom Tromey <tromey@redhat.com>
8349 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8350 (ada_varobj_ops): Mark "extern".
8352 2014-02-20 Tom Tromey <tromey@redhat.com>
8354 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8356 2014-02-20 Doug Evans <xdje42@gmail.com>
8358 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8359 All callers updated.
8360 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8361 All callers updated.
8362 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8363 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8365 2014-02-20 lin zuojian <manjian2006@gmail.com>
8366 Joel Brobecker <brobecker@adacore.com>
8367 Doug Evans <xdje42@gmail.com>
8370 * dwarf2read.c (struct die_info): New member in_process.
8371 (reset_die_in_process): New function.
8372 (process_die): Set it at the start, reset when returning.
8373 (inherit_abstract_dies): Only call process_die if origin_child_die
8374 not already being processed.
8376 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8378 * windows-nat.c (handle_unload_dll): Add function documentation.
8379 (do_initial_windows_stuff): Add comment explaining why we wait
8380 until after inferior initialization has finished before
8381 processing all DLLs.
8383 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8385 * windows-nat.c (get_module_name): Delete.
8386 (windows_get_exec_module_filename): New function, mostly
8387 inspired from get_module_name.
8388 (windows_pid_to_exec_file): Replace call to get_module_name
8389 by call to windows_get_exec_module_filename.
8391 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8393 * windows-nat.c (handle_load_dll): Rewrite this function's
8394 introductory comment. Remove code using get_module_name
8395 to get the DLL's name.
8397 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8399 * windows-nat.c (get_windows_debug_event): Ignore
8400 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8401 if windows_initialization_done == 0.
8402 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8403 Adjust implementation to always load all DLLs.
8404 (do_initial_windows_stuff): Replace call to
8405 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8407 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8409 * windows-nat.c (_initialize_windows_nat): Deprecate the
8410 "dll-symbols" command. Turn the "add-shared-symbol-files"
8411 and "assf" aliases into commands, and deprecate them as well.
8412 * NEWS: Add entry explaining that "dll-symbols" and its two
8413 aliases are now deprecated.
8415 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8417 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8418 new-line in debug string. Remove trailing spaces.
8420 2014-02-19 Stan Shebs <stan@codesourcery.com>
8422 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8424 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8426 * NEWS: Add entry for the new feature
8427 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8430 2014-02-19 Stan Shebs <stan@codesourcery.com>
8432 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8434 2014-02-19 Pedro Alves <palves@redhat.com>
8436 * common/ptid.h (struct ptid): Mention that process_stratum
8437 targets should prefer ptid.lwp.
8439 2014-02-19 Pedro Alves <palves@redhat.com>
8441 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8442 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8443 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8444 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8445 store remote thread ids rather than ptid.tid.
8446 (_initialize_remote): Adjust.
8448 2014-02-19 Tom Tromey <tromey@redhat.com>
8450 * target.c (target_get_unwinder): Rewrite.
8451 (target_get_tailcall_unwinder): Rewrite.
8452 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8453 (record_btrace_to_get_tailcall_unwinder): New function.
8454 (init_record_btrace_ops): Update.
8455 * target.h (struct target_ops) <to_get_unwinder,
8456 to_get_tailcall_unwinder>: Now function pointers. Use
8457 TARGET_DEFAULT_RETURN.
8459 2014-02-19 Tom Tromey <tromey@redhat.com>
8461 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8463 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8465 2014-02-19 Tom Tromey <tromey@redhat.com>
8467 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8469 * target-delegates.c: Rebuild.
8470 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8471 TARGET_DEFAULT_FUNC.
8472 * target.c (default_target_decr_pc_after_break): Rename from
8473 forward_target_decr_pc_after_break. Simplify.
8474 (target_decr_pc_after_break): Rely on delegation.
8476 2014-02-19 Tom Tromey <tromey@redhat.com>
8478 * target.c (update_current_target): Do not INHERIT to_doc or
8479 to_magic. Do not de_fault to_open or to_close.
8481 2014-02-19 Tom Tromey <tromey@redhat.com>
8483 * gcore.h (objfile_find_memory_regions): Declare.
8484 * gcore.c (objfile_find_memory_regions): No longer static. Add
8486 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8487 * exec.c: Include gcore.h.
8488 (exec_set_find_memory_regions): Remove.
8489 (exec_find_memory_regions): Remove.
8490 (exec_do_find_memory_regions): Remove.
8491 (init_exec_ops): Update.
8492 * defs.h (exec_set_find_memory_regions): Remove.
8494 2014-02-19 Tom Tromey <tromey@redhat.com>
8496 * target-delegates.c: Rebuild.
8497 * target.h (struct target_ops) <to_extra_thread_info,
8498 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8499 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8500 not 0, in TARGET_DEFAULT_RETURN.
8502 2014-02-19 Tom Tromey <tromey@redhat.com>
8504 * target.c (complete_target_initialization): Remove casts. Use
8505 return_zero_has_execution.
8506 (return_zero): Add "ignore" argument.
8507 (return_zero_has_execution): New function.
8508 (init_dummy_target): Remove casts. Use
8509 return_zero_has_execution.
8511 2014-02-19 Tom Tromey <tromey@redhat.com>
8513 * target.c (update_current_target): Update comments. Do not
8516 2014-02-19 Tom Tromey <tromey@redhat.com>
8518 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8520 * corelow.c (core_read_description): Delegate when needed.
8521 * remote.c (remote_read_description): Delegate when needed.
8522 * target-delegates.c: Rebuild.
8523 * target.c (target_read_description): Rewrite.
8524 * target.h (struct target_ops) <to_read_description>: Update
8525 comment. Use TARGET_DEFAULT_RETURN.
8527 2014-02-19 Tom Tromey <tromey@redhat.com>
8529 * target-delegates.c: Rebuild.
8530 * target.c (update_current_target): Don't inherit or default
8532 (find_default_run_target): Check against delegate_can_run.
8533 * target.h (struct target_ops) <to_can_run>: Use
8534 TARGET_DEFAULT_RETURN.
8536 2014-02-19 Tom Tromey <tromey@redhat.com>
8538 * target-delegates.c: Rebuild.
8539 * target.c (target_disconnect): Unconditionally delegate.
8540 * target.h (struct target_ops) <to_disconnect>: Use
8541 TARGET_DEFAULT_NORETURN.
8543 2014-02-19 Tom Tromey <tromey@redhat.com>
8545 * record.c (record_stop): Unconditionally delegate.
8546 * target-delegates.c: Rebuild.
8547 * target.c (target_stop_recording): Unconditionally delegate.
8548 * target.h (struct target_ops) <to_stop_recording>: Use
8549 TARGET_DEFAULT_IGNORE.
8551 2014-02-19 Tom Tromey <tromey@redhat.com>
8553 * target-delegates.c: Rebuild.
8554 * target.c (target_enable_btrace): Unconditionally delegate.
8555 * target.h (struct target_ops) <to_enable_btrace>: Use
8556 TARGET_DEFAULT_NORETURN.
8558 2014-02-19 Tom Tromey <tromey@redhat.com>
8560 * target-delegates.c: Rebuild.
8561 * target.c (target_read_btrace): Unconditionally delegate.
8562 * target.h (struct target_ops) <to_read_btrace>: Use
8563 TARGET_DEFAULT_NORETURN.
8565 2014-02-19 Tom Tromey <tromey@redhat.com>
8567 * target-delegates.c: Rebuild.
8568 * target.c (target_teardown_btrace): Unconditionally delegate.
8569 * target.h (struct target_ops) <to_teardown_btrace>: Use
8570 TARGET_DEFAULT_NORETURN.
8572 2014-02-19 Tom Tromey <tromey@redhat.com>
8574 * target-delegates.c: Rebuild.
8575 * target.c (target_disable_btrace): Unconditionally delegate.
8576 * target.h (struct target_ops) <to_disable_btrace>: Use
8577 TARGET_DEFAULT_NORETURN.
8579 2014-02-19 Tom Tromey <tromey@redhat.com>
8581 * target-delegates.c: Rebuild.
8582 * target.c (default_search_memory): New function.
8583 (simple_search_memory): Update comment.
8584 (target_search_memory): Unconditionally delegate.
8585 * target.h (struct target_ops) <to_search_memory>: Use
8586 TARGET_DEFAULT_FUNC.
8588 2014-02-19 Tom Tromey <tromey@redhat.com>
8590 * auxv.c (default_auxv_parse): No longer static.
8591 (target_auxv_parse): Unconditionally delegate.
8592 * auxv.h (default_auxv_parse): Declare.
8593 * target-delegates.c: Rebuild.
8594 * target.c: Include auxv.h.
8595 * target.h (struct target_ops) <to_auxv_parse>: Use
8596 TARGET_DEFAULT_FUNC.
8598 2014-02-19 Tom Tromey <tromey@redhat.com>
8600 * target-delegates.c: Rebuild.
8601 * target.c (target_memory_map): Unconditionally delegate.
8602 * target.h (struct target_ops) <to_memory_map>: Use
8603 TARGET_DEFAULT_RETURN.
8605 2014-02-19 Tom Tromey <tromey@redhat.com>
8607 * target-delegates.c: Rebuild.
8608 * target.c (target_thread_alive): Unconditionally delegate.
8609 * target.h (struct target_ops) <to_thread_alive>: Use
8610 TARGET_DEFAULT_RETURN.
8612 2014-02-19 Tom Tromey <tromey@redhat.com>
8614 * target-delegates.c: Rebuild.
8615 * target.c (target_save_record): Unconditionally delegate.
8616 * target.h (struct target_ops) <to_save_record>: Use
8617 TARGET_DEFAULT_NORETURN.
8619 2014-02-19 Tom Tromey <tromey@redhat.com>
8621 * target-delegates.c: Rebuild.
8622 * target.c (target_delete_record): Unconditionally delegate.
8623 * target.h (struct target_ops) <to_delete_record>: Use
8624 TARGET_DEFAULT_NORETURN.
8626 2014-02-19 Tom Tromey <tromey@redhat.com>
8628 * target-delegates.c: Rebuild.
8629 * target.c (target_record_is_replaying): Unconditionally
8631 * target.h (struct target_ops) <to_record_is_replaying>: Use
8632 TARGET_DEFAULT_RETURN.
8634 2014-02-19 Tom Tromey <tromey@redhat.com>
8636 * target-delegates.c: Rebuild.
8637 * target.c (target_goto_record_begin): Unconditionally delegate.
8638 * target.h (struct target_ops) <to_goto_record_begin>: Use
8639 TARGET_DEFAULT_NORETURN.
8641 2014-02-19 Tom Tromey <tromey@redhat.com>
8643 * target-delegates.c: Rebuild.
8644 * target.c (target_goto_record_end): Unconditionally delegate.
8645 * target.h (struct target_ops) <to_goto_record_end>: Use
8646 TARGET_DEFAULT_NORETURN.
8648 2014-02-19 Tom Tromey <tromey@redhat.com>
8650 * target-delegates.c: Rebuild.
8651 * target.c (target_goto_record): Unconditionally delegate.
8652 * target.h (struct target_ops) <to_goto_record>: Use
8653 TARGET_DEFAULT_NORETURN.
8655 2014-02-19 Tom Tromey <tromey@redhat.com>
8657 * target-delegates.c: Rebuild.
8658 * target.c (target_insn_history): Unconditionally delegate.
8659 * target.h (struct target_ops) <to_insn_history>: Use
8660 TARGET_DEFAULT_NORETURN.
8662 2014-02-19 Tom Tromey <tromey@redhat.com>
8664 * target-delegates.c: Rebuild.
8665 * target.c (target_insn_history_from): Unconditionally delegate.
8666 * target.h (struct target_ops) <to_insn_history_from>: Use
8667 TARGET_DEFAULT_NORETURN.
8669 2014-02-19 Tom Tromey <tromey@redhat.com>
8671 * target-delegates.c: Rebuild.
8672 * target.c (target_insn_history_range): Unconditionally delegate.
8673 * target.h (struct target_ops) <to_insn_history_range>: Use
8674 TARGET_DEFAULT_NORETURN.
8676 2014-02-19 Tom Tromey <tromey@redhat.com>
8678 * target-delegates.c: Rebuild.
8679 * target.c (target_call_history): Unconditionally delegate.
8680 * target.h (struct target_ops) <to_call_history>: Use
8681 TARGET_DEFAULT_NORETURN.
8683 2014-02-19 Tom Tromey <tromey@redhat.com>
8685 * target-delegates.c: Rebuild.
8686 * target.c (target_call_history_from): Unconditionally delegate.
8687 * target.h (struct target_ops) <to_call_history_from>: Use
8688 TARGET_DEFAULT_NORETURN.
8690 2014-02-19 Tom Tromey <tromey@redhat.com>
8692 * target-delegates.c: Rebuild.
8693 * target.c (target_call_history_range): Unconditionally delegate.
8694 * target.h (struct target_ops) <to_call_history_range>: Use
8695 TARGET_DEFAULT_NORETURN.
8697 2014-02-19 Tom Tromey <tromey@redhat.com>
8699 * target-delegates.c: Rebuild.
8700 * target.c (target_verify_memory): Unconditionally delegate.
8701 * target.h (struct target_ops) <to_verify_memory>: Use
8702 TARGET_DEFAULT_NORETURN.
8704 2014-02-19 Tom Tromey <tromey@redhat.com>
8706 * target-delegates.c: Rebuild.
8707 * target.c (target_core_of_thread): Unconditionally delegate.
8708 * target.h (struct target_ops) <to_core_of_thread>: Use
8709 TARGET_DEFAULT_RETURN.
8711 2014-02-19 Tom Tromey <tromey@redhat.com>
8713 * target-delegates.c: Rebuild.
8714 * target.c (target_flash_done): Unconditionally delegate.
8715 * target.h (struct target_ops) <to_flash_done>: Use
8716 TARGET_DEFAULT_NORETURN.
8718 2014-02-19 Tom Tromey <tromey@redhat.com>
8720 * target-delegates.c: Rebuild.
8721 * target.c (target_flash_erase): Unconditionally delegate.
8722 * target.h (struct target_ops) <to_flash_erase>: Use
8723 TARGET_DEFAULT_NORETURN.
8725 2014-02-19 Tom Tromey <tromey@redhat.com>
8727 * target-delegates.c: Rebuild.
8728 * target.c (target_get_section_table): Unconditionally delegate.
8729 * target.h (struct target_ops) <to_get_section_table>: Use
8730 TARGET_DEFAULT_RETURN.
8732 2014-02-19 Tom Tromey <tromey@redhat.com>
8734 * target-delegates.c: Rebuild.
8735 * target.c (target_pid_to_str): Unconditionally delegate.
8736 (init_dummy_target): Don't initialize to_pid_to_str.
8737 (default_pid_to_str): Rename from dummy_pid_to_str.
8738 * target.h (struct target_ops) <to_pid_to_str>: Use
8739 TARGET_DEFAULT_FUNC.
8741 2014-02-19 Tom Tromey <tromey@redhat.com>
8743 * target-delegates.c: Rebuild.
8744 * target.c (target_find_new_threads): Unconditionally delegate.
8745 * target.h (struct target_ops) <to_find_new_threads>: Use
8746 TARGET_DEFAULT_RETURN.
8748 2014-02-19 Tom Tromey <tromey@redhat.com>
8750 * target-delegates.c: Rebuild.
8751 * target.c (target_program_signals): Unconditionally delegate.
8752 * target.h (struct target_ops) <to_program_signals>: Use
8753 TARGET_DEFAULT_IGNORE.
8755 2014-02-19 Tom Tromey <tromey@redhat.com>
8757 * target-delegates.c: Rebuild.
8758 * target.c (target_pass_signals): Unconditionally delegate.
8759 * target.h (struct target_ops) <to_pass_signals>: Use
8760 TARGET_DEFAULT_IGNORE.
8762 2014-02-19 Tom Tromey <tromey@redhat.com>
8764 * target-delegates.c: Rebuild.
8765 * target.c (default_mourn_inferior): New function.
8766 (target_mourn_inferior): Unconditionally delegate.
8767 * target.h (struct target_ops) <to_mourn_inferior>: Use
8768 TARGET_DEFAULT_FUNC.
8770 2014-02-19 Tom Tromey <tromey@redhat.com>
8772 * target-delegates.c: Rebuild.
8773 * target.c (default_follow_fork): New function.
8774 (target_follow_fork): Unconditionally delegate.
8775 * target.h (struct target_ops) <to_follow_fork>: Use
8776 TARGET_DEFAULT_FUNC.
8778 2014-02-19 Tom Tromey <tromey@redhat.com>
8780 * target-delegates.c: Rebuild.
8781 * target.c (target_kill): Unconditionally delegate.
8782 * target.h (struct target_ops) <to_kill>: Use
8783 TARGET_DEFAULT_NORETURN.
8785 2014-02-19 Tom Tromey <tromey@redhat.com>
8787 * target-delegates.c: Rebuild.
8788 * target.c (target_masked_watch_num_registers): Unconditionally
8790 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8791 Use TARGET_DEFAULT_RETURN.
8793 2014-02-19 Tom Tromey <tromey@redhat.com>
8795 * target-delegates.c: Rebuild.
8796 * target.c (target_remove_mask_watchpoint): Unconditionally
8798 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8799 TARGET_DEFAULT_RETURN.
8801 2014-02-19 Tom Tromey <tromey@redhat.com>
8803 * target-delegates.c: Rebuild.
8804 * target.c (target_insert_mask_watchpoint): Unconditionally
8806 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8807 TARGET_DEFAULT_RETURN.
8809 2014-02-19 Tom Tromey <tromey@redhat.com>
8811 * target-delegates.c: Rebuild.
8812 * target.c (target_ranged_break_num_registers): Unconditionally
8814 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8815 Use TARGET_DEFAULT_RETURN.
8817 2014-02-19 Tom Tromey <tromey@redhat.com>
8819 * target-delegates.c: Rebuild.
8820 * target.c (target_fetch_registers): Unconditionally delegate.
8821 * target.h (struct target_ops) <to_fetch_registers>: Use
8822 TARGET_DEFAULT_NORETURN.
8824 2014-02-19 Tom Tromey <tromey@redhat.com>
8826 * target-delegates.c: Rebuild.
8827 * target.c (update_current_target): Don't inherit or default
8829 * target.h (struct target_ops) <to_stop>: Use
8830 TARGET_DEFAULT_IGNORE.
8832 2014-02-19 Tom Tromey <tromey@redhat.com>
8834 * target-delegates.c: Rebuild.
8835 * target.c (update_current_target): Don't inherit or default
8836 to_can_run_breakpoint_commands.
8837 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8838 Use TARGET_DEFAULT_RETURN.
8840 2014-02-19 Tom Tromey <tromey@redhat.com>
8842 * target-delegates.c: Rebuild.
8843 * target.c (update_current_target): Don't inherit or default
8844 to_supports_evaluation_of_breakpoint_conditions.
8845 * target.h (struct target_ops)
8846 <to_supports_evaluation_of_breakpoint_conditions>: Use
8847 TARGET_DEFAULT_RETURN.
8849 2014-02-19 Tom Tromey <tromey@redhat.com>
8851 * target-delegates.c: Rebuild.
8852 * target.c (update_current_target): Don't inherit or default
8853 to_augmented_libraries_svr4_read.
8854 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8855 Use TARGET_DEFAULT_RETURN.
8857 2014-02-19 Tom Tromey <tromey@redhat.com>
8859 * target-delegates.c: Rebuild.
8860 * target.c (update_current_target): Don't inherit or default
8862 * target.h (struct target_ops) <to_can_use_agent>: Use
8863 TARGET_DEFAULT_RETURN.
8865 2014-02-19 Tom Tromey <tromey@redhat.com>
8867 * target-delegates.c: Rebuild.
8868 * target.c (update_current_target): Don't inherit or default
8870 * target.h (struct target_ops) <to_use_agent>: Use
8871 TARGET_DEFAULT_NORETURN.
8873 2014-02-19 Tom Tromey <tromey@redhat.com>
8875 * target-delegates.c: Rebuild.
8876 * target.c (update_current_target): Don't inherit or default
8878 (return_null): Remove.
8879 * target.h (struct target_ops) <to_traceframe_info>: Use
8880 TARGET_DEFAULT_RETURN.
8882 2014-02-19 Tom Tromey <tromey@redhat.com>
8884 * target-delegates.c: Rebuild.
8885 * target.c (update_current_target): Don't inherit or default
8886 to_static_tracepoint_markers_by_strid.
8887 * target.h (struct target_ops)
8888 <to_static_tracepoint_markers_by_strid>: Use
8889 TARGET_DEFAULT_NORETURN.
8891 2014-02-19 Tom Tromey <tromey@redhat.com>
8893 * target-delegates.c: Rebuild.
8894 * target.c (update_current_target): Don't inherit or default
8895 to_static_tracepoint_marker_at.
8896 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8897 Use TARGET_DEFAULT_RETURN.
8899 2014-02-19 Tom Tromey <tromey@redhat.com>
8901 * target-delegates.c: Rebuild.
8902 * target.c (update_current_target): Don't inherit or default
8904 * target.h (struct target_ops) <to_set_permissions>: Use
8905 TARGET_DEFAULT_IGNORE.
8907 2014-02-19 Tom Tromey <tromey@redhat.com>
8909 * target-delegates.c: Rebuild.
8910 * target.c (update_current_target): Don't inherit or default
8912 * target.h (struct target_ops) <to_get_tib_address>: Use
8913 TARGET_DEFAULT_NORETURN.
8915 2014-02-19 Tom Tromey <tromey@redhat.com>
8917 * target-delegates.c: Rebuild.
8918 * target.c (update_current_target): Don't inherit or default
8920 * target.h (struct target_ops) <to_set_trace_notes>: Use
8921 TARGET_DEFAULT_RETURN.
8923 2014-02-19 Tom Tromey <tromey@redhat.com>
8925 * target-delegates.c: Rebuild.
8926 * target.c (update_current_target): Don't initialize
8927 to_set_trace_buffer_size.
8928 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8929 TARGET_DEFAULT_IGNORE.
8931 2014-02-19 Tom Tromey <tromey@redhat.com>
8933 * target-delegates.c: Rebuild.
8934 * target.c (update_current_target): Don't inherit or default
8935 to_set_circular_trace_buffer.
8936 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8937 TARGET_DEFAULT_IGNORE.
8939 2014-02-19 Tom Tromey <tromey@redhat.com>
8941 * target-delegates.c: Rebuild.
8942 * target.c (update_current_target): Don't inherit or default
8943 to_set_disconnected_tracing.
8944 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8945 TARGET_DEFAULT_IGNORE.
8947 2014-02-19 Tom Tromey <tromey@redhat.com>
8949 * target-delegates.c: Rebuild.
8950 * target.c (update_current_target): Don't inherit or default
8951 to_get_min_fast_tracepoint_insn_len.
8952 (return_minus_one): Remove.
8953 * target.h (struct target_ops)
8954 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8956 2014-02-19 Tom Tromey <tromey@redhat.com>
8958 * target-delegates.c: Rebuild.
8959 * target.c (update_current_target): Don't inherit or default
8960 to_get_raw_trace_data.
8961 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8962 TARGET_DEFAULT_NORETURN.
8964 2014-02-19 Tom Tromey <tromey@redhat.com>
8966 * target-delegates.c: Rebuild.
8967 * target.c (update_current_target): Don't inherit or default
8968 to_upload_trace_state_variables.
8969 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8970 Use TARGET_DEFAULT_RETURN.
8972 2014-02-19 Tom Tromey <tromey@redhat.com>
8974 * target-delegates.c: Rebuild.
8975 * target.c (update_current_target): Don't inherit or default
8976 to_upload_tracepoints.
8977 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8978 TARGET_DEFAULT_RETURN.
8980 2014-02-19 Tom Tromey <tromey@redhat.com>
8982 * target-delegates.c: Rebuild.
8983 * target.c (update_current_target): Don't inherit or default
8985 * target.h (struct target_ops) <to_save_trace_data>: Use
8986 TARGET_DEFAULT_NORETURN.
8988 2014-02-19 Tom Tromey <tromey@redhat.com>
8990 * target-delegates.c: Rebuild.
8991 * target.c (update_current_target): Don't inherit or default
8992 to_get_trace_state_variable_value.
8993 * target.h (struct target_ops)
8994 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8996 2014-02-19 Tom Tromey <tromey@redhat.com>
8998 * target-delegates.c: Rebuild.
8999 * target.c (update_current_target): Don't inherit or default
9001 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9003 2014-02-19 Tom Tromey <tromey@redhat.com>
9005 * target-delegates.c: Rebuild.
9006 * target.c (update_current_target): Don't inherit or default
9008 * target.h (struct target_ops) <to_trace_stop>: Use
9009 TARGET_DEFAULT_NORETURN.
9011 2014-02-19 Tom Tromey <tromey@redhat.com>
9013 * target-delegates.c: Rebuild.
9014 * target.c (update_current_target): Don't inherit or default
9015 to_get_tracepoint_status.
9016 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9017 TARGET_DEFAULT_NORETURN.
9019 2014-02-19 Tom Tromey <tromey@redhat.com>
9021 * target-delegates.c: Rebuild.
9022 * target.c (update_current_target): Don't inherit or default
9023 to_get_trace_status.
9024 * target.h (struct target_ops) <to_get_trace_status>: Use
9025 TARGET_DEFAULT_RETURN.
9027 2014-02-19 Tom Tromey <tromey@redhat.com>
9029 * target-delegates.c: Rebuild.
9030 * target.c (update_current_target): Don't inherit or default
9032 * target.h (struct target_ops) <to_trace_start>: Use
9033 TARGET_DEFAULT_NORETURN.
9035 2014-02-19 Tom Tromey <tromey@redhat.com>
9037 * target-delegates.c: Rebuild.
9038 * target.c (update_current_target): Don't inherit or default
9039 to_trace_set_readonly_regions.
9040 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9041 Use TARGET_DEFAULT_NORETURN.
9043 2014-02-19 Tom Tromey <tromey@redhat.com>
9045 * target-delegates.c: Rebuild.
9046 * target.c (update_current_target): Don't inherit or default
9047 to_disable_tracepoint.
9048 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9049 TARGET_DEFAULT_NORETURN.
9051 2014-02-19 Tom Tromey <tromey@redhat.com>
9053 * target-delegates.c: Rebuild.
9054 * target.c (update_current_target): Don't inherit or default
9055 to_enable_tracepoint.
9056 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9057 TARGET_DEFAULT_NORETURN.
9059 2014-02-19 Tom Tromey <tromey@redhat.com>
9061 * target-delegates.c: Rebuild.
9062 * target.c (update_current_target): Don't inherit or default
9063 to_download_trace_state_variable.
9064 * target.h (struct target_ops) <to_download_trace_state_variable>:
9065 Use TARGET_DEFAULT_NORETURN.
9067 2014-02-19 Tom Tromey <tromey@redhat.com>
9069 * target-delegates.c: Rebuild.
9070 * target.c (update_current_target): Don't inherit or default
9071 to_can_download_tracepoint.
9072 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9073 TARGET_DEFAULT_RETURN.
9075 2014-02-19 Tom Tromey <tromey@redhat.com>
9077 * target-delegates.c: Rebuild.
9078 * target.c (update_current_target): Don't inherit or default
9079 to_download_tracepoint.
9080 * target.h (struct target_ops) <to_download_tracepoint>: Use
9081 TARGET_DEFAULT_NORETURN.
9083 2014-02-19 Tom Tromey <tromey@redhat.com>
9085 * target-delegates.c: Rebuild.
9086 * target.c (update_current_target): Don't inherit or default
9088 * target.h (struct target_ops) <to_trace_init>: Use
9089 TARGET_DEFAULT_RETURN.
9091 2014-02-19 Tom Tromey <tromey@redhat.com>
9093 * target-delegates.c: Rebuild.
9094 * target.c (update_current_target): Don't inherit or default
9095 to_supports_string_tracing.
9096 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9097 TARGET_DEFAULT_RETURN.
9099 2014-02-19 Tom Tromey <tromey@redhat.com>
9101 * target-delegates.c: Rebuild.
9102 * target.c (update_current_target): Don't inherit or default
9103 to_supports_enable_disable_tracepoint.
9104 * target.h (struct target_ops)
9105 <to_supports_enable_disable_tracepoint>: Use
9106 TARGET_DEFAULT_RETURN.
9108 2014-02-19 Tom Tromey <tromey@redhat.com>
9110 * target-delegates.c: Rebuild.
9111 * target.c (update_current_target): Don't inherit or default
9112 to_supports_multi_process.
9113 * target.h (struct target_ops) <to_supports_multi_process>: Use
9114 TARGET_DEFAULT_RETURN.
9116 2014-02-19 Tom Tromey <tromey@redhat.com>
9118 * target-delegates.c: Rebuild.
9119 * target.c (update_current_target): Don't inherit or default
9120 to_get_ada_task_ptid.
9121 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9122 TARGET_DEFAULT_FUNC.
9124 2014-02-19 Tom Tromey <tromey@redhat.com>
9126 * target-delegates.c: Rebuild.
9127 * target.c (update_current_target): Don't inherit or default
9128 to_thread_architecture.
9129 * target.h (struct target_ops) <to_thread_architecture>: Use
9130 TARGET_DEFAULT_FUNC.
9132 2014-02-19 Tom Tromey <tromey@redhat.com>
9134 * target-delegates.c: Rebuild.
9135 * target.c (update_current_target): Don't inherit or default
9136 to_execution_direction.
9137 * target.h (struct target_ops) <to_execution_direction>: Use
9138 TARGET_DEFAULT_FUNC.
9140 2014-02-19 Tom Tromey <tromey@redhat.com>
9142 * target-delegates.c: Rebuild.
9143 * target.c (update_current_target): Don't inherit or default
9144 to_can_execute_reverse.
9145 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9146 TARGET_DEFAULT_RETURN.
9147 (target_can_execute_reverse): Unconditionally delegate.
9149 2014-02-19 Tom Tromey <tromey@redhat.com>
9151 * target-delegates.c: Rebuild.
9152 * target.c (update_current_target): Don't inherit or default
9154 (dummy_goto_bookmark): Remove.
9155 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9156 * target.h (struct target_ops) <to_goto_bookmark>: Use
9157 TARGET_DEFAULT_NORETURN.
9159 2014-02-19 Tom Tromey <tromey@redhat.com>
9161 * target-delegates.c: Rebuild.
9162 * target.c (update_current_target): Don't inherit or default
9164 (dummy_get_bookmark): Remove.
9165 (init_dummy_target): Don't inherit or default to_get_bookmark.
9166 * target.h (struct target_ops) <to_get_bookmark>: Use
9167 TARGET_DEFAULT_NORETURN
9169 2014-02-19 Tom Tromey <tromey@redhat.com>
9171 * target-delegates.c: Rebuild.
9172 * target.c (update_current_target): Don't inherit or default
9173 to_make_corefile_notes.
9174 (init_dummy_target): Don't initialize to_make_corefile_notes.
9175 * target.h (struct target_ops) <to_make_corefile_notes>: 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_find_memory_regions.
9183 (init_dummy_target): Don't initialize to_find_memory_regions.
9184 * target.h (struct target_ops) <to_find_memory_regions>: Use
9185 TARGET_DEFAULT_FUNC.
9187 2014-02-19 Tom Tromey <tromey@redhat.com>
9189 * target-delegates.c: Rebuild.
9190 * target.c (update_current_target): Don't inherit or default
9192 * target.h (struct target_ops) <to_log_command>: Use
9193 TARGET_DEFAULT_IGNORE.
9194 (target_log_command): Unconditionally delegate.
9196 2014-02-19 Tom Tromey <tromey@redhat.com>
9198 * target-delegates.c: Rebuild.
9199 * target.c (update_current_target): Don't inherit or default
9200 to_pid_to_exec_file.
9201 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9202 TARGET_DEFAULT_RETURN.
9204 2014-02-19 Tom Tromey <tromey@redhat.com>
9206 * target-delegates.c: Rebuild.
9207 * target.c (update_current_target): Don't inherit or default
9209 (target_thread_name): Unconditionally delegate.
9210 * target.h (struct target_ops) <to_thread_name>: Use
9211 TARGET_DEFAULT_RETURN.
9213 2014-02-19 Tom Tromey <tromey@redhat.com>
9215 * target-delegates.c: Rebuild.
9216 * target.c (update_current_target): Don't inherit or default
9217 to_extra_thread_info.
9218 * target.h (struct target_ops) <to_extra_thread_info>: Use
9219 TARGET_DEFAULT_RETURN.
9221 2014-02-19 Tom Tromey <tromey@redhat.com>
9223 * target-delegates.c: Rebuild.
9224 * target.c (update_current_target): Don't inherit or default
9226 * target.h (struct target_ops) <to_has_exited>: Use
9227 TARGET_DEFAULT_RETURN..
9229 2014-02-19 Tom Tromey <tromey@redhat.com>
9231 * target-delegates.c: Rebuild.
9232 * target.c (update_current_target): Don't inherit or default
9233 to_set_syscall_catchpoint.
9234 (return_one): Remove.
9235 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9236 TARGET_DEFAULT_RETURN.
9238 2014-02-19 Tom Tromey <tromey@redhat.com>
9240 * target-delegates.c: Rebuild.
9241 * target.c (update_current_target): Don't inherit or default
9242 to_insert_exec_catchpoint.
9243 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9244 TARGET_DEFAULT_RETURN.
9246 2014-01-08 Tom Tromey <tromey@redhat.com>
9248 * target-delegates.c: Rebuild.
9249 * target.c (update_current_target): Don't inherit or default
9250 to_insert_exec_catchpoint.
9251 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9252 TARGET_DEFAULT_RETURN.
9254 2014-02-19 Tom Tromey <tromey@redhat.com>
9256 * target-delegates.c: Rebuild.
9257 * target.c (update_current_target): Don't inherit or default
9258 to_remove_vfork_catchpoint.
9259 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9260 TARGET_DEFAULT_RETURN.
9262 2014-02-19 Tom Tromey <tromey@redhat.com>
9264 * target-delegates.c: Rebuild.
9265 * target.c (update_current_target): Don't inherit or default
9266 to_insert_vfork_catchpoint.
9267 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9268 TARGET_DEFAULT_RETURN.
9270 2014-02-19 Tom Tromey <tromey@redhat.com>
9272 * target-delegates.c: Rebuild.
9273 * target.c (update_current_target): Don't inherit or default
9274 to_remove_fork_catchpoint.
9275 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9276 TARGET_DEFAULT_RETURN.
9278 2014-02-19 Tom Tromey <tromey@redhat.com>
9280 * target-delegates.c: Rebuild.
9281 * target.c (update_current_target): Don't inherit or default
9282 to_insert_fork_catchpoint.
9283 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9284 TARGET_DEFAULT_RETURN.
9286 2014-02-19 Tom Tromey <tromey@redhat.com>
9288 * target-delegates.c: Rebuild.
9289 * target.c (update_current_target): Don't inherit or default
9290 to_post_startup_inferior.
9291 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9292 TARGET_DEFAULT_IGNORE.
9294 2014-02-19 Tom Tromey <tromey@redhat.com>
9296 * target-delegates.c: Rebuild.
9297 * target.c (update_current_target): Don't inherit or default
9299 * target.h (struct target_ops) <to_load>: Use
9300 TARGET_DEFAULT_NORETURN.
9302 2014-02-19 Tom Tromey <tromey@redhat.com>
9304 * target-delegates.c: Rebuild.
9305 * target.c (update_current_target): Don't inherit or default
9307 * target.h (struct target_ops) <to_terminal_info>: Use
9308 TARGET_DEFAULT_FUNC.
9310 2014-02-19 Tom Tromey <tromey@redhat.com>
9312 * target-delegates.c: Rebuild.
9313 * target.c (update_current_target): Don't inherit or default
9314 to_terminal_save_ours.
9315 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9316 TARGET_DEFAULT_IGNORE.
9318 2014-02-19 Tom Tromey <tromey@redhat.com>
9320 * target-delegates.c: Rebuild.
9321 * target.c (update_current_target): Don't inherit or default
9323 * target.h (struct target_ops) <to_terminal_ours>: Use
9324 TARGET_DEFAULT_IGNORE.
9326 2014-02-19 Tom Tromey <tromey@redhat.com>
9328 * target-delegates.c: Rebuild.
9329 * target.c (update_current_target): Don't inherit or default
9330 to_terminal_ours_for_output.
9331 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9332 TARGET_DEFAULT_IGNORE.
9334 2014-02-19 Tom Tromey <tromey@redhat.com>
9336 * target-delegates.c: Rebuild.
9337 * target.c (update_current_target): Don't inherit or default
9338 to_terminal_inferior.
9339 * target.h (struct target_ops) <to_terminal_inferior>: Use
9340 TARGET_DEFAULT_IGNORE.
9342 2014-02-19 Tom Tromey <tromey@redhat.com>
9344 * target-delegates.c: Rebuild.
9345 * target.c (update_current_target): Don't inherit or default
9347 * target.h (struct target_ops) <to_terminal_init>: Use
9348 TARGET_DEFAULT_IGNORE.
9350 2014-02-19 Tom Tromey <tromey@redhat.com>
9352 * target-delegates.c: Rebuild.
9353 * target.c (update_current_target): Don't inherit or default
9354 to_can_accel_watchpoint_condition.
9355 * target.h (struct target_ops)
9356 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9358 2014-02-19 Tom Tromey <tromey@redhat.com>
9360 * target-delegates.c: Rebuild.
9361 * target.c (update_current_target): Don't inherit or default
9362 to_region_ok_for_hw_watchpoint.
9363 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9364 Use TARGET_DEFAULT_FUNC.
9366 2014-02-19 Tom Tromey <tromey@redhat.com>
9368 * target-delegates.c: Rebuild.
9369 * target.c (update_current_target): Don't inherit or default
9370 to_watchpoint_addr_within_range.
9371 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9372 Use TARGET_DEFAULT_FUNC.
9374 2014-02-19 Tom Tromey <tromey@redhat.com>
9376 * target-delegates.c: Rebuild.
9377 * target.c (update_current_target): Don't inherit or default
9378 to_remove_watchpoint.
9379 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9380 TARGET_DEFAULT_NORETURN.
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9384 * target-delegates.c: Rebuild.
9385 * target.c (update_current_target): Don't inherit or default
9386 to_insert_watchpoint.
9387 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9388 TARGET_DEFAULT_RETURN.
9390 2014-02-19 Tom Tromey <tromey@redhat.com>
9392 * target-delegates.c: Rebuild.
9393 * target.c (update_current_target): Don't inherit or default
9394 to_remove_hw_breakpoint.
9395 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9396 TARGET_DEFAULT_RETURN.
9398 2014-02-19 Tom Tromey <tromey@redhat.com>
9400 * target-delegates.c: Rebuild.
9401 * target.c (update_current_target): Don't inherit or default
9402 to_insert_hw_breakpoint.
9403 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9404 TARGET_DEFAULT_RETURN.
9406 2014-02-19 Tom Tromey <tromey@redhat.com>
9408 * target-delegates.c: Rebuild.
9409 * target.c (update_current_target): Don't inherit or default
9410 to_can_use_hw_breakpoint.
9411 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9412 TARGET_DEFAULT_RETURN.
9414 2014-02-19 Tom Tromey <tromey@redhat.com>
9416 * target-delegates.c: Rebuild.
9417 * target.c (update_current_target): Don't inherit or default
9419 * target.h (struct target_ops) <to_files_info>: Use
9420 TARGET_DEFAULT_IGNORE.
9422 2014-02-19 Tom Tromey <tromey@redhat.com>
9424 * target-delegates.c: Rebuild.
9425 * target.c (update_current_target): Don't inherit or default
9427 * target.h (struct target_ops) <to_store>: Use
9428 TARGET_DEFAULT_NORETURN.
9430 2014-02-19 Tom Tromey <tromey@redhat.com>
9432 * target-delegates.c: Rebuild.
9433 * target.c (update_current_target): Don't inherit or default
9435 * target.h (struct target_ops) <to_post_attach>: Use
9436 TARGET_DEFAULT_IGNORE.
9438 2014-02-19 Tom Tromey <tromey@redhat.com>
9440 * target-delegates.c: Rebuild.
9441 * target.c (update_current_target): Don't inherit or default
9443 (default_rcmd): New function.
9444 (do_monitor_command): Unconditionally delegate.
9445 * target.h (struct target_ops) <to_rmcd>: Use
9446 TARGET_DEFAULT_FUNC.
9448 2014-02-19 Tom Tromey <tromey@redhat.com>
9450 * target-delegates.c: Rebuild.
9451 * target.c (init_dummy_target): Don't initialize to_attach.
9452 (target_attach): Unconditionally delegate.
9453 * target.h (struct target_ops) <to_attach>: Use
9454 TARGET_DEFAULT_FUNC.
9456 2014-02-19 Tom Tromey <tromey@redhat.com>
9458 * target-delegates.c: Rebuild.
9459 * target.c (target_detach): Unconditionally delegate.
9460 (init_dummy_target): Don't initialize to_detach.
9461 * target.h (struct target_ops) <to_detach>: Use
9462 TARGET_DEFAULT_IGNORE.
9464 2014-02-19 Tom Tromey <tromey@redhat.com>
9466 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9468 (target_augmented_libraries_svr4_read): Add argument.
9469 * target.c (update_current_target): Update.
9470 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9473 2014-02-19 Tom Tromey <tromey@redhat.com>
9475 * target.h (struct target_ops) <to_call_history_range>: Add
9477 * target.c (target_call_history_range): Add argument.
9478 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9480 (record_btrace_call_history_from): Update.
9482 2014-02-19 Tom Tromey <tromey@redhat.com>
9484 * target.h (struct target_ops) <to_call_history_from>: Add
9486 * target.c (target_call_history_from): Add argument.
9487 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9490 2014-02-19 Tom Tromey <tromey@redhat.com>
9492 * target.h (struct target_ops) <to_call_history>: Add argument.
9493 * target.c (target_call_history): Add argument.
9494 * record-btrace.c (record_btrace_call_history): Add 'self'
9497 2014-02-19 Tom Tromey <tromey@redhat.com>
9499 * target.h (struct target_ops) <to_insn_history_range>: Add
9501 * target.c (target_insn_history_range): Add argument.
9502 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9504 (record_btrace_insn_history_from): Update.
9506 2014-02-19 Tom Tromey <tromey@redhat.com>
9508 * target.h (struct target_ops) <to_insn_history_from>: Add
9510 * target.c (target_insn_history_from): Add argument.
9511 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9514 2014-02-19 Tom Tromey <tromey@redhat.com>
9516 * target.h (struct target_ops) <to_insn_history>: Add argument.
9517 * target.c (target_insn_history): Add argument.
9518 * record-btrace.c (record_btrace_insn_history): Add 'self'
9521 2014-02-19 Tom Tromey <tromey@redhat.com>
9523 * target.h (struct target_ops) <to_goto_record>: Add argument.
9524 * target.c (target_goto_record): Add argument.
9525 * record-full.c (record_full_goto): Add 'self' argument.
9526 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9528 2014-02-19 Tom Tromey <tromey@redhat.com>
9530 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9531 * target.c (target_goto_record_end): Add argument.
9532 * record-full.c (record_full_goto_end): Add 'self' argument.
9533 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9535 2014-02-19 Tom Tromey <tromey@redhat.com>
9537 * target.h (struct target_ops) <to_goto_record_begin>: Add
9539 * target.c (target_goto_record_begin): Add argument.
9540 * record-full.c (record_full_goto_begin): Add 'self' argument.
9541 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9544 2014-02-19 Tom Tromey <tromey@redhat.com>
9546 * target.h (struct target_ops) <to_record_is_replaying>: Add
9548 * target.c (target_record_is_replaying): Add argument.
9549 * record-full.c (record_full_is_replaying): Add 'self' argument.
9550 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9552 (record_btrace_xfer_partial, record_btrace_store_registers)
9553 (record_btrace_prepare_to_store, record_btrace_resume)
9554 (record_btrace_wait, record_btrace_decr_pc_after_break)
9555 (record_btrace_find_new_threads, record_btrace_thread_alive):
9558 2014-02-19 Tom Tromey <tromey@redhat.com>
9560 * target.h (struct target_ops) <to_delete_record>: Add argument.
9561 * target.c (target_delete_record): Add argument.
9562 * record-full.c (record_full_delete): Add 'self' argument.
9564 2014-02-19 Tom Tromey <tromey@redhat.com>
9566 * target.h (struct target_ops) <to_save_record>: Add argument.
9567 * target.c (target_save_record): Add argument.
9568 * record-full.c (record_full_save): Add 'self' argument.
9569 (record_full_save): Add 'self' argument.
9571 2014-02-19 Tom Tromey <tromey@redhat.com>
9573 * target.h (struct target_ops) <to_info_record>: Add argument.
9574 * target.c (target_info_record): Add argument.
9575 * record.c (info_record_command): Add argument.
9576 * record-full.c (record_full_info): Add 'self' argument.
9577 * record-btrace.c (record_btrace_info): Add 'self' argument.
9579 2014-02-19 Tom Tromey <tromey@redhat.com>
9581 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9582 * target.c (target_stop_recording): Add argument.
9583 * record.c (record_stop): Add argument.
9584 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9587 2014-02-19 Tom Tromey <tromey@redhat.com>
9589 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9590 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9591 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9593 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9594 (_initialize_amd64_linux_nat): Use it.
9595 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9596 (_initialize_i386_linux_nat): Use it.
9598 2014-02-19 Tom Tromey <tromey@redhat.com>
9600 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9601 * target.c (target_teardown_btrace): Add argument.
9602 * remote.c (remote_teardown_btrace): Add 'self' argument.
9603 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9605 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9608 2014-02-19 Tom Tromey <tromey@redhat.com>
9610 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9611 * target.c (target_disable_btrace): Add argument.
9612 * remote.c (remote_disable_btrace): Add 'self' argument.
9613 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9615 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9618 2014-02-19 Tom Tromey <tromey@redhat.com>
9620 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9621 * target.c (target_enable_btrace): Add argument.
9622 * remote.c (remote_enable_btrace): Add 'self' argument.
9623 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9625 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9628 2014-02-19 Tom Tromey <tromey@redhat.com>
9630 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9631 (target_can_use_agent): Add argument.
9632 * target.c (update_current_target): Update.
9633 * remote.c (remote_can_use_agent): Add 'self' argument.
9634 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9636 2014-02-19 Tom Tromey <tromey@redhat.com>
9638 * target.h (struct target_ops) <to_use_agent>: Add argument.
9639 (target_use_agent): Add argument.
9640 * target.c (update_current_target): Update.
9641 * remote.c (remote_use_agent): Add 'self' argument.
9642 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9644 2014-02-19 Tom Tromey <tromey@redhat.com>
9646 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9647 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9648 (target_traceframe_info): Add argument.
9649 * target.c (update_current_target): Update.
9650 * remote.c (remote_traceframe_info): Add 'self' argument.
9651 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9653 2014-02-19 Tom Tromey <tromey@redhat.com>
9655 * target.h (target_static_tracepoint_markers_by_strid): Add
9657 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9659 * target.c (update_current_target): Update.
9660 * remote.c (struct target_ops)
9661 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9662 * linux-nat.c (struct target_ops)
9663 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9665 2014-02-19 Tom Tromey <tromey@redhat.com>
9667 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9669 (target_static_tracepoint_marker_at): Add argument.
9670 * target.c (update_current_target): Update.
9671 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9674 2014-02-19 Tom Tromey <tromey@redhat.com>
9676 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9677 (target_set_permissions): Add argument.
9678 * target.c (update_current_target): Update.
9679 * remote.c (remote_set_permissions): Add 'self' argument.
9680 (remote_start_remote): Update.
9682 2014-02-19 Tom Tromey <tromey@redhat.com>
9684 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9685 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9686 (target_get_tib_address): Add argument.
9687 * target.c (update_current_target): Update.
9688 * remote.c (remote_get_tib_address): Add 'self' argument.
9690 2014-02-19 Tom Tromey <tromey@redhat.com>
9692 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9693 (target_set_trace_notes): Add argument.
9694 * target.c (update_current_target): Update.
9695 * remote.c (remote_set_trace_notes): Add 'self' argument.
9697 2014-02-19 Tom Tromey <tromey@redhat.com>
9699 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9701 (target_set_trace_buffer_size): Add argument.
9702 * target.c (update_current_target): Update.
9703 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9705 2014-02-19 Tom Tromey <tromey@redhat.com>
9707 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9709 (target_set_circular_trace_buffer): Add argument.
9710 * target.c (update_current_target): Update.
9711 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9714 2014-02-19 Tom Tromey <tromey@redhat.com>
9716 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9718 (target_set_disconnected_tracing): Add argument.
9719 * target.c (update_current_target): Update.
9720 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9722 2014-02-19 Tom Tromey <tromey@redhat.com>
9724 * target.h (struct target_ops)
9725 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9726 (target_get_min_fast_tracepoint_insn_len): Add argument.
9727 * target.c (update_current_target): Update.
9728 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9731 2014-02-19 Tom Tromey <tromey@redhat.com>
9733 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9735 (target_get_raw_trace_data): Add argument.
9736 * target.c (update_current_target): Update.
9737 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9739 2014-02-19 Tom Tromey <tromey@redhat.com>
9741 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9743 (target_upload_trace_state_variables): Add argument.
9744 * target.c (update_current_target): Update.
9745 * remote.c (remote_upload_trace_state_variables): Add 'self'
9747 (remote_start_remote): Update.
9749 2014-02-19 Tom Tromey <tromey@redhat.com>
9751 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9753 (target_upload_tracepoints): Add argument.
9754 * target.c (update_current_target): Update.
9755 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9756 (remote_start_remote): Update.
9758 2014-02-19 Tom Tromey <tromey@redhat.com>
9760 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9761 (target_save_trace_data): Add argument.
9762 * target.c (update_current_target): Update.
9763 * remote.c (remote_save_trace_data): Add 'self' argument.
9765 2014-02-19 Tom Tromey <tromey@redhat.com>
9767 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9769 * target.h (struct target_ops)
9770 <to_get_trace_state_variable_value>: Add argument.
9771 (target_get_trace_state_variable_value): Add argument.
9772 * target.c (update_current_target): Update.
9773 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9775 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9777 2014-02-19 Tom Tromey <tromey@redhat.com>
9779 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9780 * target.h (struct target_ops) <to_trace_find>: Add argument.
9781 (target_trace_find): Add argument.
9782 * target.c (update_current_target): Update.
9783 * remote.c (remote_trace_find): Add 'self' argument.
9784 * ctf.c (ctf_trace_find): Add 'self' argument.
9786 2014-02-19 Tom Tromey <tromey@redhat.com>
9788 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9789 (target_trace_stop): Add argument.
9790 * target.c (update_current_target): Update.
9791 * remote.c (remote_trace_stop): Add 'self' argument.
9793 2014-02-19 Tom Tromey <tromey@redhat.com>
9795 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9796 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9798 (target_get_tracepoint_status): Add argument.
9799 * target.c (update_current_target): Update.
9800 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9802 2014-02-19 Tom Tromey <tromey@redhat.com>
9804 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9805 * target.h (struct target_ops) <to_get_trace_status>: Add
9807 (target_get_trace_status): Add argument.
9808 * target.c (update_current_target): Update.
9809 * remote.c (remote_get_trace_status): Add 'self' argument.
9810 (remote_start_remote, remote_can_download_tracepoint): Update.
9811 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9813 2014-02-19 Tom Tromey <tromey@redhat.com>
9815 * target.h (struct target_ops) <to_trace_start>: Add argument.
9816 (target_trace_start): Add argument.
9817 * target.c (update_current_target): Update.
9818 * remote.c (remote_trace_start): Add 'self' argument.
9820 2014-02-19 Tom Tromey <tromey@redhat.com>
9822 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9824 (target_trace_set_readonly_regions): Add argument.
9825 * target.c (update_current_target): Update.
9826 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9829 2014-02-19 Tom Tromey <tromey@redhat.com>
9831 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9833 (target_disable_tracepoint): Add argument.
9834 * target.c (update_current_target): Update.
9835 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9837 2014-02-19 Tom Tromey <tromey@redhat.com>
9839 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9841 (target_enable_tracepoint): Add argument.
9842 * target.c (update_current_target): Update.
9843 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9845 2014-02-19 Tom Tromey <tromey@redhat.com>
9847 * target.h (struct target_ops) <to_download_trace_state_variable>:
9849 (target_download_trace_state_variable): Add argument.
9850 * target.c (update_current_target): Update.
9851 * remote.c (remote_download_trace_state_variable): Add 'self'
9854 2014-02-19 Tom Tromey <tromey@redhat.com>
9856 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9858 (target_can_download_tracepoint): Add argument.
9859 * target.c (update_current_target): Update.
9860 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9862 2014-02-19 Tom Tromey <tromey@redhat.com>
9864 * target.h (struct target_ops) <to_download_tracepoint>: Add
9866 (target_download_tracepoint): Add argument.
9867 * target.c (update_current_target): Update.
9868 * remote.c (remote_download_tracepoint): Add 'self' argument.
9870 2014-02-19 Tom Tromey <tromey@redhat.com>
9872 * target.h (struct target_ops) <to_trace_init>: Add argument.
9873 (target_trace_init): Add argument.
9874 * target.c (update_current_target): Update.
9875 * remote.c (remote_trace_init): Add 'self' argument.
9877 2014-02-19 Tom Tromey <tromey@redhat.com>
9879 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9880 * target.c (target_fileio_readlink): Add argument.
9881 * remote.c (remote_hostio_readlink): Add 'self' argument.
9882 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9884 2014-02-19 Tom Tromey <tromey@redhat.com>
9886 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9887 * target.c (target_fileio_unlink): Add argument.
9888 * remote.c (remote_hostio_unlink): Add 'self' argument.
9889 (remote_file_delete): Update.
9890 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9892 2014-02-19 Tom Tromey <tromey@redhat.com>
9894 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9895 * target.c (target_fileio_close): Add argument.
9896 * remote.c (remote_hostio_close): Add 'self' argument.
9897 (remote_hostio_close_cleanup): Update.
9898 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9900 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9902 2014-02-19 Tom Tromey <tromey@redhat.com>
9904 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9905 * target.c (target_fileio_pread): Add argument.
9906 * remote.c (remote_hostio_pread): Add 'self' argument.
9907 (remote_bfd_iovec_pread, remote_file_get): Update.
9908 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9910 2014-02-19 Tom Tromey <tromey@redhat.com>
9912 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9913 * target.c (target_fileio_pwrite): Add argument.
9914 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9915 (remote_file_put): Update.
9916 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9918 2014-02-19 Tom Tromey <tromey@redhat.com>
9920 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9921 * target.c (target_fileio_open): Add argument.
9922 * remote.c (remote_hostio_open): Add 'self' argument.
9923 (remote_bfd_iovec_open): Add 'self' argument.
9924 (remote_file_put): Add 'self' argument.
9925 (remote_file_get): Add 'self' argument.
9926 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9928 2014-02-19 Tom Tromey <tromey@redhat.com>
9930 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9932 (target_can_run_breakpoint_commands): Add argument.
9933 * target.c (update_current_target): Update.
9934 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9936 (remote_insert_breakpoint): Add 'self' argument.
9937 (remote_insert_hw_breakpoint): Add 'self' argument.
9938 (remote_can_run_breakpoint_commands): Add 'self' argument.
9940 2014-02-19 Tom Tromey <tromey@redhat.com>
9942 * target.h (struct target_ops)
9943 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9944 (target_supports_evaluation_of_breakpoint_conditions): Add
9946 * target.c (update_current_target): Update.
9947 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9949 (remote_insert_breakpoint): Add 'self' argument.
9950 (remote_insert_hw_breakpoint): Add 'self' argument.
9951 (remote_supports_cond_breakpoints): Add 'self' argument.
9953 2014-02-19 Tom Tromey <tromey@redhat.com>
9955 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9957 (target_supports_string_tracing): Add argument.
9958 * target.c (update_current_target): Update.
9959 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9961 2014-02-19 Tom Tromey <tromey@redhat.com>
9963 * target.h (struct target_ops)
9964 <to_supports_disable_randomization>: Add argument.
9965 * target.c (find_default_supports_disable_randomization): Add
9967 (target_supports_disable_randomization): Add argument.
9968 (find_default_supports_disable_randomization): Add 'self'
9970 * remote.c (extended_remote_supports_disable_randomization): Add
9972 (remote_supports_disable_randomization): Add 'self' argument.
9973 (extended_remote_create_inferior): Update.
9974 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9977 2014-02-19 Tom Tromey <tromey@redhat.com>
9979 * target.h (struct target_ops)
9980 <to_supports_enable_disable_tracepoint>: Add argument.
9981 (target_supports_enable_disable_tracepoint): Add argument.
9982 * target.c (update_current_target): Update.
9983 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9986 2014-02-19 Tom Tromey <tromey@redhat.com>
9988 * target.h (struct target_ops) <to_supports_multi_process>: Add
9990 (target_supports_multi_process): Add argument.
9991 * target.c (update_current_target): Update.
9992 * remote.c (remote_supports_multi_process): Add 'self' argument.
9993 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9995 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9998 2014-02-19 Tom Tromey <tromey@redhat.com>
10000 * target.h (struct target_ops) <to_execution_direction>: Add
10002 (target_execution_direction): Add argument.
10003 * target.c (default_execution_direction): Add 'self' argument.
10004 * record-full.c (record_full_execution_direction): Add 'self'
10007 2014-02-19 Tom Tromey <tromey@redhat.com>
10009 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10011 (target_can_execute_reverse): Add argument.
10012 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10013 * record-full.c (record_full_can_execute_reverse): Add 'self'
10015 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10018 2014-02-19 Tom Tromey <tromey@redhat.com>
10020 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10021 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10023 (target_get_ada_task_ptid): Add argument.
10024 * target.c (update_current_target): Update.
10025 (default_get_ada_task_ptid): Add 'self' argument.
10026 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10027 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10028 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10030 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10032 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10034 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10036 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10037 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10040 2014-02-19 Tom Tromey <tromey@redhat.com>
10042 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10043 (target_goto_bookmark): Add argument.
10044 * target.c (dummy_goto_bookmark): Add 'self' argument.
10045 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10047 2014-02-19 Tom Tromey <tromey@redhat.com>
10049 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10050 (target_get_bookmark): Add argument.
10051 * target.c (dummy_get_bookmark): Add 'self' argument.
10052 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10054 2014-02-19 Tom Tromey <tromey@redhat.com>
10056 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10058 (target_make_corefile_notes): Add argument.
10059 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10060 * procfs.c (procfs_make_note_section): Add 'self' argument.
10061 (procfs_make_note_section): Add 'self' argument.
10062 (procfs_make_note_section): Add 'self' argument.
10063 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10065 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10066 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10067 * exec.c (exec_make_note_section): Add 'self' argument.
10068 (exec_make_note_section): Add 'self' argument.
10070 2014-02-19 Tom Tromey <tromey@redhat.com>
10072 * target.h (struct target_ops) <to_find_memory_regions>: Add
10074 (target_find_memory_regions): Add argument.
10075 * target.c (dummy_find_memory_regions): Add 'self' argument.
10076 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10077 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10078 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10079 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10080 * exec. (exec_do_find_memory_regions): New global.
10081 (exec_set_find_memory_regions): Rewrite.
10082 (exec_find_memory_regions): New function.
10083 (init_exec_ops): Use exec_find_memory_regions.
10085 2014-02-19 Tom Tromey <tromey@redhat.com>
10087 * target.h (struct target_ops) <to_supports_non_stop>: Add
10089 * target.c (find_default_supports_non_stop): Add argument.
10090 (target_supports_non_stop): Add argument.
10091 (find_default_supports_non_stop): Add 'self' argument.
10092 * remote.c (remote_supports_non_stop): Add 'self' argument.
10093 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10095 2014-02-19 Tom Tromey <tromey@redhat.com>
10097 * target.h (struct target_ops) <to_log_command>: Add argument.
10098 (target_log_command): Add argument.
10099 * serial.h (serial_log_command): Add 'self' argument.
10100 * serial.c (serial_log_command): Add 'self' argument.
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10104 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10105 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10107 (target_pid_to_exec_file): Add argument.
10108 * target.c (debug_to_pid_to_exec_file): Add argument.
10109 (update_current_target): Update.
10110 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10111 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10112 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10113 (linux_handle_extended_wait): Update.
10114 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10115 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10116 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10117 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10119 2014-02-19 Tom Tromey <tromey@redhat.com>
10121 * target.h (struct target_ops) <to_rcmd>: Add argument.
10122 (target_rcmd): Add argument.
10123 * target.c (debug_to_rcmd): Add argument.
10124 (update_current_target, do_monitor_command): Update.
10125 * remote.c (remote_rcmd): Add 'self' argument.
10126 * monitor.c (monitor_rcmd): Add 'self' argument.
10128 2014-02-19 Tom Tromey <tromey@redhat.com>
10130 * windows-nat.c (windows_stop): Add 'self' argument.
10131 * target.h (struct target_ops) <to_stop>: Add argument.
10132 * target.c (target_stop): Add argument.
10133 (debug_to_stop): Add argument.
10134 (update_current_target): Update.
10135 * remote.c (remote_stop): Add 'self' argument.
10136 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10137 (gdbsim_cntrl_c): Update.
10138 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10139 * procfs.c (procfs_stop): Add 'self' argument.
10140 * nto-procfs.c (procfs_stop): Add 'self' argument.
10141 * monitor.c (monitor_stop): Add 'self' argument.
10142 (monitor_open): Update.
10143 * linux-nat.c (linux_nat_stop): Add argument.
10144 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10145 * gnu-nat.c (gnu_stop): Add 'self' argument.
10146 * darwin-nat.c (darwin_stop): Add 'self' argument.
10148 2014-02-19 Tom Tromey <tromey@redhat.com>
10150 * target.h (struct target_ops) <to_thread_name>: Add argument.
10151 * target.c (target_thread_name): Add argument.
10152 (update_current_target): Update.
10153 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10155 2014-02-19 Tom Tromey <tromey@redhat.com>
10157 * target.h (struct target_ops) <to_extra_thread_info>: Add
10159 (target_extra_thread_info): Add argument.
10160 * target.c (update_current_target): Update.
10161 * remote.c (remote_threads_extra_info): Add 'self' argument.
10162 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10164 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10165 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10166 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10168 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10170 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10172 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10175 2014-02-19 Tom Tromey <tromey@redhat.com>
10177 * target.h (struct target_ops) <to_program_signals>: Add argument.
10178 * target.c (target_program_signals): Add argument.
10179 * remote.c (remote_program_signals): Add 'self' argument.
10181 2014-02-19 Tom Tromey <tromey@redhat.com>
10183 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10184 * target.c (target_pass_signals): Add argument.
10185 * remote.c (remote_pass_signals): Add 'self' argument.
10186 (remote_start_remote): Update.
10187 * procfs.c (procfs_pass_signals): Add 'self' argument.
10188 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10189 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10190 (linux_nat_create_inferior, linux_nat_attach): Update.
10192 2014-02-19 Tom Tromey <tromey@redhat.com>
10194 * windows-nat.c (windows_can_run): Add 'self' argument.
10195 * target.h (struct target_ops) <to_can_run>: Add argument.
10196 (target_can_run): Add argument.
10197 * target.c (debug_to_can_run): Add argument.
10198 (update_current_target): Update.
10199 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10200 * inf-child.c (inf_child_can_run): Add 'self' argument.
10201 * go32-nat.c (go32_can_run): Add 'self' argument.
10203 2014-02-19 Tom Tromey <tromey@redhat.com>
10205 * target.h (struct target_ops) <to_has_exited>: Add argument.
10206 (target_has_exited): Add argument.
10207 * target.c (debug_to_has_exited): Add argument.
10208 (update_current_target): Update.
10210 2014-02-19 Tom Tromey <tromey@redhat.com>
10212 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10214 (target_set_syscall_catchpoint): Add argument.
10215 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10217 * target.c (update_current_target): Update.
10219 2014-02-19 Tom Tromey <tromey@redhat.com>
10221 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10223 (target_remove_exec_catchpoint): Add argument.
10224 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10225 (update_current_target): Update.
10226 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10229 2014-02-19 Tom Tromey <tromey@redhat.com>
10231 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10233 (target_insert_exec_catchpoint): Add argument.
10234 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10235 (update_current_target): Update.
10236 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10239 2014-02-19 Tom Tromey <tromey@redhat.com>
10241 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10243 (target_remove_vfork_catchpoint): Add argument.
10244 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10245 (update_current_target): Update.
10246 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10249 2014-02-19 Tom Tromey <tromey@redhat.com>
10251 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10253 (target_insert_vfork_catchpoint): Add argument.
10254 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10255 (update_current_target): Update.
10256 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10259 2014-02-19 Tom Tromey <tromey@redhat.com>
10261 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10263 (target_remove_fork_catchpoint): Add argument.
10264 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10265 (update_current_target): Update.
10266 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10269 2014-02-19 Tom Tromey <tromey@redhat.com>
10271 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10273 (target_insert_fork_catchpoint): Add argument.
10274 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10275 (update_current_target): Update.
10276 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10279 2014-02-19 Tom Tromey <tromey@redhat.com>
10281 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10283 (target_post_startup_inferior): Add argument.
10284 * target.c (debug_to_post_startup_inferior): Add argument.
10285 (update_current_target): Update.
10286 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10288 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10290 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10292 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10294 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10296 (super_post_startup_inferior): Likewise.
10297 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10299 (super_post_startup_inferior): Likewise.
10300 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10301 Add 'self' argument.
10302 (super_post_startup_inferior): Likewise.
10304 2014-02-19 Tom Tromey <tromey@redhat.com>
10306 * target.h (struct target_ops) <to_load>: Add argument.
10307 * target.c (target_load): Add argument.
10308 (debug_to_load): Add argument.
10309 (update_current_target): Update.
10310 * remote.c (remote_load): Add 'self' argument.
10311 * remote-sim.c (gdbsim_load): Add 'self' argument.
10312 * remote-mips.c (mips_load): Add 'self' argument.
10313 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10314 * monitor.c (monitor_load): Add 'self' argument.
10315 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10317 2014-02-19 Tom Tromey <tromey@redhat.com>
10319 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10320 (target_terminal_info): Add argument.
10321 * target.c (debug_to_terminal_info): Add argument.
10322 (default_terminal_info): Likewise.
10323 * inflow.c (child_terminal_info): Add 'self' argument.
10324 * inferior.h (child_terminal_info): Add 'self' argument.
10325 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10327 2014-02-19 Tom Tromey <tromey@redhat.com>
10329 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10331 (target_terminal_save_ours): Add argument.
10332 * target.c (debug_to_terminal_save_ours): Add argument.
10333 (update_current_target): Update.
10334 * inflow.c (terminal_save_ours): Add 'self' argument.
10335 * inferior.h (terminal_save_ours): Add 'self' argument.
10337 2014-02-19 Tom Tromey <tromey@redhat.com>
10339 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10340 (target_terminal_ours): Add argument.
10341 * target.c (debug_to_terminal_ours): Add argument.
10342 (update_current_target): Update.
10343 * remote.c (remote_terminal_ours): Add 'self' argument.
10344 (remote_close): Update.
10345 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10346 * inflow.c (terminal_ours): Add 'self' argument.
10347 * inferior.h (terminal_ours): Add 'self' argument.
10348 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10350 2014-02-19 Pedro Alves <palves@redhat.com>
10351 Tom Tromey <tromey@redhat.com>
10353 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10355 (target_terminal_ours_for_output): Add argument.
10356 * target.c (debug_to_terminal_ours_for_output): Add argument.
10357 (update_current_target): Update.
10358 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10359 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10360 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10362 2014-02-19 Tom Tromey <tromey@redhat.com>
10364 * target.h (struct target_ops) <to_terminal_inferior>: Add
10366 * target.c (target_terminal_inferior): Add argument.
10367 (update_current_target): Update.
10368 * remote.c (remote_terminal_inferior): Add 'self' argument.
10369 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10370 * inflow.c (terminal_inferior): Add 'self' argument.
10371 * inferior.h (terminal_inferior): Add 'self' argument.
10372 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10373 (go32_terminal_inferior): Add 'self' argument.
10375 2014-02-19 Tom Tromey <tromey@redhat.com>
10377 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10378 (target_terminal_init): Add argument.
10379 * target.c (debug_to_terminal_init): Add argument.
10380 (update_current_target): Update.
10381 * inflow.c (terminal_init_inferior): Add 'self' argument.
10382 * inferior.h (terminal_init_inferior): Add 'self' argument.
10383 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10384 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10386 2014-02-19 Tom Tromey <tromey@redhat.com>
10388 * target.h (struct target_ops)
10389 <to_can_accel_watchpoint_condition>: Add argument.
10390 (target_can_accel_watchpoint_condition): Add argument.
10391 * target.c (debug_to_can_accel_watchpoint_condition): Add
10393 (update_current_target): Update.
10394 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10397 2014-02-19 Tom Tromey <tromey@redhat.com>
10399 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10401 (target_region_ok_for_hw_watchpoint): Add argument.
10402 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10403 (default_region_ok_for_hw_watchpoint): Add argument.
10404 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10405 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10407 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10409 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10411 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10413 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10415 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10417 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10418 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10420 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10421 Add 'self' argument.
10423 2014-02-19 Tom Tromey <tromey@redhat.com>
10425 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10427 (target_insert_watchpoint): Add argument.
10428 * target.c (debug_to_insert_watchpoint): Add argument.
10429 (update_current_target): Update.
10430 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10431 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10432 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10433 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10434 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10435 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10437 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10438 (procfs_insert_hw_watchpoint): Add 'self' argument.
10439 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10441 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10443 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10445 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10446 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10448 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10451 2014-02-19 Tom Tromey <tromey@redhat.com>
10453 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10455 (target_remove_watchpoint): Add argument.
10456 * target.c (debug_to_remove_watchpoint): Add argument.
10457 (update_current_target): Update.
10458 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10459 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10460 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10461 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10462 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10463 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10465 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10466 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10468 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10470 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10472 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10473 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10475 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10478 2014-02-19 Tom Tromey <tromey@redhat.com>
10480 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10482 (target_remove_hw_breakpoint): Add argument.
10483 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10484 (update_current_target): Update.
10485 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10486 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10488 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10489 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10491 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10494 2014-02-19 Tom Tromey <tromey@redhat.com>
10496 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10498 (target_insert_hw_breakpoint): Add argument.
10499 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10500 (update_current_target): Update.
10501 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10502 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10504 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10505 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10506 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10508 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10511 2014-02-19 Tom Tromey <tromey@redhat.com>
10513 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10515 (target_can_use_hardware_watchpoint): Add argument.
10516 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10517 (update_current_target): Update.
10518 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10520 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10522 * remote.c (remote_check_watch_resources): Add 'self' argument.
10523 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10524 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10526 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10527 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10529 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10531 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10533 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10535 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10537 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10539 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10540 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10542 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10545 2014-02-19 Tom Tromey <tromey@redhat.com>
10547 * target.h (struct target_ops) <to_post_attach>: Add argument.
10548 (target_post_attach): Add argument.
10549 * target.c (debug_to_post_attach): Add argument.
10550 (update_current_target): Update.
10551 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10552 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10553 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10554 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10555 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10557 2014-02-19 Tom Tromey <tromey@redhat.com>
10559 * windows-nat.c (windows_close): Add 'self' argument.
10560 * tracepoint.c (tfile_close): Add 'self' argument.
10561 * target.h (struct target_ops) <to_close>: Add argument.
10562 * target.c (target_close): Add argument.
10563 (update_current_target): Update.
10564 * remote.c (remote_close): Add 'self' argument.
10565 * remote-sim.c (gdbsim_close): Add 'self' argument.
10566 * remote-mips.c (mips_close): Add 'self' argument.
10567 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10568 * record-full.c (record_full_close): Add 'self' argument.
10569 * record-btrace.c (record_btrace_close): Add 'self' argument.
10570 * monitor.h (monitor_close): Add 'self' argument.
10571 * monitor.c (monitor_close): Add 'self' argument.
10572 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10573 * linux-nat.c (linux_nat_close): Add argument.
10574 * go32-nat.c (go32_close): Add 'self' argument.
10575 * exec.c (exec_close_1): Add 'self' argument.
10576 * ctf.c (ctf_close): Add 'self' argument.
10577 * corelow.c (core_close): Add 'self' argument.
10578 (core_close_cleanup): Update.
10579 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10580 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10582 2014-02-19 Tom Tromey <tromey@redhat.com>
10584 * remote.c (remote_load): New function.
10585 (init_remote_ops): Use it.
10587 2014-02-19 Tom Tromey <tromey@redhat.com>
10589 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10591 * common/linux-btrace.h (linux_supports_btrace): Update.
10592 * remote.c (remote_supports_btrace): Add "self" argument.
10593 * target-delegates.c: Rebuild.
10594 * target.c (target_supports_btrace): Remove.
10595 * target.h (struct target_ops) <to_supports_btrace>: Add
10596 target_ops argument.
10597 (target_supports_btrace): New define.
10599 2014-02-19 Tom Tromey <tromey@redhat.com>
10601 * record-full.c (record_full_beneath_to_resume_ops)
10602 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10603 (record_full_beneath_to_wait)
10604 (record_full_beneath_to_store_registers_ops)
10605 (record_full_beneath_to_store_registers)
10606 (record_full_beneath_to_xfer_partial_ops)
10607 (record_full_beneath_to_xfer_partial)
10608 (record_full_beneath_to_insert_breakpoint_ops)
10609 (record_full_beneath_to_insert_breakpoint)
10610 (record_full_beneath_to_remove_breakpoint_ops)
10611 (record_full_beneath_to_remove_breakpoint)
10612 (record_full_beneath_to_stopped_by_watchpoint)
10613 (record_full_beneath_to_stopped_data_address)
10614 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10615 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10616 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10617 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10618 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10619 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10620 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10621 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10622 (record_full_resume, record_full_wait_1)
10623 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10624 (record_full_store_registers, record_full_xfer_partial)
10625 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10626 (record_full_async, record_full_core_xfer_partial): Use target
10628 * target-delegates.c: Rebuild.
10629 * target.c (current_xfer_partial): Remove.
10630 (update_current_target): Do not INHERIT or de_fault
10631 to_insert_breakpoint, to_remove_breakpoint,
10632 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10633 to_is_async_p, to_async. Do not set to_xfer_partial field.
10634 (default_xfer_partial): Simplify.
10635 (current_xfer_partial): Remove.
10636 (target_wait, target_resume): Simplify.
10637 (find_default_can_async_p, find_default_is_async_p): Update.
10638 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10639 to_xfer_partial, to_stopped_by_watchpoint,
10640 to_stopped_data_address.
10641 (target_store_registers): Simplify.
10642 (forward_target_remove_breakpoint)
10643 (forward_target_insert_breakpoint): Remove.
10644 (target_remove_breakpoint, target_insert_breakpoint)
10645 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10646 * target.h (struct target_ops) <to_resume, to_wait,
10647 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10648 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10649 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10651 (forward_target_remove_breakpoint)
10652 (forward_target_insert_breakpoint): Remove.
10653 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10655 (record_btrace_insert_breakpoint): Delegate directly.
10657 2014-02-19 Tom Tromey <tromey@redhat.com>
10660 * target-delegates.c: New file.
10661 * target.c: Include target-delegates.c.
10662 (init_dummy_target): Call install_dummy_methods.
10663 (complete_target_initialization): Call install_delegators.
10664 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10665 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10666 * make-target-delegates: New file.
10668 2014-02-19 Tom Tromey <tromey@redhat.com>
10670 * record.c (find_record_target): Use find_target_at.
10671 * target.c (find_target_at): New function.
10672 * target.h (find_target_at): Declare.
10674 2014-02-19 Tom Tromey <tromey@redhat.com>
10676 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10677 Add 'ops' argument.
10678 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10680 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10681 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10683 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10685 * linux-nat.c (save_sigtrap): Update.
10686 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10687 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10688 (linux_nat_close): Update.
10689 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10691 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10693 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10694 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10695 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10696 (tmp_to_async): Add 'ops' argument.
10697 (record_full_stopped_by_watchpoint, record_full_async)
10698 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10700 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10701 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10702 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10703 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10704 (remote_is_async_p, remote_async): Add 'ops' argument.
10705 (remote_stopped_data_address): Update.
10706 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10707 * target.c (update_current_target)
10708 (find_default_can_async_p, find_default_is_async_p): Update.
10709 (init_dummy_target): Update.
10710 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10711 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10712 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10713 (target_can_async_p, target_is_async_p, target_async)
10714 (target_stopped_by_watchpoint): Update.
10716 2014-02-19 Yao Qi <yao@codesourcery.com>
10719 * gdbarch.sh: Remove startup_gdbarch.
10720 * gdbarch.c: Regenerated.
10721 * gdbarch.h: Likewise.
10723 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10725 * rl78-tdep.c (rl78_g10_register_name): New function.
10726 (rl78_return_value): Add g10 support.
10727 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10730 2014-02-17 Doug Evans <xdje42@gmail.com>
10732 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10733 (SUBDIR_GUILE_SRCS): Ditto.
10734 (scm-gsmob.o): Ditto.
10736 2014-02-17 Yao Qi <yao@codesourcery.com>
10738 * gnu-nat.c (ILL_RPC): Declare defined function.
10740 2014-02-17 Yao Qi <yao@codesourcery.com>
10742 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10743 mach_msg_type_number_t.
10744 (gnu_write_inferior): Likewise.
10746 2014-02-17 Yao Qi <yao@codesourcery.com>
10748 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10750 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10751 (inf_validate_procs, inf_signal): Likewise.
10752 (S_exception_raise_request): Likewise.
10753 (do_mach_notify_dead_name): Likewise.
10754 (steal_exc_port): Likewise.
10755 (gnu_read_inferior): Change 'copy_count''s type to
10756 mach_msg_type_number_t.
10757 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10760 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10762 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10763 flag. Adjust all users; in particular...
10764 (gnu_wait): ..., don't decrement its value in here...
10765 (gnu_create_inferior): ..., and instead set the flag in here,
10766 around the startup_inferior call, and call that one with
10767 START_INFERIOR_TRAPS_EXPECTED.
10769 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10770 (ILL_RPC): ... new macro.
10771 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10772 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10773 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10774 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10775 functions with ILL_RPC macro.
10776 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10777 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10778 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10779 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10780 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10781 (S_proc_getlogin_reply, S_proc_getsid_reply)
10782 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10783 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10784 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10785 (S_proc_getnports_reply, S_proc_is_important_reply)
10786 (S_proc_get_code_reply): New stub functions, generated with
10789 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10790 collected the type check structures.
10792 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10794 2014-02-14 Doug Evans <dje@google.com>
10796 * target.c (target_write_partial): Fix result type.
10798 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10800 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10801 the proper offsets to access fpregset_t.
10803 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10805 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10806 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10807 * h8300-tdep.c (setmachinelist): Remove global.
10808 * hppa-tdep.c (hppa_sigtramp): Remove global.
10809 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10810 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10811 * ravenscar-thread.c (update_target_observer): Remove global.
10812 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10814 2014-02-12 Tom Tromey <tromey@redhat.com>
10816 * common/rsp-low.c: Update comments.
10817 * common/rsp-low.h: Update comments.
10819 2014-02-12 Tom Tromey <tromey@redhat.com>
10821 * common/rsp-low.c (convert_ascii_to_int): Remove.
10822 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10824 2014-02-12 Tom Tromey <tromey@redhat.com>
10826 * common/rsp-low.h (unhexify): Don't declare.
10827 * common/rsp-low.c (unhexify): Remove.
10829 2014-02-12 Tom Tromey <tromey@redhat.com>
10831 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10832 * common/rsp-low.c (convert_int_to_ascii): Remove.
10834 2014-02-12 Tom Tromey <tromey@redhat.com>
10836 * common/rsp-low.h (hexify): Don't declare.
10837 * common/rsp-low.c (hexify): Remove.
10839 2014-02-12 Tom Tromey <tromey@redhat.com>
10841 * common/rsp-low.c (hexify): Never take strlen of argument.
10843 2014-02-12 Tom Tromey <tromey@redhat.com>
10845 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10846 * remote.c (extended_remote_run, remote_rcmd)
10847 (remote_download_trace_state_variable, remote_save_trace_data)
10848 (remote_set_trace_notes): Update.
10849 * tracepoint.c (encode_source_string, tfile_write_status)
10850 (tfile_write_uploaded_tsv): Update.
10852 2014-02-12 Tom Tromey <tromey@redhat.com>
10854 * tracepoint.c: Include rsp-low.h.
10855 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10856 * remote.c: Include rsp-low.h.
10857 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10858 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10859 (remote_unescape_input): Move to common/rsp-low.c.
10860 * common/rsp-low.h: New file.
10861 * common/rsp-low.c: New file.
10862 * Makefile.in (SFILES): Add common/rsp-low.c.
10863 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10864 (COMMON_OBS): Add rsp-low.o.
10865 (rsp-low.o): New target.
10867 2014-02-12 Tom Tromey <tromey@redhat.com>
10869 * utils.h: Include print-utils.h.
10870 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10871 (int_string, core_addr_to_string, core_addr_to_string_nz)
10872 (hex_string, hex_string_custom): Don't declare.
10873 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10874 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10875 (hex_string_custom, int_string, core_addr_to_string)
10876 (core_addr_to_string_nz, host_address_to_string): Move to
10877 common/print-utils.c.
10878 * common/print-utils.h: New file.
10879 * common/print-utils.c: New file
10880 * Makefile.in (SFILES): Add common/print-utils.c.
10881 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10882 (COMMON_OBS): Add print-utils.o.
10883 (print-utils.o): New target.
10885 2014-02-12 Tom Tromey <tromey@redhat.com>
10887 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10889 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10891 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10893 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10895 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10896 if a PT_IO ptrace request returns sucessfully but indicates that 0
10897 bytes were transferred.
10899 2014-02-12 Pedro Alves <palves@redhat.com>
10900 Kevin Buettner <kevinb@redhat.com>
10902 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10903 TYPE_INSTANCE_FLAG_CODE_SPACE.
10905 2014-02-12 Pedro Alves <palves@redhat.com>
10907 * h8300-tdep.c (pseudo_from_raw_register)
10908 (raw_from_pseudo_register): New functions.
10909 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10912 2014-02-12 Pedro Alves <palves@redhat.com>
10914 * h8300-tdep.c (h8300_register_sim_regno): New function.
10915 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10916 gdbarch_register_sim_regno hook.
10918 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10920 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10922 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10924 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10926 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10928 * obsd-tdep.h (obsd_init_abi): New prototype.
10929 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10930 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10931 (obsd_init_abi): New functions.
10932 * i386obsd-tdep.c: Include "obsd-tdep.h".
10933 (i386obsd_init_abi): Call obsd_init_abi.
10934 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10935 (amd64obsd_init_abi): Call obsd_init_abi.
10936 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10937 obsd-tdep.c to gdb_target_obs.
10939 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10941 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10942 double float arguments to 16-byte in the argument slots.
10944 2014-02-11 Doug Evans <xdje42@gmail.com>
10946 * configure.ac: Don't crash if pkg-config is not found and guile
10947 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10949 * configure: Regenerate.
10951 2014-02-11 Yao Qi <yao@codesourcery.com>
10953 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10954 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10955 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10956 * gnu-nat.c (gnu_xfer_memory): Likewise.
10957 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10958 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10959 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10960 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10962 2014-02-11 Yao Qi <yao@codesourcery.com>
10964 * target.h (enum target_xfer_error): Rename to ...
10965 (enum target_xfer_status): ... it. New. All users updated.
10966 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10968 (TARGET_XFER_STATUS_ERROR_P): New macro.
10969 (target_xfer_error_to_string): Remove declaration.
10970 (target_xfer_status_to_string): Declare.
10971 (target_xfer_partial_ftype): Adjust it.
10972 (struct target_ops) <to_xfer_partial>: Return
10973 target_xfer_status. Add argument xfered_len. Update
10975 * target.c (target_xfer_error_to_string): Rename to ...
10976 (target_xfer_status_to_string): ... it. New. All callers
10978 (target_read_live_memory): Likewise. Call target_xfer_partial
10979 instead of target_read.
10980 (memory_xfer_live_readonly_partial): Return
10981 target_xfer_status. Add argument xfered_len.
10982 (raw_memory_xfer_partial): Likewise.
10983 (memory_xfer_partial_1): Likewise.
10984 (memory_xfer_partial): Likewise.
10985 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10986 properly. Update debug message.
10987 (default_xfer_partial, current_xfer_partial): Likewise.
10988 (target_write_partial): Likewise.
10989 (target_read_partial): Likewise. All callers updated.
10990 (read_whatever_is_readable): Likewise.
10991 (target_write_with_progress): Likewise.
10992 (target_read_alloc_1): Likewise.
10994 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10995 * auxv.c (procfs_xfer_auxv): Likewise.
10996 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10997 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10998 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10999 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11000 * corefile.c (read_memory): Adjust.
11001 * corelow.c (core_xfer_partial): Likewise.
11002 * ctf.c (ctf_xfer_partial): Likewise.
11003 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11005 (darwin_xfer_partial): Likewise.
11006 * exec.c (section_table_xfer_memory_partial): Likewise. All
11008 (exec_xfer_partial): Likewise.
11009 * exec.h (section_table_xfer_memory_partial): Update
11011 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11013 (gnu_xfer_partial): Likewise.
11014 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11015 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11016 (ia64_hpux_xfer_solib_got): Likewise.
11017 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11018 type of 'partial_len' to ULONGEST.
11019 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11020 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11021 (linux_nat_xfer_partial): Likewise.
11022 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11023 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11024 * monitor.c (monitor_xfer_memory): Likewise.
11025 (monitor_xfer_partial): Likewise.
11026 * procfs.c (procfs_xfer_partial): Likewise.
11027 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11028 * record-full.c (record_full_xfer_partial): Likewise.
11029 (record_full_core_xfer_partial): Likewise.
11030 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11031 (gdbsim_xfer_partial): Likewise.
11032 * remote.c (remote_write_bytes_aux): Likewise. All callers
11034 (remote_write_bytes, remote_read_bytes): Likewise. All
11036 (remote_flash_erase): Likewise. All callers updated.
11037 (remote_write_qxfer): Likewise. All callers updated.
11038 (remote_read_qxfer): Likewise. All callers updated.
11039 (remote_xfer_partial): Likewise.
11040 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11041 (rs6000_xfer_shared_libraries): Likewise.
11042 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11043 (sol_thread_xfer_partial): Likewise.
11044 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11045 (sparc_xfer_partial): Likewise.
11046 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11048 (spu_xfer_partial): Likewise.
11049 * spu-multiarch.c (spu_xfer_partial): Likewise.
11050 * tracepoint.c (tfile_xfer_partial): Likewise.
11051 * windows-nat.c (windows_xfer_memory): Likewise.
11052 (windows_xfer_shared_libraries): Likewise.
11053 (windows_xfer_partial): Likewise.
11054 * valprint.c: Replace 'target_xfer_error' with
11055 'target_xfer_status' in comments.
11057 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11059 Checked in by Joel Brobecker <brobecker@adacore.com>.
11060 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11062 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11064 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11065 function parameters.
11067 2014-02-10 Will Newton <will.newton@linaro.org>
11069 * elfread.c (elf_rel_plt_read): Look for a .got section if
11070 looking up .got.plt fails.
11071 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11072 on address passed to elf_gnu_ifunc_record_cache.
11073 (elf_gnu_ifunc_resolve_addr): Likewise.
11074 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11076 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11078 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11079 (X_RETTURN): New macro.
11080 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11082 * sparc64-tdep.c (sparc64_init_abi): Hook
11083 sparc_in_function_epilogue_p.
11085 2014-02-10 Gary Benson <gbenson@redhat.com>
11087 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11088 Rename name_matcher to symbol_matcher.
11090 2014-02-10 Gary Benson <gbenson@redhat.com>
11092 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11093 Use expand_symtabs_file_matcher_ftype and
11094 expand_symtabs_symbol_matcher_ftype.
11096 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11098 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11099 (struct ada_symbol_cache): New.
11100 (ada_free_symbol_cache): Forward declare.
11101 (struct ada_pspace_data): New.
11102 (ada_pspace_data_handle): New static global.
11103 (get_ada_pspace_data, ada_pspace_data_cleanup)
11104 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11105 (cache_space, cache): Delete, now folded inside struct
11107 (ada_get_symbol_cache): New function.
11108 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11110 (_initialize_ada_language): Remove initialization of cache_space.
11111 Move call to observer_attach_inferior_exit up, grouping it
11112 with the other observer registrations inside this function.
11113 Rename command to be more general. Add call to
11114 register_program_space_data_with_cleanup.
11116 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11118 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11119 ada_new_objfile_observer.
11120 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11121 (_initialize_tasks): Update uses of ada_new_objfile_observer
11122 and ada_tasks_normal_stop_observer.
11124 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11126 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11127 returned by the 'Length attribute to integer.
11129 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11131 * ada-lang.c (_initialize_ada_language): Initialize
11132 cache_space obstack.
11134 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11136 * ada-lang.c (HASH_SIZE): New macro.
11137 (struct cache_entry): New type.
11138 (cache_space, cache): New static globals.
11139 (ada_clear_symbol_cache, find_entry): New functions.
11140 (lookup_cached_symbol, cache_symbol): Implement.
11141 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11142 (_initialize_ada_language): Attach ada_new_objfile_observer
11143 and ada_free_objfile_observer.
11145 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11147 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11148 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11149 struct block * parameter.
11150 (ada_lookup_symbol_list_worker): Constify local variable "block".
11151 Remove cast which is no longer necessary.
11153 2014-02-10 Doug Evans <xdje42@gmail.com>
11155 Add Guile as an extension language.
11156 * NEWS: Mention Guile scripting.
11157 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11158 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11159 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11160 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11161 (CLIBS): Add GUILE_LIBS.
11162 (install-guile): New rule.
11163 (guile.o): New rule.
11164 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11165 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11166 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11167 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11168 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11169 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11170 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11171 * configure.ac: New option --with-guile.
11172 * configure: Regenerate.
11173 * config.in: Regenerate.
11174 * auto-load.c: Remove #include "python/python.h". Add #include
11175 "gdb/section-scripts.h".
11176 (source_section_scripts): Handle Guile scripts.
11177 (_initialize_auto_load): Add name of Guile objfile script to
11178 scripts-directory help text.
11179 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11180 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11181 (struct breakpoint): New member scm_bp_object.
11182 * defs.h (enum command_control_type): New value guile_control.
11183 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11185 (show_user): Update comment.
11186 (_initialize_cli_cmds): Update help text for "show user". Update help
11187 text for max-user-call-depth.
11188 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11190 (multi_line_command_p): Add guile_control.
11191 (print_command_lines): Handle guile_control.
11192 (execute_control_command, recurse_read_control_structure): Ditto.
11193 (process_next_line): Recognize "guile" commands.
11194 * disasm.c (gdb_disassemble_info): Make non-static.
11195 * disasm.h: #include "dis-asm.h".
11196 (struct gdbarch): Add forward decl.
11197 (gdb_disassemble_info): Declare.
11198 * extension.c: #include "guile/guile.h".
11199 (extension_languages): Add guile.
11200 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11201 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11202 * gdbtypes.c (get_unsigned_type_max): New function.
11203 (get_signed_type_minmax): New function.
11204 * gdbtypes.h (get_unsigned_type_max): Declare.
11205 (get_signed_type_minmax): Declare.
11206 * guile/README: New file.
11207 * guile/guile-internal.h: New file.
11208 * guile/guile.c: New file.
11209 * guile/guile.h: New file.
11210 * guile/scm-arch.c: New file.
11211 * guile/scm-auto-load.c: New file.
11212 * guile/scm-block.c: New file.
11213 * guile/scm-breakpoint.c: New file.
11214 * guile/scm-disasm.c: New file.
11215 * guile/scm-exception.c: New file.
11216 * guile/scm-frame.c: New file.
11217 * guile/scm-gsmob.c: New file.
11218 * guile/scm-iterator.c: New file.
11219 * guile/scm-lazy-string.c: New file.
11220 * guile/scm-math.c: New file.
11221 * guile/scm-objfile.c: New file.
11222 * guile/scm-ports.c: New file.
11223 * guile/scm-pretty-print.c: New file.
11224 * guile/scm-safe-call.c: New file.
11225 * guile/scm-string.c: New file.
11226 * guile/scm-symbol.c: New file.
11227 * guile/scm-symtab.c: New file.
11228 * guile/scm-type.c: New file.
11229 * guile/scm-utils.c: New file.
11230 * guile/scm-value.c: New file.
11231 * guile/lib/gdb.scm: New file.
11232 * guile/lib/gdb/boot.scm: New file.
11233 * guile/lib/gdb/experimental.scm: New file.
11234 * guile/lib/gdb/init.scm: New file.
11235 * guile/lib/gdb/iterator.scm: New file.
11236 * guile/lib/gdb/printing.scm: New file.
11237 * guile/lib/gdb/types.scm: New file.
11238 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11239 (VPATH): Add $(GUILE_SRCDIR).
11240 (GUILE_DIR): New variable.
11241 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11242 (all): Add stamp-guile dependency.
11243 (stamp-guile): New rule.
11244 (clean-guile, install-guile, uninstall-guile): New rules.
11245 (install-only): Add install-guile dependency.
11246 (uninstall): Add uninstall-guile dependency.
11247 (clean): Add clean-guile dependency.
11249 2014-02-09 Doug Evans <xdje42@gmail.com>
11251 Revert this patch (which I approved, mea culpa).
11253 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11255 * Makefile.in (all-lib): Remove.
11256 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11258 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11260 Fix Python stack corruption.
11261 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11264 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11266 * Makefile.in (all-lib): Remove.
11267 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11269 2014-02-07 Doug Evans <dje@google.com>
11271 * extension-priv.h (extension_language_script_ops): Add comment.
11272 (extension_language_ops): Add comment.
11273 (active_ext_lang_state): Fix typo in comment.
11275 2014-02-07 Pedro Alves <palves@redhat.com>
11277 PR breakpoints/16292
11278 * infrun.c (handle_signal_stop) <signal arrives while stepping
11279 over a breakpoint>: Switch back to the stepping thread.
11281 2014-02-07 Yao Qi <yao@codesourcery.com>
11283 * target.c (target_xfer_partial): Return zero if LEN is zero.
11285 2014-02-07 Yao Qi <yao@codesourcery.com>
11287 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11288 (ld_so_xfer_auxv): Likewise.
11289 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11290 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11291 * corelow.c (core_xfer_partial): Likewise.
11292 * ctf.c (ctf_xfer_partial): Likewise.
11293 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11294 (darwin_xfer_partial): Likewise.
11295 * exec.c (exec_xfer_partial): Likewise.
11296 * gnu-nat.c (gnu_xfer_partial): Likewise.
11297 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11298 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11299 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11300 * linux-nat.c (linux_xfer_siginfo): Likewise.
11301 (linux_proc_xfer_spu): Likewise.
11302 * procfs.c (procfs_xfer_partial): Likewise.
11303 * record-full.c (record_full_xfer_partial): Likewise.
11304 (record_full_core_xfer_partial): Likewise.
11305 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11306 * remote.c (remote_write_qxfer): Likewise.
11307 (remote_write_qxfer, remote_read_qxfer): Likewise.
11308 (remote_xfer_partial): Likewise.
11309 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11310 (rs6000_xfer_shared_libraries): Likewise.
11311 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11312 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11313 (spu_xfer_partial): Likewise.
11314 * target.c (memory_xfer_partial_1): Likewise.
11315 * tracepoint.c (tfile_xfer_partial): Likewise.
11316 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11317 (windows_xfer_partial): Likewise.
11319 2014-02-07 Yao Qi <yao@codesourcery.com>
11321 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11323 (core_xfer_shared_libraries_aix): Likewise.
11324 * gdbarch.c, gdbarch.h: Regenerated.
11325 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11326 ULONGEST. Change 'len_avail' type to ULONGEST.
11327 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11328 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11330 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11332 2014-02-07 Yao Qi <yao@codesourcery.com>
11334 * corefile.c (memory_error): Get 'exception' from ERR and pass
11335 'exception' to throw_error.
11337 2014-02-06 Doug Evans <xdje42@gmail.com>
11339 * configure.ac (libpython checking): Remove all but python.o from
11340 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11341 * configure: Regenerate.
11343 * Makefile.in (SFILES): Add extension.c.
11344 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11345 (COMMON_OBS): Add extension.o.
11346 * extension.h: New file.
11347 * extension-priv.h: New file.
11348 * extension.c: New file.
11350 * python/python-internal.h: #include "extension.h".
11351 (gdbpy_auto_load_enabled): Declare.
11352 (gdbpy_apply_val_pretty_printer): Declare.
11353 (gdbpy_apply_frame_filter): Declare.
11354 (gdbpy_preserve_values): Declare.
11355 (gdbpy_breakpoint_cond_says_stop): Declare.
11356 (gdbpy_breakpoint_has_cond): Declare.
11357 (void source_python_script_for_objfile): Delete.
11358 * python/python.c: #include "extension-priv.h".
11359 Delete inclusion of "observer.h".
11360 (extension_language_python): Moved here and renamed from
11361 script_language_python in py-auto-load.c.
11362 Redefined to be of type extension_language_defn.
11363 (python_extension_script_ops): New global.
11364 (python_extension_ops): New global.
11365 (struct python_env): New member previous_active.
11366 (restore_python_env): Call restore_active_ext_lang.
11367 (ensure_python_env): Call set_active_ext_lang.
11368 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11370 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11372 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11374 (gdbpy_eval_from_control_command): Renamed from
11375 eval_python_from_control_command, made static. New arg extlang.
11376 (gdbpy_source_script) Renamed from source_python_script, made static.
11378 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11379 result to int. New arg extlang.
11380 (gdbpy_source_objfile_script): Renamed from
11381 source_python_script_for_objfile, made static. New arg extlang.
11382 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11383 static. New args extlang, extlang_printers. Change result type to
11385 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11386 static. New arg extlang. Rename arg printers to extlang_printers
11387 and change type to ext_lang_type_printers *.
11388 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11389 static. Replace argument arg with extlang, extlang_printers.
11390 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11391 (!HAVE_PYTHON, source_python_script): Delete.
11392 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11393 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11394 (!HAVE_PYTHON, start_type_printers): Delete.
11395 (!HAVE_PYTHON, apply_type_printers): Delete.
11396 (!HAVE_PYTHON, free_type_printers): Delete.
11397 (_initialize_python): Delete call to observer_attach_before_prompt.
11398 (finalize_python): Set/restore active extension language.
11399 (gdbpy_finish_initialization) Renamed from
11400 finish_python_initialization, made static. New arg extlang.
11401 (gdbpy_initialized): New function.
11402 * python/python.h: #include "extension.h". Delete #include
11403 "value.h", "mi/mi-cmds.h".
11404 (extension_language_python): Declare.
11405 (GDBPY_AUTO_FILE_NAME): Delete.
11406 (enum py_bt_status): Moved to extension.h and renamed to
11407 ext_lang_bt_status.
11408 (enum frame_filter_flags): Moved to extension.h.
11409 (enum py_frame_args): Moved to extension.h and renamed to
11410 ext_lang_frame_args.
11411 (finish_python_initialization): Delete.
11412 (eval_python_from_control_command): Delete.
11413 (source_python_script): Delete.
11414 (apply_val_pretty_printer): Delete.
11415 (apply_frame_filter): Delete.
11416 (preserve_python_values): Delete.
11417 (gdbpy_script_language_defn): Delete.
11418 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11419 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11421 * auto-load.c: #include "extension.h".
11422 (GDB_AUTO_FILE_NAME): Delete.
11423 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11424 (script_language_gdb): Delete, moved to extension.c and renamed to
11425 extension_language_gdb.
11426 (source_gdb_script_for_objfile): Delete.
11427 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11428 (loaded_script): Change type of language member to
11429 struct extension_language_defn *.
11430 (init_loaded_scripts_info): Initialize
11431 unsupported_script_warning_printed.
11432 (maybe_add_script): Make static. Change type of language arg to
11433 struct extension_language_defn *.
11434 (clear_section_scripts): Reset unsupported_script_warning_printed.
11435 (auto_load_objfile_script_1): Rewrite to use extension language API.
11436 (auto_load_objfile_script): Make public. Remove support-compiled-in
11437 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11438 (source_section_scripts): Rewrite to use extension language API.
11439 (load_auto_scripts_for_objfile): Rewrite to use
11440 auto_load_scripts_for_objfile.
11441 (collect_matching_scripts_data): Change type of language member to
11442 struct extension_language_defn *.
11443 (auto_load_info_scripts): Change type of language arg to
11444 struct extension_language_defn *.
11445 (unsupported_script_warning_print): New function.
11446 (script_not_found_warning_print): Make static.
11447 (_initialize_auto_load): Rewrite construction of scripts-directory
11449 * auto-load.h (struct objfile): Add forward decl.
11450 (struct script_language): Delete.
11451 (struct auto_load_pspace_info): Add forward decl.
11452 (struct extension_language_defn): Add forward decl.
11453 (maybe_add_script): Delete.
11454 (auto_load_objfile_script): Declare.
11455 (script_not_found_warning_print): Delete.
11456 (auto_load_info_scripts): Update prototype.
11457 (auto_load_gdb_scripts_enabled): Declare.
11458 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11459 auto_load_python_scripts_enabled and made public.
11460 (script_language_python): Delete, moved to python.c.
11461 (gdbpy_script_language_defn): Delete.
11462 (info_auto_load_python_scripts): Update to use
11463 extension_language_python.
11465 * breakpoint.c (condition_command): Replace call to
11466 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11467 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11468 with call to breakpoint_ext_lang_cond_says_stop.
11469 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11470 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11471 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11472 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11474 (local_setattro): Print name of extension language with existing
11477 * valprint.c (val_print, value_print): Update to call
11478 apply_ext_lang_val_pretty_printer.
11479 * cp-valprint.c (cp_print_value): Update call to
11480 apply_ext_lang_val_pretty_printer.
11481 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11482 (gdbpy_apply_val_pretty_printer): Renamed from
11483 apply_val_pretty_printer. New arg extlang.
11484 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11486 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11487 extension language API.
11488 * cli/cli-script.c (execute_control_command): Update to call
11489 eval_ext_lang_from_control_command.
11491 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11492 enum ext_lang_bt_status values. Update call to
11493 apply_ext_lang_frame_filter.
11494 (mi_cmd_stack_list_locals): Ditto.
11495 (mi_cmd_stack_list_args): Ditto.
11496 (mi_cmd_stack_list_variables): Ditto.
11497 * mi/mi-main.c: Delete #include "python/python-internal.h".
11498 Add #include "extension.h".
11499 (mi_cmd_list_features): Replace reference to python internal variable
11500 gdb_python_initialized with call to ext_lang_initialized_p.
11502 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11503 Update to use enum ext_lang_frame_args. Update to call
11504 apply_ext_lang_frame_filter.
11505 * python/py-framefilter.c (extract_sym): Update to use enum
11506 ext_lang_bt_status.
11507 (extract_value, py_print_type, py_print_value): Ditto.
11508 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11509 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11510 (py_print_frame): Ditto.
11511 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11512 New arg extlang. Update to use enum ext_lang_bt_status.
11514 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11515 finish_python_initialization. Replace with call to
11516 finish_ext_lang_initialization.
11518 * typeprint.c (do_free_global_table): Update to call
11519 free_ext_lang_type_printers.
11520 (create_global_typedef_table): Update to call
11521 start_ext_lang_type_printers.
11522 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11523 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11524 (type_print_options): Change type of global_printers from "void *"
11525 to "struct ext_lang_type_printers *".
11527 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11528 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11529 (gdbpy_preserve_values): Renamed from preserve_python_values.
11531 (!HAVE_PYTHON, preserve_python_values): Delete.
11533 * utils.c (quit_flag): Delete, moved to extension.c.
11534 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11537 * eval.c: Delete #include "python/python.h".
11538 * main.c: Delete #include "python/python.h".
11540 * defs.h: Update comment.
11542 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11546 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11548 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11551 2014-02-05 Yao Qi <yao@codesourcery.com>
11553 * remote.c (remote_pass_signals): Remove local 'buf' and use
11555 (remote_program_signals): Likewise.
11557 2014-02-05 Yao Qi <yao@codesourcery.com>
11559 * ctf.c: Include "inferior.h" and "gdbthread.h".
11560 (CTF_PID): A new macro.
11561 (ctf_open): Call inferior_appeared and add_thread_silent.
11562 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11563 (ctf_thread_alive): New function.
11564 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11566 2014-02-05 Yao Qi <yao@codesourcery.com>
11570 2013-05-24 Yao Qi <yao@codesourcery.com>
11572 * tracepoint.c (TFILE_PID): Remove.
11573 (tfile_open): Don't add thread and inferior.
11574 (tfile_close): Don't set 'inferior_ptid'. Don't call
11575 exit_inferior_silent.
11576 (tfile_thread_alive): Remove.
11577 (init_tfile_ops): Don't set field 'to_thread_alive' of
11580 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11582 * remote.c (remote_start_remote): Call remote_check_symbols even
11583 if only symbol-file (not file) has been given.
11585 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11587 * gdbarch.sh (skip_entrypoint): New callback.
11588 * gdbarch.c, gdbarch.h: Regenerate.
11589 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11590 * infrun.c (fill_in_stop_func): Likewise.
11591 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11592 (ppc_elfv2_elf_make_msymbol_special): New function.
11593 (ppc_elfv2_skip_entrypoint): Likewise.
11594 (ppc_linux_init_abi): Install them for ELFv2.
11596 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11598 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11599 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11600 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11601 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11602 structures returned in GPRs.
11604 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11606 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11607 offset to the stack parameter list for the ELFv2 ABI.
11609 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11611 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11612 set_gdbarch_convert_from_func_ptr_addr and
11613 set_gdbarch_elf_make_msymbol_special for ELFv1.
11614 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11615 function descriptors on ELFv1.
11616 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11617 set up r12 at function entry.
11619 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11621 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11622 (struct gdbarch_tdep): New member elf_abi.
11624 * rs6000-tdep.c: Include "elf/ppc64.h".
11625 (rs6000_gdbarch_init): Detect ELF ABI version.
11627 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11629 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11630 within a register pair holding a DFP 128-bit value on little-endian.
11631 (ppc64_sysv_abi_return_value_base): Likewise.
11632 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11633 (dfp_pseudo_register_write): Likewise.
11635 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11637 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11638 offset on little-endian when passing _Decimal32.
11639 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11641 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11643 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11644 of the overlapped FP register within the VSX register on little-
11646 (efpr_pseudo_register_write): Likewise.
11648 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11650 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11651 offset on little-endian when passing small structures.
11653 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11655 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11656 (struct ppc64_sysv_argpos): New data structure.
11657 (ppc64_sysv_abi_push_float): Remove.
11658 (ppc64_sysv_abi_push_val): New function.
11659 (ppc64_sysv_abi_push_integer): Likewise.
11660 (ppc64_sysv_abi_push_freg): Likewise.
11661 (ppc64_sysv_abi_push_vreg): Likewise.
11662 (ppc64_sysv_abi_push_param): Likewise.
11663 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11664 (ppc64_sysv_abi_return_value_base): New function.
11665 (ppc64_sysv_abi_return_value): Refactor to use it.
11667 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11669 * NEWS: Document new target powerpc64le-*-linux*.
11671 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11673 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11674 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11676 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11677 register set used in ELF core dumps. Add floating-point register set.
11679 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11681 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11682 dwarf2_to_gdb[] table using symbolic constants. Adjust
11683 penultimate entry from number representing the PC register
11684 to symbolic constant representing the MDR register. Add
11685 constant for the PC register to the end of the table.
11687 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11689 * bsd-kvm.c: Include <sys/param.h>
11691 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11693 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11695 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11697 * ada-lang.h (clear_ada_sym_cache): Delete.
11699 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11701 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11703 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11705 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11706 the sigreturn register save area only if the syscall is
11709 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11711 * valops.c (value_slice): Minor reformatting.
11713 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11715 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11717 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11719 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11720 New static globals.
11721 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11722 (ada_ignore_descriptive_types_p): New static global.
11723 (find_parallel_type_by_descriptive_type): Return immediately
11724 if ada_ignore_descriptive_types_p is set.
11725 (_initialize_ada_language): Register new commands "maintenance
11726 set ada", "maintenance show ada", "maintenance set ada
11727 ignore-descriptive-types" and "maintenance show ada
11728 ignore-descriptive-types".
11729 * NEWS: Add entry for new "maint ada set/show
11730 ignore-descriptive-types" commands.
11732 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11734 * record-btrace.c (record_btrace_close): Call btrace_teardown
11737 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11739 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11742 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11744 * ada-typeprint (type_is_full_subrange_of_target_type):
11746 (print_range): Add parameter bounds_prefered_p. If not set,
11747 try printing range types using the name of their base type.
11748 (print_range_type): Add parameter bounds_prefered_p.
11749 Use it in call to print_range.
11750 (print_array_type, ada_print_type): Update calls to print_range
11751 and print_range_type.
11753 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11755 * ada-typeprint.c (print_array_type, print_choices, print_range)
11756 (print_range_bound, print_dynamic_range_bound, print_range_type):
11757 Remove declaration.
11759 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11761 * ada-typeprint.c (print_range): Add missing empty line
11762 after local declaration.
11764 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11766 * ada-valprint.c (print_optional_low_bound): Get index_type's
11767 target type for as long as it is a TYPE_CODE_RANGE.
11769 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11771 * procfs.c (procfs_make_note_section): Remove assertion and
11772 associated comment.
11774 2014-01-24 Yao Qi <yao@codesourcery.com>
11776 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11777 * corelow.c (get_core_siginfo): Likewise.
11779 2014-01-24 Yao Qi <yao@codesourcery.com>
11781 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11782 ULONGEST. Don't check 'len' is negative.
11783 (remote_write_bytes): Change type of 'len' to ULONGEST.
11785 2014-01-23 Tom Tromey <tromey@redhat.com>
11788 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11789 Handle exception from frame.block.
11790 (FrameVars.fetch_frame_locals): Likewise.
11792 2014-01-23 Tom Tromey <tromey@redhat.com>
11795 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11796 on a NULL pointer. Move "goto error" to correct place.
11798 2014-01-23 Tom Tromey <tromey@redhat.com>
11801 * python/py-framefilter.c (apply_frame_filter): Call
11802 ensure_python_env after computing gdbarch.
11804 2014-01-23 Yao Qi <yao@codesourcery.com>
11806 * target.c (raw_memory_xfer_partial): Change argument type
11807 from void * to gdb_byte *.
11808 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11810 2014-01-22 Doug Evans <dje@google.com>
11812 New gdbserver option --debug-format=timestamp.
11813 * NEWS: Mention it.
11815 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11817 * syscalls/s390x-linux.xml: New file.
11818 * syscalls/s390-linux.xml: New file.
11819 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11820 (XML_SYSCALL_FILENAME_S390X): Likewise.
11821 (op_svc): New enum value for SVC opcode.
11822 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11823 (s390_linux_get_syscall_number): New function.
11824 (s390_gdbarch_init): Register '*get_syscall_number' and the
11825 syscall xml file name.
11826 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11827 "s390-linux.xml" and "s390x-linux.xml".
11828 * NEWS: Announce new feature.
11830 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11832 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11834 2014-01-22 Pedro Alves <palves@redhat.com>
11836 * xtensa-config.c: Include defs.h.
11838 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11840 * common/common-utils.h: Add "ARI:" comment beside __func__
11843 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11845 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11846 documentation a bit.
11848 2014-01-21 Roland McGrath <mcgrathr@google.com>
11850 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11851 * configure: Regenerate.
11852 * aclocal.m4: Regenerate.
11853 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11854 New substituted variables.
11855 (install-strip): New target.
11856 (INSTALL_SCRIPT): New substituted variable.
11857 (FLAGS_TO_PASS): Add it.
11858 (install-only): Use $(INSTALL_SCRIPT) rather than
11859 $(INSTALL_PROGRAM) for gcore.
11861 2014-01-20 Tom Tromey <tromey@redhat.com>
11863 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11866 2014-01-20 Tom Tromey <tromey@redhat.com>
11868 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11869 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11870 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11871 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11872 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11873 (struct cmd_list_element) <flags>: Remove.
11874 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11875 doc_allocated>: New fields.
11876 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11878 * maint.c (maintenance_do_deprecate): Update.
11879 * top.c (execute_command): Update.
11881 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11883 * xtensa-linux-nat.c: Include asm/ptrace.h.
11885 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11887 * Makefile.in (SFILES): Add d-support.c.
11888 (COMMON_OBS): Add d-support.o.
11889 * d-lang.h (d_parse_symbol): Add comment, now defined in
11891 * d-lang.c (parse_call_convention)
11892 (parse_attributes, parse_function_types)
11893 (parse_function_args, parse_type, parse_identifier)
11894 (call_convention_p, d_parse_symbol): Move functions to ...
11895 * d-support.c: ... New file.
11897 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11899 * d-lang.h (d_parse_symbol): Add declaration.
11900 * d-lang.c (extract_identifiers)
11901 (extract_type_info): Remove functions.
11902 (parse_call_convention, parse_attributes)
11903 (parse_function_types, parse_function_args)
11904 (parse_type, parse_identifier, call_convention_p)
11905 (d_parse_symbol): New functions.
11906 (d_demangle): Use d_parse_symbol to demangle D symbols.
11908 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11910 * d-lang.h (struct builtin_d_type): New data type.
11911 (builtin_d_type): Add declaration.
11912 * d-lang.c (d_language_arch_info, build_d_types)
11913 (builtin_d_type): New functions.
11914 (enum d_primitive_types): New data type.
11915 (d_language_defn): Change c_language_arch_info to
11916 d_language_arch_info.
11917 (d_type_data): New static variable.
11918 (_initialize_d_language): Initialize d_type_data.
11920 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11922 * d-lang.h (d_main_name): Add declaration.
11923 * d-lang.c (d_main_name): New function.
11924 * symtab.c (find_main_name): Add call to d_main_name.
11926 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11928 * d-lang.c (d_language_defn): Change macro_expansion_c to
11929 macro_expansion_no.
11931 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11933 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11935 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11937 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11938 gdb_exception" declaration.
11939 * remote.c (getpkt_or_notif_sane): Likewise.
11941 2014-01-17 Doug Evans <dje@google.com>
11943 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11944 function, contents of dirnames_to_char_ptr_vec_append moved here.
11945 (delim_string_to_char_ptr_vec): New function.
11946 (dirnames_to_char_ptr_vec_append): Rewrite.
11947 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11949 2014-01-17 Doug Evans <dje@google.com>
11951 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11953 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11954 #include "common-utils.h".
11955 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11956 * common/vec.h (VEC_ASSERT_PASS): Update.
11957 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11958 (MACH_CHECK_ERROR): Update.
11960 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11962 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11964 * gdbarch.h: Regenerate.
11966 2014-01-16 Tom Tromey <tromey@redhat.com>
11968 * value.c (struct value) <regnum>: Move earlier.
11970 2014-01-16 Tom Tromey <tromey@redhat.com>
11972 * remote.c (extended_remote_create_inferior): Rename from
11973 extended_remote_create_inferior_1. Add "ops" argument. Remove
11974 old implementation.
11976 2014-01-16 Pedro Alves <palves@redhat.com>
11978 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11979 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11982 2014-01-16 Doug Evans <dje@google.com>
11984 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11986 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11988 * btrace.h (btrace_thread_flag): New.
11989 (struct btrace_thread_info) <flags>: New.
11990 * record-btrace.c (record_btrace_resume_thread)
11991 (record_btrace_find_thread_to_move, btrace_step_no_history)
11992 (btrace_step_stopped, record_btrace_start_replaying)
11993 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11994 (record_btrace_find_resume_thread): New.
11995 (record_btrace_resume, record_btrace_wait): Extend.
11996 (record_btrace_can_execute_reverse): New.
11997 (record_btrace_open): Fail in non-stop mode.
11998 (record_btrace_set_replay): Split into this, ...
11999 (record_btrace_stop_replaying): ... this, ...
12000 (record_btrace_clear_histories): ... and this.
12001 (init_record_btrace_ops): Init to_can_execute_reverse.
12002 * NEWS: Announce it.
12004 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12006 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12007 (forward_target_decr_pc_after_break)
12008 (target_decr_pc_after_break): New.
12009 * target.c (forward_target_decr_pc_after_break)
12010 (target_decr_pc_after_break): New.
12011 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12012 instead of gdbarch_decr_pc_after_break.
12013 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12014 instead of gdbarch_decr_pc_after_break.
12015 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12016 instead of gdbarch_decr_pc_after_break.
12017 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12018 instead of gdbarch_decr_pc_after_break.
12019 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12020 instead of gdbarch_decr_pc_after_break.
12021 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12022 instead of gdbarch_decr_pc_after_break.
12024 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12026 * btrace.c: Include regcache.h.
12027 (btrace_add_pc): New.
12028 (btrace_enable): Call btrace_add_pc.
12029 (btrace_is_empty): New.
12030 * btrace.h (btrace_is_empty): New.
12031 * record-btrace.c (require_btrace, record_btrace_info): Call
12034 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12036 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12037 Support delta reads.
12038 (linux_disable_btrace): Change return type.
12039 * common/linux-btrace.h (linux_read_btrace): Change parameters
12040 and return type to allow error reporting. Update users.
12041 (linux_disable_btrace): Change return type. Update users.
12042 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12044 (btrace_error): New.
12045 (btrace_block) <begin>: Comment on BEGIN == 0.
12046 * btrace.c (btrace_compute_ftrace): Start from the end of
12048 (btrace_stitch_trace, btrace_clear_history): New.
12049 (btrace_fetch): Read delta trace, return if replaying.
12050 (btrace_clear): Move clear history code to btrace_clear_history.
12051 (parse_xml_btrace): Throw an error if parsing failed.
12052 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12053 and return type to allow error reporting.
12054 (target_read_btrace): Change parameters and return type to allow
12056 * target.c (target_read_btrace): Update.
12057 * remote.c (remote_read_btrace): Support delta reads. Pass
12059 * NEWS: Announce it.
12061 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12063 * record.h (record_btrace_frame_unwind)
12064 (record_btrace_tailcall_frame_unwind): New declarations.
12065 * dwarf2-frame: Include record.h
12066 (dwarf2_frame_cfa): Throw an error for btrace frames.
12067 * record-btrace.c: Include hashtab.h.
12068 (btrace_get_bfun_name): New.
12069 (btrace_call_history): Call btrace_get_bfun_name.
12070 (struct btrace_frame_cache): New.
12072 (bfcache_hash, bfcache_eq, bfcache_new): New.
12073 (btrace_get_frame_function): New.
12074 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12075 (record_btrace_frame_this_id): Compute own id.
12076 (record_btrace_frame_prev_register): Provide PC, throw_error
12077 for all other registers.
12078 (record_btrace_frame_sniffer): Detect btrace frames.
12079 (record_btrace_tailcall_frame_sniffer): New.
12080 (record_btrace_frame_dealloc_cache): New.
12081 (record_btrace_frame_unwind): Add new functions.
12082 (record_btrace_tailcall_frame_unwind): New.
12083 (_initialize_record_btrace): Allocate cache.
12084 * btrace.c (btrace_clear): Call reinit_frame_cache.
12085 * NEWS: Announce it.
12087 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12089 * record-btrace.c (record_btrace_set_replay)
12090 (record_btrace_goto_begin, record_btrace_goto_end)
12091 (record_btrace_goto): New.
12092 (init_record_btrace_ops): Initialize them.
12093 * NEWS: Announce it.
12095 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12097 * record-btrace.c (record_btrace_find_new_threads)
12098 (record_btrace_thread_alive): New.
12099 (init_record_btrace_ops): Initialize to_find_new_threads and
12102 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12104 * record-btrace.c (record_btrace_resume): New.
12105 (record_btrace_wait): New.
12106 (init_record_btrace_ops): Initialize to_wait and to_resume.
12108 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12110 * record-btrace.c (record_btrace_xfer_partial)
12111 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12112 (record_btrace_allow_memory_access): New.
12113 (init_record_btrace_ops): Initialize new methods.
12114 * target.c (raw_memory_xfer_partial): Bail out if target reports
12115 that this memory is not available.
12117 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12119 * target.h (target_ops) <to_insert_breakpoint>
12120 <to_remove_breakpoint>: Add target_ops parameter.
12121 (forward_target_insert_breakpoint): New.
12122 (forward_target_remove_breakpoint): New.
12123 (memory_remove_breakpoint, memory_insert_breakpoint):
12124 Add target_ops parameter.
12125 * target.c (target_insert_breakpoint): Split into this and ...
12126 (forward_target_insert_breakpoint): ... this.
12127 (target_remove_breakpoint): Split into this and ...
12128 (forward_target_remove_breakpoint): ... this.
12129 (debug_to_insert_breakpoint): Add target_ops parameter.
12130 Call forward_target_insert_breakpoint.
12131 (debug_to_remove_breakpoint): Add target_ops parameter.
12132 Call forward_target_remove_breakpoint.
12133 (update_current_target): Do not inherit or default to_insert_breakpoint
12134 and to_remove_breakpoint.
12135 * corelow.c (ignore): Add target_ops parameter.
12136 * exec.c (ignore): Add target_ops parameter.
12137 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12138 Add target_ops parameter.
12139 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12140 Add target_ops parameter.
12141 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12142 Add target_ops parameter.
12143 * record-full.c (record_full_beneath_to_insert_breakpoint)
12144 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12145 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12146 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12147 (record_full_core_remove_breakpoint): Add target_ops parameter.
12149 (record_full_beneath_to_insert_breakpoint_ops)
12150 (record_full_beneath_to_remove_breakpoint_ops)
12151 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12152 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12153 tmp_to_remove_breakpoint_ops,
12154 record_full_beneath_to_insert_breakpoint_ops, and
12155 record_full_beneath_to_remove_breakpoint_ops.
12156 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12157 (m32r_remove_breakpoint): Add target_ops parameter.
12158 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12159 Add target_ops parameter.
12160 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12161 Add target_ops parameter.
12163 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12164 Markus Metzger <markus.t.metzger@intel.com>
12166 * record-btrace.c: Include frame-unwind.h.
12167 (record_btrace_frame_unwind_stop_reason)
12168 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12169 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12171 (init_record_btrace_ops): Install it.
12173 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12175 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12178 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12180 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12183 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12185 * frame-unwind.c: Include target.h.
12186 (frame_unwind_try_unwinder): New function with code from ...
12187 (frame_unwind_find_by_frame): ... here. New variable
12188 unwinder_from_target, call also target_get_unwinder)
12189 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12190 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12191 * target.h (struct target_ops): New fields to_get_unwinder and
12192 to_get_tailcall_unwinder.
12193 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12195 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12197 * record-btrace.c (record_btrace_fetch_registers)
12198 (record_btrace_store_registers)
12199 (record_btrace_to_prepare_to_store): New.
12200 (init_record_btrace_ops): Add the above.
12202 2014-01-16 Tom Tromey <tromey@redhat.com>
12204 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12205 * target.h (struct target_ops) <to_prepare_to_store>: Add
12207 (target_prepare_to_store): Add argument.
12208 * target.c (debug_to_prepare_to_store): Add argument.
12209 (update_current_target): Update.
12210 * remote.c (remote_prepare_to_store): Add 'self' argument.
12211 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12212 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12213 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12214 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12216 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12217 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12218 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12219 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12220 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12222 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12224 * btrace.h (replay) <replay>: New.
12225 (btrace_is_replaying): New.
12226 * btrace.c (btrace_clear): Free replay iterator.
12227 (btrace_is_replaying): New.
12228 * record-btrace.c (record_btrace_is_replaying): New.
12229 (record_btrace_info): Print insn number if replaying.
12230 (record_btrace_insn_history): Start at replay position.
12231 (record_btrace_call_history): Start at replay position.
12232 (init_record_btrace_ops): Init to_record_is_replaying.
12234 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12236 * record-btrace.c (record_btrace_insn_history_range): Include
12238 (record_btrace_insn_history_from): Adjust range.
12239 (record_btrace_call_history_range): Include
12241 (record_btrace_call_history_from): Adjust range.
12242 * NEWS: Announce changes.
12244 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12246 * record.h (enum record_print_flag)
12247 <record_print_indent_calls>: New.
12248 * record.c (get_call_history_modifiers): Recognize /c modifier.
12249 (_initialize_record): Document /c modifier.
12250 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12251 Reorder fields. Optionally indent the function name. Update
12253 * NEWS: Announce changes.
12255 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12257 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12259 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12261 * btrace.c (ftrace_new_function): Start counting at one.
12262 * record-btrace.c (record_btrace_info): Adjust number of calls
12264 * NEWS: Announce it.
12266 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12268 * record-btrace.c (btrace_call_history_insn_range): Print
12269 insn range as [begin, end].
12271 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12273 * btrace.h (struct btrace_func_link): New.
12274 (enum btrace_function_flag): New.
12275 (struct btrace_inst): Rename to ...
12276 (struct btrace_insn): ...this. Update all users.
12277 (struct btrace_func) <ibegin, iend>: Remove.
12278 (struct btrace_func_link): New.
12279 (struct btrace_func): Rename to ...
12280 (struct btrace_function): ...this. Update all users.
12281 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12282 (number, level, flags>: New.
12283 (struct btrace_insn_iterator): Rename to ...
12284 (struct btrace_insn_history): ...this.
12286 (struct btrace_insn_iterator, btrace_call_iterator): New.
12287 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12288 (struct btrace_target_info) <begin, end, level>
12289 <insn_history, call_history>: New.
12290 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12291 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12292 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12293 (btrace_call_number, btrace_call_begin, btrace_call_end)
12294 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12295 (btrace_find_function_by_number, btrace_set_insn_history)
12296 (btrace_set_call_history): New.
12297 * btrace.c (btrace_init_insn_iterator)
12298 (btrace_init_func_iterator, compute_itrace): Remove.
12299 (ftrace_print_function_name, ftrace_print_filename)
12300 (ftrace_skip_file): Change
12301 parameter to const.
12302 (ftrace_init_func): Remove.
12303 (ftrace_debug): Use new btrace_function fields.
12304 (ftrace_function_switched): Also consider gaining and
12305 losing symbol information).
12306 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12307 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12308 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12310 (ftrace_new_function): Move. Remove debug print.
12311 (ftrace_update_lines, ftrace_update_insns): New.
12312 (ftrace_update_function): Check for call, ret, and jump.
12313 (compute_ftrace): Renamed to ...
12314 (btrace_compute_ftrace): ...this. Rewritten to compute call
12316 (btrace_fetch, btrace_clear): Updated.
12317 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12318 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12319 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12320 (btrace_call_number, btrace_call_begin, btrace_call_end)
12321 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12322 (btrace_find_function_by_number, btrace_set_insn_history)
12323 (btrace_set_call_history): New.
12324 * record-btrace.c (require_btrace): Use new btrace thread
12326 (record_btrace_info, btrace_insn_history)
12327 (record_btrace_insn_history, record_btrace_insn_history_range):
12328 Use new btrace thread info fields and new iterator.
12329 (btrace_func_history_src_line): Rename to ...
12330 (btrace_call_history_src_line): ...this. Use new btrace
12331 thread info fields.
12332 (btrace_func_history): Rename to ...
12333 (btrace_call_history): ...this. Use new btrace thread info
12334 fields and new iterator.
12335 (record_btrace_call_history, record_btrace_call_history_range):
12336 Use new btrace thread info fields and new iterator.
12338 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12340 * frame.h (frame_id_build_unavailable_stack_special): New.
12341 * frame.c (frame_id_build_unavailable_stack_special): New.
12343 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12345 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12346 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12347 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12349 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12350 (i386_insn_is_jump, i386_jmp_p): New.
12351 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12352 insn_is_jump to gdbarch.
12353 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12354 * gdbarch.h: Regenerated.
12355 * gdbarch.c: Regenerated.
12356 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12357 (default_insn_is_jump): New.
12358 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12359 (default_insn_is_jump): New.
12361 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12363 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12365 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12366 (btrace_read_type) <btrace_read_new>: Change to ...
12367 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12369 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12371 * common/linux-btrace.c (linux_read_btrace): Free trace from
12372 previous iteration.
12374 2014-01-15 Doug Evans <dje@google.com>
12376 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12379 2014-01-15 Tom Tromey <tromey@redhat.com>
12381 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12382 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12383 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12384 (set_objfile_main_name): New function.
12385 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12386 language_of_main>: New fields.
12387 (set_objfile_main_name): Declare.
12388 * symtab.c (find_main_name): Loop over objfiles to find the main
12390 (set_main_name): Now static.
12391 (get_main_info): Add comment.
12392 * symtab.h (set_main_name): Don't declare.
12394 2014-01-15 Tom Tromey <tromey@redhat.com>
12396 * symtab.c (main_progspace_key): New global.
12397 (struct main_info): New.
12398 (name_of_main, language_of_main): Remove.
12399 (get_main_info, main_info_cleanup): New function.
12400 (set_main_name, main_name, main_language): Use get_main_info.
12401 (_initialize_symtab): Initialize main_progspace_key.
12403 2014-01-15 Tom Tromey <tromey@redhat.com>
12405 * dbxread.c (process_one_symbol): Update.
12406 * dwarf2read.c (read_partial_die): Update.
12407 * symfile.c (set_initial_language): Call main_language.
12408 * symtab.c (language_of_main): Now static.
12409 (set_main_name): Add 'lang' parameter.
12410 (find_main_name): Update.
12411 (main_language): New function.
12412 (symtab_observer_executable_changed): Update.
12413 * symtab.h (set_main_name): Update.
12414 (language_of_main): Remove.
12415 (main_language): Declare.
12417 2014-01-15 Tom Tromey <tromey@redhat.com>
12419 * symfile.c (init_entry_point_info): Use new "initialized" field.
12421 * objfiles.h (struct entry_point) <initialized>: New field.
12422 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12423 (struct objfile) <ei>: ...here. Remove.
12424 * objfiles.c (entry_point_address_query): Update.
12426 2014-01-15 Tom Tromey <tromey@redhat.com>
12428 * objfiles.c (entry_point_address_query): Relocate entry point
12430 (objfile_relocate1): Do not relocate entry point address.
12431 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12432 <the_bfd_section_index>: New field.
12433 * symfile.c (init_entry_point_info): Find the entry point's
12436 2014-01-15 Tom Tromey <tromey@redhat.com>
12438 * solib-frv.c (enable_break): Use entry_point_address_query.
12440 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12442 * NEWS: Add note on improved process record-replay on
12443 arm*-linux* targets.
12445 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12447 * arm-tdep.c (enum arm_record_result): New enum.
12448 (arm_record_unsupported_insn): New function.
12449 (arm_record_coproc_data_proc): Removed.
12450 (thumb2_record_ld_st_multiple): New function.
12451 (thumb2_record_ld_st_dual_ex_tbb): New function.
12452 (thumb2_record_data_proc_sreg_mimm): New function.
12453 (thumb2_record_ps_dest_generic): New function.
12454 (thumb2_record_branch_misc_cntrl): New function.
12455 (thumb2_record_str_single_data): New function.
12456 (thumb2_record_ld_mem_hints): New function.
12457 (thumb2_record_ld_word): New function.
12458 (thumb2_record_lmul_lmla_div): New function.
12459 (thumb2_record_decode_insn_handler): New function.
12460 (decode_insn): Add thumb32 instruction handlers.
12462 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12464 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12465 (struct arm_linux_record_tdep): Declare.
12466 (arm_canonicalize_syscall): New function.
12467 (arm_all_but_pc_registers_record): New function.
12468 (arm_linux_syscall_record): New function.
12469 (arm_linux_init_abi): Add syscall recording constructs.
12470 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12471 decoding. (arm_record_coproc_data_proc): Update arm syscall
12473 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12474 <arm_syscall_record>: New field.
12475 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12478 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12480 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12481 register for push instruction recording.
12483 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12485 * arm-tdep.c (thumb_record_misc): Update to correct logical
12486 error while recording ldm, ldmia and pop instructions.
12488 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12490 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12492 2014-01-15 Pedro Alves <palves@redhat.com>
12494 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12495 (go32_resume, go32_fetch_registers, store_register)
12496 (go32_store_registers, go32_prepare_to_store)
12497 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12498 (go32_create_inferior, go32_can_run, go32_terminal_init)
12499 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12502 2014-01-15 Tom Tromey <tromey@redhat.com>
12504 * target.h (async_callback_ftype): New typedef.
12505 (struct target_ops) <to_async>: Use it.
12507 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12509 * python/py-value.c (get_field_type): Remove unnecessary curly
12510 braces for single-statement if block.
12512 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12514 * python/py-type.c (convert_field): Add missing empty line
12515 after declarations.
12517 2014-01-14 Doug Evans <dje@google.com>
12519 * symfile.h (expand_symtabs_matching): Renamed from
12520 expand_partial_symbol_names. Update prototype.
12521 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12522 * symfile.c (expand_symtabs_matching): Renamed from
12523 expand_partial_symbol_names. New args file_matcher, kind.
12524 Rename arg fun to symbol_matcher.
12525 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12526 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12527 ada_expand_partial_symbol_name.
12528 (ada_make_symbol_completion_list): Update to call
12529 expand_symtabs_matching.
12530 (ada_add_global_exceptions): Call expand_symtabs_matching.
12531 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12532 call map_symbol_filenames.
12533 * symtab.c (sources_info): Update to call map_symbol_filenames.
12534 (search_symbols): Call expand_symtabs_matching.
12535 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12536 (default_make_symbol_completion_list_break_on): Update to call
12537 expand_symtabs_matching.
12538 (make_source_files_completion_list): Update to call
12539 map_symbol_filenames.
12541 2014-01-14 Doug Evans <dje@google.com>
12543 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12544 (expand_symtabs_symbol_matcher_ftype): New typedef.
12545 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12546 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12547 * symfile.c (expand_partial_symbol_names): Update to use
12548 expand_symtabs_symbol_matcher_ftype.
12549 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12550 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12551 Arg name_matcher renamed to symbol_matcher.
12552 * psymtab.c (recursively_search_psymtabs): Update to use
12553 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12555 (expand_symtabs_matching_via_partial): Update to use
12556 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12557 Arg name_matcher renamed to symbol_matcher.
12559 2014-01-14 Doug Evans <dje@google.com>
12561 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12562 (map_partial_symbol_filenames): Ditto.
12563 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12564 (map_partial_symbol_filenames): Ditto.
12565 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12566 (map_partial_symbol_filenames): Ditto.
12567 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12568 (map_partial_symbol_filenames): Ditto.
12569 * symtab.c: Delete #include "psymtab.h".
12571 2014-01-14 Pedro Alves <palves@redhat.com>
12572 Tom Tromey <tromey@redhat.com>
12574 * infrun.c (use_displaced_stepping): Use find_record_target
12575 instead of RECORD_IS_USED.
12576 (adjust_pc_after_break): Use record_full_is_used instead of
12578 * record-btrace.c (record_btrace_open): Call record_preopen
12579 instead of checking RECORD_IS_USED.
12580 * record-full.c (record_full_shortname)
12581 (record_full_core_shortname): New globals.
12582 (record_full_is_used): New function.
12583 (find_full_open): Call record_preopen instead of checking
12585 (init_record_full_ops): Set the target's shortname to
12586 record_full_shortname.
12587 (init_record_full_core_ops): Set the target's shortname to
12588 record_full_core_shortname.
12589 * record-full.h (record_full_is_used): Declare.
12590 * record.c (find_record_target): Make extern.
12591 (record_preopen): New function.
12592 * record.h (RECORD_IS_USED): Delete macro.
12593 (find_record_target, record_preopen): Declare functions.
12595 2014-01-14 Yao Qi <yao@codesourcery.com>
12597 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12598 'len''s type to ULONGEST.
12599 (core_xfer_shared_libraries_aix): Likewise.
12600 * gdbarch.c, gdbarch.h: Regenerated.
12601 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12602 Change type of 'len' to ULONGEST.
12603 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12604 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12606 2014-01-14 Yao Qi <yao@codesourcery.com>
12608 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12609 type of 'len' to ULONGEST.
12610 (linux_xfer_osdata_processgroups): Likewise.
12611 (linux_xfer_osdata_threads): Likewise.
12612 (linux_xfer_osdata_fds): Likewise.
12613 (linux_xfer_osdata_isockets): Likewise.
12614 (linux_xfer_osdata_shm): Likewise.
12615 (linux_xfer_osdata_sem): Likewise.
12616 (linux_xfer_osdata_msg): Likewise.
12617 (linux_common_xfer_osdata): Likewise.
12618 (struct osdata_type) <getter>: Likewise.
12619 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12622 2014-01-14 Yao Qi <yao@codesourcery.com>
12624 * target.h (target_xfer_partial_ftype): Update.
12625 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12627 * aix-thread.c (aix_thread_xfer_partial): Change type of
12628 argument 'len' to ULONGEST.
12629 * auxv.c (procfs_xfer_auxv): Likewise.
12630 (ld_so_xfer_auxv): Likewise.
12631 (memory_xfer_auxv): Likewise.
12632 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12633 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12634 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12635 * corelow.c (core_xfer_partial): Likewise.
12636 * ctf.c (ctf_xfer_partial): Likewise.
12637 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12639 (darwin_read_dyld_info): Likewise.
12640 (darwin_xfer_partial): Likewise.
12641 * exec.c (section_table_xfer_memory_partial): Likewise.
12642 (exec_xfer_partial): Likewise.
12643 * exec.h (section_table_xfer_memory_partial): Update
12645 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12646 instead of plongest.
12647 (gnu_xfer_partial): Likewise.
12648 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12649 (ia64_hpux_xfer_solib_got): Likewise.
12650 (ia64_hpux_xfer_partial): Likewise.
12651 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12652 * inf-ptrace.c (inf_ptrace_xfer_partial):
12653 * inf-ttrace.c (inf_ttrace_xfer_partial):
12654 * linux-nat.c (linux_xfer_siginfo): Likewise.
12655 (linux_nat_xfer_partial): Likewise.
12656 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12657 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12658 * monitor.c (monitor_xfer_memory): Likewise.
12659 (monitor_xfer_partial): Likewise.
12660 * procfs.c (procfs_xfer_partial): Likewise.
12661 * record-full.c (record_full_xfer_partial): Likewise.
12662 (record_full_core_xfer_partial): Likewise.
12663 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12664 instead of plongest.
12665 (gdbsim_xfer_partial): Likewise.
12666 * remote.c (remote_xfer_partial): Likewise.
12667 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12668 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12670 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12671 (rs6000_xfer_shared_libraries): Likewise.
12672 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12673 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12674 (sparc_xfer_partial): Likewise.
12675 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12676 (spu_xfer_partial): Likewise.
12677 * spu-multiarch.c (spu_xfer_partial): Likewise.
12678 * target.c (target_read_live_memory): Likewise.
12679 (memory_xfer_live_readonly_partial): Likewise.
12680 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12681 (target_xfer_partial, default_xfer_partial): Likewise.
12682 (current_xfer_partial): Likewise.
12683 * tracepoint.c (tfile_xfer_partial): Likewise.
12684 * windows-nat.c (windows_xfer_memory): Likewise. Call
12685 pulongest instead of plongest.
12686 (windows_xfer_partial): Likewise.
12687 (windows_xfer_shared_libraries): Likewise.
12689 2014-01-14 Yao Qi <yao@codesourcery.com>
12691 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12692 target_xfer_partial_ftype.
12694 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12698 * valops.c (value_struct_elt_bitpos): New function
12699 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12700 object to 'None' if the field name is an empty string ("").
12701 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12702 attribute to look for a field when 'name' is 'None'.
12703 (get_field_type): New function
12705 2014-01-13 Doug Evans <dje@google.com>
12708 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12709 (try_open_dwop_file): Ditto.
12710 * gdb_bfd.c: #include "vec.h".
12711 (bfdp): New typedef.
12712 (struct gdb_bfd_data): New member included_bfds.
12713 (gdb_bfd_unref): Unref all included bfds.
12714 (gdb_bfd_record_inclusion): New function.
12715 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12717 2014-01-13 Tom Tromey <tromey@redhat.com>
12719 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12721 2014-01-13 Tom Tromey <tromey@redhat.com>
12723 * defs.h (use_windows): Remove.
12724 * gdb.c (main): Update.
12725 * main.c (captured_main, gdb_main): Update.
12726 * main.h (struct captured_main_args) <use_windows>: Remove.
12727 * top.c (use_windows): Remove.
12729 2014-01-13 Tom Tromey <tromey@redhat.com>
12731 * defs.h (deprecated_flush_hook): Remove.
12733 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12736 * linux-thread-db.c (try_thread_db_load): Add parameter
12737 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12738 (try_thread_db_load_from_pdir_1): Move it there from here.
12739 (try_thread_db_load_from_sdir): Update caller.
12740 (try_thread_db_load_from_dir): Move it there from here.
12742 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12744 * regformats/regdat.sh: Always rewrite the register file.
12746 2014-01-13 Pedro Alves <palves@redhat.com>
12748 * Makefile.in (CHECK_HEADERS): New variable.
12749 (check-headers:): New rule.
12751 2014-01-13 Tom Tromey <tromey@redhat.com>
12753 * cli/cli-setshow.c (do_set_command): Update.
12754 * defs.h (deprecated_set_hook): Remove.
12755 * top.c (deprecated_set_hook): Remove.
12757 2014-01-13 Pedro Alves <palves@redhat.com>
12759 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12760 the tracepoint if the PC is a pseudo-register.
12762 2014-01-13 Tom Tromey <tromey@redhat.com>
12764 * defs.h (XCALLOC): Remove.
12765 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12766 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12767 * dwarf2loc.c (allocate_piece_closure): Likewise.
12768 * elfread.c (elf_symfile_segments): Likewise.
12769 (elf_symfile_segments): Likewise.
12770 * gdbtypes.c (copy_type_recursive): Likewise.
12771 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12772 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12773 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12775 * mt-tdep.c (mt_gdbarch_init): Likewise.
12776 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12778 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12779 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12780 * registry.c (registry_alloc_data): Likewise.
12781 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12782 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12783 * serial.c (serial_fdopen_ops): Likewise.
12784 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12786 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12787 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12790 2014-01-13 Tom Tromey <tromey@redhat.com>
12792 * defs.h (XMALLOC): Remove.
12793 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12794 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12795 * cli-out.c (struct ui_out *): Likewise.
12796 * cli/cli-dump.c (add_dump_command): Likewise.
12797 (add_dump_command): Likewise.
12798 * complaints.c (get_complaints): Likewise.
12799 (find_complaint): Likewise.
12800 * dwarf2-frame.c (execute_cfa_program): Likewise.
12801 * dwarf2read.c (abbrev_table_read_table): Likewise.
12802 * gdbarch.sh: Likewise.
12803 * gdbarch.c: Rebuild.
12804 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12805 * interps.c (interp_new): Likewise.
12806 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12807 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12808 * mi/mi-console.c (mi_console_file_new): Likewise.
12809 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12810 * mi/mi-out.c (mi_out_new): Likewise.
12811 * mi/mi-parse.c (mi_parse): Likewise.
12812 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12813 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12814 * observer.c (xalloc_observer_list_node): Likewise.
12815 * regcache.c (regcache_xmalloc_1): Likewise.
12816 * reggroups.c (reggroup_new): Likewise.
12817 (_initialize_reggroup): Likewise.
12818 * registry.c (register_data_with_cleanup): Likewise.
12819 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12820 * ser-base.c (serial_ttystate): Likewise.
12821 * ser-mingw.c (make_pipe_state): Likewise.
12822 * ser-pipe.c (pipe_open): Likewise.
12823 * serial.c (serial_open): Likewise.
12824 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12825 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12826 (tui_alloc_win_info): Likewise.
12827 (tui_add_content_elements): Likewise.
12828 * tui/tui-file.c (tui_file_new): Likewise.
12829 * tui/tui-out.c (tui_out_new): Likewise.
12830 * ui-file.c (mem_file_new): Likewise.
12831 * ui-out.c (push_level): Likewise.
12832 (make_cleanup_ui_out_end): Likewise.
12833 (append_header_to_list): Likewise.
12834 (ui_out_new): Likewise.
12835 * user-regs.c (user_reg_add_builtin): Likewise.
12837 2014-01-13 Tom Tromey <tromey@redhat.com>
12839 * defs.h (XZALLOC): Remove.
12840 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12841 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12842 (get_ada_tasks_inferior_data): Likewise.
12843 * auto-load.c (get_auto_load_pspace_data): Likewise.
12844 * auxv.c (get_auxv_inferior_data): Likewise.
12845 * bfd-target.c (target_bfd_reopen): Likewise.
12846 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12847 (deprecated_insert_raw_breakpoint): Likewise.
12848 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12849 * corelow.c (core_open): Likewise.
12850 * darwin-nat.c (darwin_check_new_threads): Likewise.
12851 (darwin_attach_pid): Likewise.
12852 * dummy-frame.c (dummy_frame_push): Likewise.
12853 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12854 * dwarf2loc.c (allocate_piece_closure): Likewise.
12855 * elfread.c (elf_symfile_segments): Likewise.
12856 * eval.c (ptrmath_type_p): Likewise.
12857 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12858 * gdbtypes.c (alloc_type_arch): Likewise.
12859 (alloc_type_instance): Likewise.
12860 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12861 * inf-child.c (inf_child_can_use_agent): Likewise.
12862 * inflow.c (get_inflow_inferior_data): Likewise.
12863 * infrun.c (save_infcall_suspend_state): Likewise.
12864 * jit.c (jit_reader_load): Likewise.
12865 (get_jit_objfile_data): Likewise.
12866 (get_jit_program_space_data): Likewise.
12867 (jit_object_open_impl): Likewise.
12868 (jit_symtab_open_impl): Likewise.
12869 (jit_block_open_impl): Likewise.
12870 (jit_frame_sniffer): Likewise.
12871 * linux-fork.c (add_fork): Likewise.
12872 * maint.c (make_command_stats_cleanup): Likewise.
12873 * objfiles.c (get_objfile_pspace_data): Likewise.
12874 * opencl-lang.c (struct lval_closure): Likewise.
12875 * osdata.c (osdata_start_osdata): Likewise.
12876 * progspace.c (new_address_space): Likewise.
12877 (add_program_space): Likewise.
12878 * remote-sim.c (get_sim_inferior_data): Likewise.
12879 * sh-tdep.c (sh_gdbarch_init): Likewise.
12880 * skip.c (Ignore): Likewise.
12881 (skip_delete_command): Likewise.
12882 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12883 (library_list_start_library): Likewise.
12884 (solib_aix_current_sos): Likewise.
12885 * solib-darwin.c (get_darwin_info): Likewise.
12886 (darwin_current_sos): Likewise.
12887 * solib-dsbt.c (get_dsbt_info): Likewise.
12888 * solib-ia64-hpux.c (new_so_list): Likewise.
12889 (ia64_hpux_get_solib_linkage_addr): Likewise.
12890 * solib-spu.c (append_ocl_sos): Likewise.
12891 (spu_current_sos): Likewise.
12892 * solib-svr4.c (get_svr4_info): Likewise.
12893 (svr4_keep_data_in_core): Likewise.
12894 (library_list_start_library): Likewise.
12895 (svr4_default_sos): Likewise.
12896 (svr4_read_so_list): Likewise.
12897 * solib-target.c (library_list_start_library): Likewise.
12898 (solib_target_current_sos): Likewise.
12899 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12900 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12901 * symfile.c (default_symfile_segments): Likewise.
12902 * target-descriptions.c (tdesc_data_init): Likewise.
12903 (tdesc_create_reg): Likewise.
12904 (struct tdesc_type *): Likewise.
12905 (tdesc_create_vector): Likewise.
12906 (tdesc_set_struct_size): Likewise.
12907 (struct tdesc_type *): Likewise.
12908 (tdesc_free_feature): Likewise.
12909 (tdesc_create_feature): Likewise.
12910 * windows-nat.c (windows_add_thread): Likewise.
12911 (windows_make_so): Likewise.
12912 * xml-support.c (gdb_xml_body_text): Likewise.
12913 (gdb_xml_create_parser_and_cleanup): Likewise.
12914 (xml_process_xincludes): Likewise.
12915 * xml-syscall.c (allocate_syscalls_info): Likewise.
12916 (syscall_create_syscall_desc): Likewise.
12918 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12920 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12921 function, with code from i386_stap_parse_special_token.
12922 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12923 (i386_stap_parse_special_token): Move code to the two functions
12924 above; simplify it.
12926 2014-01-09 Pedro Alves <palves@redhat.com>
12927 Hui Zhu <hui@codesourcery.com>
12930 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12931 bp_err_string. Don't mark the location shlib_disabled if the
12932 error thrown wasn't a generic or memory error. Catch errors
12933 thrown while inserting breakpoints in overlayed code. Output
12934 error message of software breakpoints.
12935 * remote.c (remote_insert_breakpoint): If this breakpoint has
12936 target-side commands but this stub doesn't support Z0 packets,
12937 throw NOT_SUPPORTED_ERROR error.
12938 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12939 * target.h (target_insert_breakpoint): Extend comment.
12940 (target_insert_hw_breakpoint): Add comment.
12942 2014-01-08 Pedro Alves <palves@redhat.com>
12944 * remote.c (remote_add_thread): Add threads silently if starting
12946 (remote_notice_new_inferior): If in all-stop, and starting up,
12947 don't call notice_new_inferior.
12948 (get_current_thread): New function, factored out from ...
12949 (add_current_inferior_and_thread): ... this. Adjust.
12950 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12951 found any thread, then select the remote's current thread as GDB's
12952 current thread too.
12954 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12956 * NEWS: Create a new section for the next release branch.
12957 Rename the section of the current branch, now that it has
12960 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12962 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12963 * version.in: Bump version to 7.7.50.DATE-cvs.
12965 2014-01-08 Yao Qi <yao@codesourcery.com>
12967 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12968 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12969 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12971 2014-01-08 Yao Qi <yao@codesourcery.com>
12973 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12974 return value of bfd_get_filename to symbol_file_add_from_bfd.
12976 2014-01-08 Pierre Muller <muller@sourceware.org>
12979 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12980 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12981 to prim_record_mininal_symbol_and_info.
12982 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12983 in call to prim_record_minimal_symbol_and_info.
12984 (read_pe_exported_syms): Set index field of section_data.
12986 2014-01-07 Andrew Pinski <apinski@cavium.com>
12988 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12989 * features/aarch64.c: Regenerate.
12991 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12993 * target.c (return_null): Define.
12994 (update_current_target): Use it instead of return_zero for
12995 functions that return a pointer.
12997 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12999 * source.c (add_path): Fix check for duplicated paths in the previously
13002 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13004 * ada-lang.c: Remove duplicated include statements.
13005 * alphabsd-nat.c: Ditto.
13006 * amd64-darwin-tdep.c: Ditto.
13007 * amd64fbsd-nat.c: Ditto.
13008 * auto-load.c: Ditto.
13010 * breakpoint.c: Ditto.
13011 * dbxread.c: Ditto.
13012 * fork-child.c: Ditto.
13013 * gdb_usleep.c: Ditto.
13014 * i386-darwin-tdep.c: Ditto.
13015 * i386fbsd-nat.c: Ditto.
13017 * inferior.c: Ditto.
13018 * jv-lang.c: Ditto.
13019 * linux-nat.c: Ditto.
13020 * linux-tdep.c: Ditto.
13021 * m68kbsd-nat.c: Ditto.
13022 * m68klinux-nat.c: Ditto.
13023 * microblaze-tdep.c: Ditto.
13024 * mips-linux-tdep.c: Ditto.
13025 * mn10300-tdep.c: Ditto.
13026 * nto-tdep.c: Ditto.
13027 * opencl-lang.c: Ditto.
13029 * printcmd.c: Ditto.
13030 * regcache.c: Ditto.
13031 * remote-m32r-sdi.c: Ditto.
13033 * symfile.c: Ditto.
13035 * tilegx-linux-nat.c: Ditto.
13036 * tilegx-tdep.c: Ditto.
13037 * tracepoint.c: Ditto.
13039 * vaxbsd-nat.c: Ditto.
13040 * windows-nat.c: Ditto.
13041 * xtensa-tdep.c: Ditto.
13043 2014-01-07 Yao Qi <yao@codesourcery.com>
13045 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13047 2014-01-07 Yao Qi <yao@codesourcery.com>
13048 Joel Brobecker <brobecker@adacore.com>
13050 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13051 (pdc_write_regs): Likewise.
13052 (fetch_regs_kernel_thread): Likewise.
13053 (store_regs_kernel_thread): Likewise.
13055 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13057 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13058 tagged type objects to their actual type.
13060 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13062 * ada-valprint.c (print_field_values): Add "language" parameter.
13063 Update calls to print_field_values and print_variant_part.
13064 Pass new parameter "language" in call to val_print instead
13065 of "current_language". Replace call to ada_val_print by call
13067 (print_variant_part): Add "language" parameter.
13068 (ada_val_print_struct_union): Update call to print_field_values.
13070 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13072 * ada-valprint.c (ui_memcpy): Delete.
13073 (ada_print_floating): Update documentation. Add empty line
13074 between between function documentation and implementation.
13075 Delete variable "buffer". Use ui_file_xstrdup in place of
13076 ui_file_put. Minor adjustments following this change.
13078 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13080 * ada-valprint.c (ada_val_print_string): New function,
13081 extracted from ada_val_print_array.
13082 (ada_val_print_array): Replace extracted code by call
13083 to ada_val_print_string followed by a return. Move
13084 "else" branch to the function's top block.
13086 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13088 * ada-valprint.c (ada_val_print_array): Move implementation
13089 down. Rename parameter "offset" and "val" into "offset_aligned"
13090 and "original_value" respectively. Add parameter "offset".
13092 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13094 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13095 re-organizing the code. Change the "???" message printed
13096 when target type is a TYPE_CODE_UNDEF into
13097 "<ref to undefined type>".
13099 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13101 * ada-valprint.c (print_record): Delete, implementation inlined...
13102 (ada_val_print_struct_union): ... here. Remove call to
13103 ada_check_typedef in inlined implementation.
13105 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13107 * ada-valprint.c (ada_val_print_gnat_array): New function,
13108 extracted from ada_val_print_1;
13109 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13110 (ada_val_print_flt, ada_val_print_struct_union)
13111 (ada_val_print_ref): Likewise.
13112 (ada_val_print_1): Delete variables i and elttype.
13113 Replace extracted-out code by call to corresponding
13116 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13118 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13120 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13122 * ada-valprint.c (ada_val_print_1): Replace calls to
13123 ada_val_print_1 by calls to val_print.
13125 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13127 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13128 Update calls to self accordingly. Replace calls to c_val_print
13129 by calls to val_print.
13131 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13133 * ada-valprint.c (print_record): Delete declaration.
13134 (adjust_type_signedness, ada_val_print_1): Likewise.
13135 (ada_val_print): Move function implementation down.
13136 (print_variant_part, print_field_values, print_record):
13137 Move function implementation up.
13139 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13141 * python/py-type.c (typy_get_name): New function.
13142 (type_object_getset): Add entry for attribute "name".
13143 * NEWS: Add entry mentioning this new attribute.
13145 2014-01-07 Yao Qi <yao@codesourcery.com>
13147 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13150 2014-01-07 Yao Qi <yao@codesourcery.com>
13152 * gnu-nat.c (info_port_rights): Add qualifier const to
13155 2014-01-07 Yao Qi <yao@codesourcery.com>
13157 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13159 2014-01-07 Yao Qi <yao@codesourcery.com>
13161 * gnu-nat.c (make_inf) Update declaration.
13162 (make_inf): Make it static.
13163 (inf_set_traced): Likewise.
13164 (inf_port_to_thread, inf_task_died_status): Likewise.
13166 2014-01-07 Yao Qi <yao@codesourcery.com>
13168 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13170 2014-01-07 Yao Qi <yao@codesourcery.com>
13172 * gnu-nat.c (_initialize_gnu_nat): Declare.
13174 2014-01-07 Yao Qi <yao@codesourcery.com>
13176 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13178 (struct gdbarch_info) <byte_order>: Change type to
13180 <byte_order_for_code>: Likewise.
13181 * gdbarch.c, gdbarch.h: Regenerated.
13183 2014-01-06 Sasha Smundak <asmundak@google.com>
13185 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13187 2014-01-06 Tom Tromey <tromey@redhat.com>
13189 * doublest.c (convert_doublest_to_floatformat): Use const, not
13191 * somread.c (som_symtab_read): Likewise.
13193 2014-01-07 Hui Zhu <hui@codesourcery.com>
13195 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13196 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13197 (gdb_bfd_fopen): Ditto.
13198 (gdb_bfd_openr): Ditto.
13199 (gdb_bfd_openw): Ditto.
13200 (gdb_bfd_openr_iovec): Ditto.
13201 (gdb_bfd_fdopenr): Ditto.
13202 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13203 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13205 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13207 * symfile-mem.c (symbol_file_add_from_memory): Removed
13208 gdb_bfd_stash_filename.
13210 2014-01-03 Doug Evans <dje@google.com>
13212 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13215 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13217 Update year range in copyright notice of all files.
13219 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13221 * top.c (print_gdb_version): Set copyright year to 2014.
13223 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13225 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13227 For older changes see ChangeLog-2013.
13233 version-control: never