1 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
4 (armbsd_iterate_over_regset_sections): New prototype.
5 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
6 (armbsd_iterate_over_regset_sections): New.
7 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
10 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
12 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
13 (alpha_linux_iterate_over_regset_sections): New.
14 (alpha_linux_init_abi): Adjust gdbarch initialization.
15 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
17 (alphanbsd_iterate_over_regset_sections): New prototype.
19 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
21 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
23 (aarch64_linux_iterate_over_regset_sections): New.
24 (aarch64_linux_init_abi): Adjust gdbarch initialization.
26 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
28 * fbsd-tdep.c: New file.
29 * fbsd-tdep.h: New file.
30 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
31 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
32 (ALLDEPFILES): Add fbsd-tdep.c.
34 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
36 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
38 * gdbarch.h: Regenerate.
39 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
41 (get_core_register_section): Add parameter 'regset' and use it, if
42 set. Add parameter 'min_size' and verify the bfd section size
44 (get_core_registers_cb): Add parameter 'regset' and pass it to
45 get_core_register section. For the "standard" register sections
46 ".reg" and ".reg2", set an appropriate default for human_name.
47 (get_core_registers): Don't abort when the gdbarch has an iterator
48 but no regset_from_core_section. Add NULL/0 for parameters
49 'regset'/'min_size' in calls to get_core_register_section.
50 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
51 'regset' and use it instead of calling the
52 regset_from_core_section gdbarch method.
53 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
54 * i386-tdep.c (i386_supply_xstateregset)
55 (i386_collect_xstateregset, i386_xstateregset): Moved to
57 (i386_regset_from_core_section): Drop handling for .reg-xfp and
59 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
60 core file support only if the regset iterator hasn't been set.
61 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
62 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
63 Moved from i386-tdep.c and renamed to *_linux*.
64 (i386_linux_iterate_over_regset_sections): Add regset parameter to
65 each callback invocation. Allow any .reg-xstate size when reading
67 * amd64-tdep.c (amd64_supply_xstateregset)
68 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
70 (amd64_regset_from_core_section): Remove.
71 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
72 install an amd64-specific regset_from_core_section gdbarch method.
73 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
74 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
75 Moved from amd64-tdep.c and renamed to *_linux*.
76 (amd64_linux_iterate_over_regset_sections): Add regset parameter
77 to each callback invocation. Allow any .reg-xstate size when
78 reading from a core file.
79 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
80 (arm_linux_iterate_over_regset_sections): Add regset parameter to
81 each callback invocation.
82 (arm_linux_init_abi): No longer set the regset_from_core_section
84 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
85 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
86 each callback invocation.
87 (ppc_linux_init_abi): No longer set the regset_from_core_section
89 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
90 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
91 (s390_regset_from_core_section): Remove.
92 (s390_iterate_over_regset_sections): Add regset parameter to each
94 (s390_gdbarch_init): No longer set the regset_from_core_section
95 gdbarch method. Drop initialization of deleted tdep fields.
97 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
99 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
100 (amd64_linux_iterate_over_regset_sections): New.
101 (amd64_linux_init_abi_common): Don't install the regset section
102 list, but the new iterator in gdbarch.
103 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
104 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
105 (arm_linux_iterate_over_regset_sections): ...here. New function.
106 (arm_linux_init_abi): Set iterator instead of section list.
107 * corelow.c (get_core_registers_cb): New function, logic moved
109 (get_core_registers): ...loop body here. Use new iterator method
110 instead of walking through the regset section list.
111 * gdbarch.sh: Remove 'core_regset_sections'. New method
112 'iterate_over_regset_sections'. New typedef
113 'iterate_over_regset_sections_cb'.
114 * gdbarch.c: Regenerate.
115 * gdbarch.h: Likewise.
116 * i386-linux-tdep.c (i386_linux_regset_sections)
117 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
119 (i386_linux_iterate_over_regset_sections): New.
120 (i386_linux_init_abi): Don't choose a regset section list, but
121 install new iterator in gdbarch.
122 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
123 (linux_collect_regset_section_cb): New function, logic moved
125 (linux_collect_thread_registers): ...loop body here. Use iterator
126 method instead of walking through list.
127 (linux_make_corefile_notes_1): Check for presence of iterator
128 method instead of regset section list.
129 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
130 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
131 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
132 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
133 (ppc_linux_iterate_over_regset_sections): ...here. New function.
134 (ppc_linux_init_abi): Don't choose from above regset section
135 lists, but install new iterator in gdbarch.
136 * regset.h (struct core_regset_section): Remove.
137 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
138 have_linux_v1, have_linux_v2, and have_tdb.
139 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
140 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
141 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
142 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
143 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
144 (s390_iterate_over_regset_sections): ...here. New function. Use
146 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
147 regset section lists, but install new iterator.
149 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
151 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
153 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
155 * progspace.c (print_program_space): Don't prune program spaces
156 before printing them.
158 2014-09-25 Pedro Alves <palves@redhat.com>
160 * infrun.c (user_visible_resume_ptid): Don't check
161 singlestep_breakpoints_inserted_p.
163 2014-09-25 Pedro Alves <palves@redhat.com>
165 * breakpoint.c (should_be_inserted): Add debug output.
167 2014-09-25 Pedro Alves <palves@redhat.com>
169 * infrun.c (stepping_past_instruction_at)
170 (clear_exit_convenience_vars): Point at infrun.h instead of
172 (handle_signal_stop): Fix typo.
174 2014-09-24 Yao Qi <yao@codesourcery.com>
176 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
179 2014-09-22 Gary Benson <gbenson@redhat.com>
181 * target.c (target_stop): Updated comment.
183 2014-09-22 Gary Benson <gbenson@redhat.com>
185 * target/target.h (target_stop_ptid): Renamed as...
186 (target_stop_and_wait): New function. Updated comment.
188 (target_continue_ptid): Renamed as...
189 (target_continue_no_signal): New function. Updated comment.
192 2014-09-22 Pedro Alves <palves@redhat.com>
194 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
196 * breakpoint.c (enum ugll_insert_mode): New enum.
197 (always_inserted_mode): Now a plain boolean.
198 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
199 (breakpoints_always_inserted_mode): Delete.
200 (breakpoints_should_be_inserted_now): New function.
201 (insert_breakpoints): Pass UGLL_INSERT to
202 update_global_location_list instead of calling
203 insert_breakpoint_locations manually.
204 (create_solib_event_breakpoint_1): New, factored out from ...
205 (create_solib_event_breakpoint): ... this.
206 (create_and_insert_solib_event_breakpoint): Use
207 create_solib_event_breakpoint_1 instead of calling
208 insert_breakpoint_locations manually.
209 (update_global_location_list): Change parameter type from boolean
210 to enum ugll_insert_mode. All callers adjusted. Adjust to use
211 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
212 (update_global_location_list_nothrow): Change parameter type from
213 boolean to enum ugll_insert_mode.
214 (_initialize_breakpoint): "breakpoint always-inserted" option is
215 now a boolean command. Update help text.
216 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
217 (breakpoints_should_be_inserted_now): New declaration.
218 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
219 Remove breakpoints_always_inserted_mode check.
220 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
221 * remote.c (remote_start_remote): Likewise.
223 2014-09-22 Pedro Alves <palves@redhat.com>
225 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
226 (insert_breakpoints): Don't call insert_breakpoint_locations here.
227 Instead, pass UGLL_INSERT to update_global_location_list.
228 (update_global_location_list): Change parameter type from boolean
229 to enum ugll_insert_mode. All callers adjusted. Adjust to use
230 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
231 (create_solib_event_breakpoint_1): New, factored out from ...
232 (create_solib_event_breakpoint): ... this.
233 (create_and_insert_solib_event_breakpoint): Use
234 create_solib_event_breakpoint_1 instead of calling
235 insert_breakpoint_locations manually.
236 (update_global_location_list): Handle UGLL_INSERT.
238 2014-09-22 Pedro Alves <palves@redhat.com>
240 * breakpoint.c (enum ugll_insert_mode): New enum.
241 (update_global_location_list)
242 (update_global_location_list_nothrow): Change parameter type from
243 boolean to enum ugll_insert_mode. All callers adjusted.
245 2014-09-19 Joel Brobecker <brobecker@adacore.com>
247 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
248 SystemTap support in GDB.
250 2014-09-19 Don Breazeal <donb@codesourcery.com>
252 * linux-nat.c (linux_handle_extended_wait): Call
253 linux_ptrace_get_extended_event.
254 (wait_lwp): Call linux_is_extended_waitstatus.
255 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
256 and linux_is_extended_waitstatus.
257 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
258 linux_ptrace_get_extended_event.
259 (linux_ptrace_get_extended_event): New function.
260 (linux_is_extended_waitstatus): New function.
261 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
262 (linux_is_extended_waitstatus): New declarations.
264 2014-09-19 Yao Qi <yao@codesourcery.com>
266 * dwarf2read.c (dwarf_decode_lines): Update declaration.
267 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
268 comments. Callers update.
269 (dwarf_decode_lines): Likewise.
270 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
271 comments. Skip the line table if 'lowpc' is greater than
272 'address'. Don't check
273 dwarf2_per_objfile->has_section_at_zero.
275 2014-09-18 Doug Evans <dje@google.com>
277 * NEWS: Mention new "producer" attribute of gdb.Symtab.
278 * python/py-symtab.c (stpy_get_producer): New function.
279 (symtab_object_getset): Add "producer" attribute.
281 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
284 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
285 (do_captured_read_memory_integer): Remove.
286 (safe_read_memory_integer): Use target_read_memory directly instead
287 of catching errors in do_captured_read_memory_integer.
289 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
291 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
294 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
296 * objc-lang.c (find_implementation_from_class): Remove dead code.
298 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
301 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
302 "fprintf_unfiltered (gdb_stdlog...)".
304 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
307 * breakpoint.h (struct watchpoint): New fields val_bitpos and
309 * breakpoint.c (watch_command_1): Use these fields to retain
310 bitfield information.
311 (extract_bitfield_from_watchpoint_value): New function.
312 (watchpoint_check): Use it.
313 (update_watchpoint): Use it. Optimize the address and length of a
314 HW watchpoint pointing to a bitfield.
315 * value.h (unpack_value_bitfield): New prototype.
316 * value.c (unpack_value_bitfield): Make extern.
318 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
320 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
322 * gnu-nat.c (inf_threads): New function.
323 * gnu-nat.h (inf_threads_ftype): New typedef.
324 (inf_threads): New declaration.
325 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
326 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
327 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
328 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
329 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
330 (i386_gnu_dr_get_control): New functions.
331 (reg_addr): New structure.
332 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
333 i386 debugging register hooks.
334 * NEWS: Mention this.
336 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
338 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
339 vector data transfer instructions.
340 (arm_record_coproc_data_proc): Updated.
342 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
344 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
345 arm_record_exreg_ld_st_insn.
346 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
349 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
351 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
352 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
353 processing instructions.
355 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
357 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
358 for advance SIMD struct ld/st insn.
359 (thumb2_record_decode_insn_handler): Replace stub handler with
360 thumb2_record_asimd_struct_ld_st.
362 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
364 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
365 for asimd, vfp and coprocessor insns.
366 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
367 and coprocessor insns.
368 (thumb2_record_coproc_insn): New function.
369 (thumb2_record_decode_insn_handler): Update coprocessor insns record
371 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
374 2014-09-13 Doug Evans <xdje42@gmail.com>
376 * NEWS: Mention new "queue-signal" command.
377 * infcmd.c (queue_signal_command): New function.
378 (_initialize_infcmd): Add new queue-signal command.
380 2014-09-13 Doug Evans <xdje42@gmail.com>
382 * linux-nat.c (wait_lwp): Add debugging printf.
383 (linux_nat_wait_1): Ditto.
385 2014-09-12 Pedro Alves <palves@redhat.com>
387 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
388 (create_and_insert_solib_event_breakpoint): New functions.
389 * breakpoint.h (create_and_insert_solib_event_breakpoint)
390 (remove_solib_event_breakpoints_at_next_stop): New declarations.
391 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
392 (remove_dbx_link_breakpoint): Delete function.
393 (insert_dbx_link_bpt_in_file): Use
394 create_and_insert_solib_event_breakpoint instead of
395 deprecated_insert_raw_breakpoint.
396 (procfs_wait): Don't check whether we hit __dbx_link here.
397 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
399 * solib-irix.c (base_breakpoint): Delete global.
400 (disable_break): Delete function.
401 (enable_break): Use create_solib_event_breakpoint
402 instead of deprecated_insert_raw_breakpoint.
403 (irix_solib_handle_event): New function.
404 (irix_solib_create_inferior_hook): Don't run the target or disable
405 the mapping-complete breakpoint here.
406 (_initialize_irix_solib): Install irix_solib_handle_event as
407 so_ops->handle_event hook.
409 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
410 Ulrich Weigand <uweigand@de.ibm.com>
413 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
414 instead of read_memory_unsigned_integer.
416 2014-09-12 Gary Benson <gbenson@redhat.com>
418 * nat/linux-waitpid.c: Include common-defs.h.
419 [GDBSERVER]: Add FIXME comment.
420 [!GDBSERVER]: Don't include defs.h or signal.h.
421 (linux_debug) [!GDBSERVER]: Remove empty block.
423 2014-09-12 Gary Benson <gbenson@redhat.com>
425 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
426 Don't include defs.h or server.h.
428 2014-09-12 Gary Benson <gbenson@redhat.com>
430 * nat/linux-btrace.c: Include common-defs.h.
431 Don't include defs.h, server.h or gdbthread.h.
432 * nat/linux-btrace.h (struct target_ops): New forward declaration.
434 2014-09-12 Gary Benson <gbenson@redhat.com>
436 * common/agent.c: Include common-defs.h.
437 Don't include defs.h or server.h.
438 * common/buffer.c: Likewise.
439 * common/common-debug.c: Likewise.
440 * common/common-utils.c: Likewise.
441 * common/errors.c: Likewise.
442 * common/filestuff.c: Likewise.
443 * common/format.c: Likewise.
444 * common/gdb_vecs.c: Likewise.
445 * common/print-utils.c: Likewise.
446 * common/ptid.c: Likewise.
447 * common/rsp-low.c: Likewise.
448 * common/signals.c: Likewise.
449 * common/vec.c: Likewise.
450 * common/xml-utils.c: Likewise.
451 * nat/linux-osdata.c: Likewise.
452 * nat/linux-procfs.c: Likewise.
453 * nat/linux-ptrace.c: Likewise.
454 * nat/mips-linux-watch.c: Likewise.
455 * target/waitstatus.c: Likewise.
457 2014-09-12 Tom Tromey <tromey@redhat.com>
458 Gary Benson <gbenson@redhat.com>
460 * common/common-regcache.h: New file.
461 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
462 * regcache.h: Include common-regcache.h.
463 (regcache_read_pc): Don't declare.
464 * regcache.c (get_thread_regcache_for_ptid): New function.
465 * nat/linux-btrace.c: Don't include regcache.h.
466 Include common-regcache.h.
467 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
469 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
471 * regcache.h (struct regset): Declare.
473 2014-09-11 Pedro Alves <palves@redhat.com>
476 * main.c: Include "infrun.h".
477 (catch_command_errors, catch_command_errors_const): Wait for the
478 foreground command to complete.
479 * top.c (maybe_wait_sync_command_done): New function, factored out
481 (maybe_wait_sync_command_done): ... here.
482 * top.h (maybe_wait_sync_command_done): New declaration.
484 2014-09-11 Tom Tromey <tromey@redhat.com>
485 Gary Benson <gbenson@redhat.com>
487 * common/symbol.h: New file.
488 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
489 * minsyms.c (find_minimal_symbol_address): New function.
490 * common/agent.c: Include common/symbol.h.
491 [!GDBSERVER]: Don't include objfiles.h.
492 (agent_look_up_symbols): Use find_minimal_symbol_address.
494 2014-09-11 Gary Benson <gbenson@redhat.com>
496 * target/target.h (target_stop_ptid, target_continue_ptid):
498 * target.c (target_stop_ptid, target_continue_ptid): New
500 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
501 (agent_run_command): Always use target_stop_ptid and
502 target_continue_ptid.
504 2014-09-11 Tom Tromey <tromey@redhat.com>
505 Gary Benson <gbenson@redhat.com>
507 * target/target.h: New file.
508 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
509 * target.h: Include target/target.h.
510 (target_read_memory, target_write_memory): Don't declare.
511 * target.c (target_read_uint32): New function.
512 * common/agent.c: Include target/target.h.
513 [!GDBSERVER]: Don't include target.h.
514 (helper_thread_id): Type changed to uint32_t.
515 (agent_get_helper_thread_id): Use target_read_uint32.
516 (agent_run_command): Always use target_read_memory and
518 (agent_capability): Type changed to uint32_t.
519 (agent_capability_check): Use target_read_uint32.
521 2014-09-11 Gary Benson <gbenson@redhat.com>
523 * common/common-debug.h (show_debug_regs): Declare.
524 * common/common-debug.c (show_debug_regs): Define.
525 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
526 all uses with show_debug_regs. Replace all uses that considered
527 debug_hw_points as a multi-value integer with straight boolean
529 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
530 with show_debug_regs.
531 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
532 all uses with show_debug_regs.
533 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
534 uses with show_debug_regs.
536 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
538 * findvar.c (address_from_register): Handle targets requiring
539 a special conversion routine even for plain pointer types.
541 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
543 * rs6000-nat.c (exec_one_dummy_insn): Remove.
544 (store_register): Do not call exec_one_dummy_insn.
546 2014-09-10 Joel Brobecker <brobecker@adacore.com>
548 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
549 dereference it first. Use value_enclosing_type instead of
551 (ada_array_length): Likewise.
553 2014-09-10 Joel Brobecker <brobecker@adacore.com>
555 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
556 Adjust function implementation and documentation accordingly.
557 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
558 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
559 Update call to ada_value_ptr_subscript.
561 2014-09-10 Joel Brobecker <brobecker@adacore.com>
563 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
564 instead of VAL's type.
566 2014-09-10 Joel Brobecker <brobecker@adacore.com>
568 * amd64-linux-nat.c: Add <sys/uio.h> #include.
570 2014-09-09 Doug Evans <xdje42@gmail.com>
573 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
574 last parameter to pkg-config, not first.
575 * configure.ac: Pass --with-guile provided pkg-config path to
576 GDB_GUILE_PROGRAM_NAMES.
577 * configure: Regenerate.
579 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
581 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
584 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
586 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
587 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
588 the list of sections determining GDB_OSABI_IRIX.
590 2014-09-09 James Hogan <james.hogan@imgtec.com>
592 * MAINTAINERS (Write After Approval): Add "James Hogan".
594 2014-09-09 James Hogan <james.hogan@imgtec.com>
596 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
598 2014-09-09 Joel Brobecker <brobecker@adacore.com>
600 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
602 2014-09-08 Doug Evans <xdje42@gmail.com>
605 * guile.c: #include <signal.h>.
606 (_initialize_guile): Block SIGCHLD while initializing Guile.
608 Replaces the following, which is reverted.
610 2014-07-26 Doug Evans <xdje42@gmail.com>
613 * configure.ac: Add check for header gc/gc.h.
614 Add check for function setenv.
615 * configure: Regenerate.
616 * config.in: Regenerate.
617 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
619 2014-09-08 Doug Evans <xdje42@gmail.com>
621 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
622 with named constant. Fix style of pointer comparison.
623 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
625 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
628 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
629 decide whether we display the command on "show user".
630 * cli/cli-script.c (show_user_1): Only verify cmdlines after
631 printing command name.
632 * cli/cli-decode.h (cli_user_command_p): Declare new function.
633 * cli/cli-decode.c (cli_user_command_p): Create helper function
634 to verify whether cmd_list_element is a user-defined command.
636 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
639 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
640 Fix goto out of TRY_CATCH.
642 2014-09-06 Doug Evans <xdje42@gmail.com>
643 Tom Tromey <tromey@redhat.com>
646 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
647 $_any_caller_matches.
648 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
649 * python/lib/gdb/function/caller_is.py: New file.
651 2014-09-06 Doug Evans <xdje42@gmail.com>
653 * infcmd.c (program_info): Fix typo.
655 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
658 * stap-probe.c (stap_parse_single_operand): Delete unused variable
659 'number'. New variable 'has_digit'. Rewrite code to deal with
660 subexpressions on SDT probes.
662 2014-09-04 Pedro Alves <palves@redhat.com>
664 * c-exp.y (parse_number): Skip handling base-switching prefixes if
665 the input is only one character long.
667 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
670 * f-valprint.c (f_val_print): Specify the correct print option to
671 use when printing integer values.
673 2014-09-04 Gary Benson <gbenson@redhat.com>
675 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
676 Remove code to cope with LWPs wrapped as PIDs.
677 Add assertions to ensure no wrapped LWPs are passed.
679 2014-09-04 Pedro Alves <palves@redhat.com>
681 * value.c (value_ranges_copy_adjusted): New function, factored out
683 (value_contents_copy_raw): ... here.
684 (unpack_value_bits_as_long_1): Rename back to ...
685 (unpack_bits_as_long): ... this. Remove 'original_value' and
686 'result' parameters. Change return type to LONGEST.
687 (unpack_value_bits_as_long): Delete.
688 (unpack_value_field_as_long_1): Delete.
689 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
690 (unpack_value_bitfield): New function.
691 (value_field_bitfield): Reimplement using unpack_value_bitfield.
692 (value_fetch_lazy): Use unpack_value_bitfield.
693 * value.h (unpack_value_bits_as_long): Delete declaration.
695 2014-09-03 Sasha Smundak <asmundak@google.com>
697 * python/py-frame.c (frapy_read_register): New function.
699 2014-09-03 James Hogan <james.hogan@imgtec.com>
701 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
702 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
704 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
707 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
709 (add_cmd): Set "completer_handle_brkchars" to NULL.
710 * cli/cli-decode.h (struct cmd_list_element)
711 <completer_handle_brkchars>: New field.
712 * command.h (completer_ftype_void): New typedef.
713 (set_cmd_completer_handle_brkchars): New prototype.
714 * completer.c (set_gdb_completion_word_break_characters): New
716 (complete_line_internal): Call "completer_handle_brkchars"
717 callback from command.
718 * completer.h: Include "command.h".
719 (set_gdb_completion_word_break_characters): New prototype.
720 * python/py-cmd.c (cmdpy_completer_helper): New function.
721 (cmdpy_completer_handle_brkchars): New function.
722 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
723 (cmdpy_init): Set completer_handle_brkchars to
724 cmdpy_completer_handle_brkchars.
726 2014-09-03 Gary Benson <gbenson@redhat.com>
728 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
729 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
730 Loop conditions changed to equivalent form.
731 (struct x86_debug_reg_state): Updated dr_ref_count comment.
732 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
733 ALL_DEBUG_ADDRESS_REGISTERS.
735 2014-09-03 Joel Brobecker <brobecker@adacore.com>
737 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
740 2014-09-02 Doug Evans <dje@google.com>
742 * typeprint.c (find_global_typedef): Fix comment.
744 2014-09-02 Gary Benson <gbenson@redhat.com>
746 * i386-nat.h: Renamed as...
747 * x86-nat.h: New file. All type, function and variable name
748 prefixes changed from "i386_" to "x86_". All references updated.
749 * i386-nat.c: Renamed as...
750 * x86-nat.c: New file. All type, function and variable name
751 prefixes changed from "i386_" to "x86_". All references updated.
752 * common/i386-xstate.h: Renamed as...
753 * common/x86-xstate.h: New file. All type, function and variable
754 name prefixes changed from "i386_" to "x86_". All references
756 * nat/i386-cpuid.h: Renamed as...
757 * nat/x86-cpuid.h: New file. All type, function and variable name
758 prefixes changed from "i386_" to "x86_". All references updated.
759 * nat/i386-gcc-cpuid.h: Renamed as...
760 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
761 name prefixes changed from "i386_" to "x86_". All references
763 * nat/i386-dregs.h: Renamed as...
764 * nat/x86-dregs.h: New file. All type, function and variable name
765 prefixes changed from "i386_" to "x86_". All references updated.
766 * nat/i386-dregs.c: Renamed as...
767 * nat/x86-dregs.c: New file. All type, function and variable name
768 prefixes changed from "i386_" to "x86_". All references updated.
770 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
772 * varobj.c (_initialize_varobj): Move to the end of file.
774 2014-08-29 Gary Benson <gbenson@redhat.com>
776 * common/common-exceptions.h: New file.
777 * common/common-exceptions.c: Likewise.
778 * Makefile.in (SFILES): Add common/common-exceptions.c.
779 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
780 (COMMON_OBS): Add common-exceptions.o.
781 (common-exceptions.o): New rule.
782 * exceptions.h (common-exceptions.h): Include.
783 (gdb_setjmp.h): Do not include.
784 (return_reason): Moved to common-exceptions.h.
785 (enum return_reason): Likewise.
786 (RETURN_MASK): Likewise.
787 (typedef return_mask): Likewise.
788 (enum errors): Likewise.
789 (struct gdb_exception): Likewise.
790 (exceptions_state_mc_init): Likewise.
791 (exceptions_state_mc_action_iter): Likewise.
792 (exceptions_state_mc_action_iter_1): Likewise.
793 (TRY_CATCH): Likewise.
794 (throw_exception): Likewise.
795 (throw_verror): Likewise.
796 (throw_vquit): Likewise.
797 (throw_error): Likewise.
798 (throw_quit): Likewise.
799 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
800 (enum catcher_action): Likewise.
801 (struct catcher): Likewise.
802 (current_catcher): Likewise.
803 (catcher_list_size): Likewise.
804 (exceptions_state_mc_init): Likewise.
805 (catcher_pop): Likewise.
806 (exceptions_state_mc): Likewise.
807 (exceptions_state_mc_action_iter): Likewise.
808 (exceptions_state_mc_action_iter_1): Likewise.
809 (throw_exception): Likewise.
810 (exception_messages): Likewise.
811 (exception_messages_size): Likewise.
812 (throw_it): Likewise.
813 (throw_verror): Likewise.
814 (throw_vquit): Likewise.
815 (throw_error): Likewise.
816 (throw_quit): Likewise.
817 (prepare_to_throw_exception): New function.
819 2014-08-29 Gary Benson <gbenson@redhat.com>
821 * common/gdb_setjmp.h: New file.
822 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
823 * configure.ac: Move sigsetjmp check...
824 * common/common.m4: ...here.
825 * configure: Regenerate.
826 * cp-support.c (SIGJMP_BUF): Delete.
827 (SIGSETJMP): Likewise.
828 (SIGLONGJMP): Likewise.
829 * exceptions.h (gdb_setjmp.h): Include.
830 (setjmp.h): Do not include.
831 (EXCEPTIONS_SIGJMP_BUF): Delete.
832 (EXCEPTIONS_SIGSETJMP): Likewise.
833 (EXCEPTIONS_SIGLONGJMP): Likewise.
834 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
836 * exceptions.c: Likewise.
838 2014-08-29 Gary Benson <gbenson@redhat.com>
840 * cleanups.h: Moved to...
841 * common/cleanups.h: New file.
842 * cleanups.c: Moved to...
843 * common/cleanups.c: New file. Include common-defs.h and
844 cleanups.h. Do not include defs.h.
845 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
846 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
847 (cleanups.o): New rule.
849 2014-08-29 Gary Benson <gbenson@redhat.com>
851 * common/errors.h (internal_warning): New declaration.
852 (internal_vwarning): Likewise.
853 * common/errors.c (internal_warning): New function.
854 * utils.h (internal_warning): Don't declare.
855 (internal_vwarning): Likewise.
856 * utils.c (internal_warning): Removed.
858 2014-08-29 Gary Benson <gbenson@redhat.com>
860 * main.c (captured_main): Use warning during startup.
861 Prefix startup warning messages with command name.
863 2014-08-29 Gary Benson <gbenson@redhat.com>
865 * main.c (captured_main): Handle usage errors with error.
867 2014-08-29 Gary Benson <gbenson@redhat.com>
869 * go32-nat.c (go32_create_inferior): Replace a fprintf/
870 exit pair with a call to error. Wrap the message with _().
872 2014-08-29 Gary Benson <gbenson@redhat.com>
874 * main.c (captured_main): Replace a fprintf/exit
875 pair with a call to error. Wrap the message with _().
877 2014-08-29 Gary Benson <gbenson@redhat.com>
879 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
880 pairs with calls to error. Wrap the message with _().
882 2014-08-29 Gary Benson <gbenson@redhat.com>
884 * utils.c (vwarning): Protect calls to target_terminal_ours
887 2014-08-29 Gary Benson <gbenson@redhat.com>
889 * exceptions.c (print_flush): Protect calls to
890 target_terminal_ours and wrap_here.
892 2014-08-29 Gary Benson <gbenson@redhat.com>
894 * utils.h (filtered_printing_initialized): New declaration.
895 * utils.c (abort_with_message): New function.
896 (internal_vproblem): Use abort_with_message for first level
897 recursive internal problems, and if gdb_stderr is not set up.
898 Protect calls to target_terminal_ours, begin_line and query.
900 2014-08-28 Doug Evans <dje@google.com>
902 * symtab.c (in_prologue): Move definition to better spot.
903 (skip_prologue_using_sal): Ditto.
905 2014-08-28 Doug Evans <dje@google.com>
907 * symtab.c (find_function_start_sal): Move definition to better spot.
909 2014-08-28 Yao Qi <yao@codesourcery.com>
911 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
912 found_stack_adjust in forward scan. Remove condition check
913 on found_stack_adjust which is always true. Indent the code.
915 2014-08-28 Yao Qi <yao@codesourcery.com>
917 * dwarf2read.c (dwarf_decode_lines): Update declaration.
918 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
919 (dwarf_decode_lines): Remove argument
920 want_line_info. Remove condition check on want_line_info.
923 2014-08-27 Doug Evans <dje@google.com>
925 * dwarf2read.c (dwarf_record_line): Fix typo.
927 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
929 * target.h (struct target_ops::to_terminal_save_ours): Remove
931 (target_terminal_save_ours): Remove macro.
932 * target-delegates.c: Regenerate.
933 * inf-child.c (inf_child_target): Don't set the nonexistent
934 field to_terminal_save_ours.
935 * inferior.h (child_terminal_save_ours): Remove declaration.
936 * terminal.h (gdb_save_tty_state): New declaration.
937 * inflow.c (child_terminal_save_ours): Rename to ...
938 (gdb_save_tty_state): ... this.
939 * tui/tui.c: Include terminal.h.
940 (tui_enable): Use gdb_save_tty_state instead of
941 target_terminal_save_ours.
942 (tui_disable): Likewise.
944 2014-08-25 Doug Evans <dje@google.com>
946 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
947 Pass NULL instead of 0 for context pointer.
949 2014-08-25 Yao Qi <yao@codesourcery.com>
951 * dwarf2read.c: Fix grammatical error.
953 2014-08-24 Yao Qi <yao@codesourcery.com>
955 * dwarf2read.c (scan_partial_symbols): Update comments.
956 Rename argument 'need_pc' with 'set_addrmap'.
957 (add_partial_namespace): Rename argument 'need_pc' with
959 (add_partial_module): Likewise.
960 (add_partial_subprogram): Likewise. Update comments.
961 (dwarf2_name): Fix typo.
963 2014-08-22 Doug Evans <dje@google.com>
966 * dwarf2read.c (dwarf_record_line_p): New function.
967 (dwarf_decode_lines_1): Ignore subsequent line number entries
968 for the same line if any entry had a non-zero discriminator.
970 2014-08-22 Doug Evans <dje@google.com>
972 * buildsym.h (record_line_ftype): New typedef.
973 (record_line): Use it.
974 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
975 (dwarf_decode_lines_1): Call them.
977 2014-08-22 Yao Qi <yao@codesourcery.com>
979 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
980 (ctf_end): Remove code.
982 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
984 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
985 (linux_make_corefile_notes): call update_thread_list, protected against
988 2014-08-21 Pedro Alves <palves@redhat.com>
990 * infcmd.c (attach_command): Remove comment.
992 2014-08-21 Bin Cheng <bin.cheng@arm.com>
994 * aarch64-linux-nat.c (dr_changed_t): Change the type from
995 unsigned LONGEST to ULONGEST.
997 2014-08-20 Pedro Alves <palves@redhat.com>
999 * Makefile.in (check-read1): New rule.
1001 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1003 * value.c (value_from_contents_and_address): Strip resolved_type's
1004 typedef layers before checking its TYPE_DATA_LOCATION.
1006 2014-08-20 Pedro Alves <palves@redhat.com>
1008 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1010 2014-08-20 Yao Qi <yao@codesourcery.com>
1012 * amd64-tdep.c (amd64_classify): Add a blank line after the
1013 example. Move "*/" to a new line.
1014 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1015 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1016 * dwarf2read.c (psymtab_include_file_name): Likewise.
1018 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1019 Pedro Alves <palves@redhat.com>
1023 * ada-lang.c (coerce_unspec_val_to_type): Use
1024 value_contents_copy_raw.
1025 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1026 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1027 * cp-valprint.c (cp_print_value_fields): Let the common printing
1028 code handle optimized out values.
1029 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1030 * d-valprint.c (dynamic_array_type): Use
1031 value_bits_any_optimized_out.
1032 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1033 check_any_valid fields.
1034 (check_pieced_value_bits): Delete and inline ...
1035 (check_pieced_synthetic_pointer): ... here.
1036 (check_pieced_value_validity): Delete.
1037 (check_pieced_value_invalid): Delete.
1038 (pieced_value_funcs): Remove check_validity and check_any_valid
1040 (read_pieced_value): Use mark_value_bits_optimized_out.
1041 (write_pieced_value): Switch to use
1042 mark_value_bytes_optimized_out.
1043 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1044 of assuming the whole value is optimized out.
1045 * findvar.c (read_frame_register_value): Remove special handling
1046 of optimized out registers.
1047 (value_from_register): Use mark_value_bytes_optimized_out.
1048 * frame-unwind.c (frame_unwind_got_optimized): Use
1049 mark_value_bytes_optimized_out.
1050 * jv-valprint.c (java_value_print): Adjust.
1051 (java_print_value_fields): Let the common printing code handle
1052 optimized out values.
1053 * mips-tdep.c (mips_print_register): Remove special handling of
1054 optimized out registers.
1055 * opencl-lang.c (lval_func_check_validity): Delete.
1056 (lval_func_check_any_valid): Delete.
1057 (opencl_value_funcs): Remove check_validity and check_any_valid
1059 * p-valprint.c (pascal_object_print_value_fields): Let the common
1060 printing code handle optimized out values.
1061 * stack.c (read_frame_arg): Remove special handling of optimized
1062 out values. Fetch both VAL and ENTRYVAL before comparing
1063 contents. Adjust to value_available_contents_eq rename.
1064 * valprint.c (valprint_check_validity)
1065 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1066 (val_print_array_elements): Adjust.
1067 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1068 (value_bits_any_optimized_out): New function.
1069 (value_entirely_covered_by_range_vector): New function, factored
1070 out from value_entirely_unavailable.
1071 (value_entirely_unavailable): Reimplement.
1072 (value_entirely_optimized_out): New function.
1073 (insert_into_bit_range_vector): New function, factored out from
1074 mark_value_bits_unavailable.
1075 (mark_value_bits_unavailable): Reimplement.
1076 (struct ranges_and_idx): New struct.
1077 (find_first_range_overlap_and_match): New function, factored out
1078 from value_available_contents_bits_eq.
1079 (value_available_contents_bits_eq): Rename to ...
1080 (value_contents_bits_eq): ... this. Check both unavailable
1081 contents and optimized out contents.
1082 (value_available_contents_eq): Rename to ...
1083 (value_contents_eq): ... this.
1084 (allocate_value_lazy): Remove reference to the old optimized_out
1086 (allocate_optimized_out_value): Use
1087 mark_value_bytes_optimized_out.
1088 (require_not_optimized_out): Adjust to check whether the
1089 optimized_out vec is empty.
1090 (ranges_copy_adjusted): New function, factored out from
1091 value_contents_copy_raw.
1092 (value_contents_copy_raw): Also copy the optimized out ranges.
1093 Assert the destination ranges aren't optimized out.
1094 (value_contents_copy): Update comment, remove call to
1095 require_not_optimized_out.
1096 (value_contents_equal): Adjust to check whether the optimized_out
1098 (set_value_optimized_out, value_optimized_out_const): Delete.
1099 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1101 (value_entirely_optimized_out, value_bits_valid): Delete.
1102 (value_copy): Take a VEC copy of the 'optimized_out' field.
1103 (value_primitive_field): Remove special handling of optimized out.
1104 (value_fetch_lazy): Assert that lazy values have no unavailable
1105 regions. Use value_bits_any_optimized_out. Remove some special
1106 handling for optimized out values.
1107 * value.h: Add intro comment about <optimized out> and
1109 (struct lval_funcs): Remove check_validity and check_any_valid
1111 (set_value_optimized_out, value_optimized_out_const): Remove.
1112 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1114 (value_bits_any_optimized_out): New declaration.
1115 (value_bits_valid): Delete declaration.
1116 (value_available_contents_eq): Rename to ...
1117 (value_contents_eq): ... this, and extend comments.
1119 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1121 Fix -fsanitize=address on unreadable inferior strings.
1122 * valprint.c (val_print_string): Fix access before BUFFER.
1124 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1126 * target.c (target_struct_size): Remove.
1127 (target_struct_allocsize): Remove.
1128 (DEFAULT_ALLOCSIZE): Remove.
1129 (target_ops_p): New typedef.
1130 (DEF_VEC_P (target_ops_p)): New vector type.
1131 (target_structs): Change type to VEC (target_ops_p).
1132 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1133 (find_default_run_target): Rewrite for loop following changes to
1136 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1138 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1139 Adjust code accordingly. Adjust function description comment.
1141 2014-08-19 Yao Qi <yao@codesourcery.com>
1143 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1146 2014-08-19 Alan Modra <amodra@gmail.com>
1148 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1149 * config.in: Regenerate.
1150 * configure: Regenerate.
1152 2014-08-19 Tom Tromey <tromey@redhat.com>
1153 Gary Benson <gbenson@redhat.com>
1155 * common/common-debug.h: New file.
1156 * common/common-debug.c: Likewise.
1157 * debug.c: Likewise.
1158 * Makefile.in (SFILES): Add common/common-debug.c.
1159 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1160 (COMMON_OBS): Add common-debug.o and debug.o.
1161 (common-debug.o): New rule.
1162 * common/common-defs.h: Include common-debug.h.
1163 * common/agent.c (debug_agent_printf): New function.
1164 (DEBUG_AGENT): Redefine.
1165 * nat/i386-dregs.c (debug_printf): Undefine.
1167 2014-08-19 Gary Benson <gbenson@redhat.com>
1169 * common/common-defs.h: Include print-utils.h.
1170 * utils.h: Do not include print-utils.h.
1172 2014-08-19 Tom Tromey <tromey@redhat.com>
1173 Gary Benson <gbenson@redhat.com>
1175 * common/common-types.h: New file.
1176 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1177 * common/common-defs.h: Include common-types.h.
1178 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1181 2014-08-19 Tom Tromey <tromey@redhat.com>
1182 Gary Benson <gbenson@redhat.com>
1184 * common/errors.h: New file.
1185 * common/errors.c: Likewise.
1186 * Makefile.in (SFILES): Add common/errors.c.
1187 (HFILES_NO_SRCDIR): Add common/errors.h.
1188 (COMMON_OBS): Add errors.o.
1189 (errors.o): New rule.
1190 * common/common-defs.h: Include errors.h.
1191 * utils.h (perror_with_name, error, verror, warning, vwarning):
1193 * common/common-utils.h: (malloc_failure, internal_error):
1196 2014-08-19 Gary Benson <gbenson@redhat.com>
1198 * utils.c (internal_vproblem): Always print the message.
1200 2014-08-18 Doug Evans <dje@google.com>
1202 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1204 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1206 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1207 Return 0 if TYPE is dynamic.
1208 (print_range): Add handling of dynamic ranges.
1210 2014-08-18 Keven Boell <keven.boell@intel.com>
1211 Joel Brobecker <brobecker@adacore.com>
1213 * gdbtypes.h (struct main_type): Add field "data_location".
1214 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1215 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1216 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1217 a dynamic data location.
1218 (resolve_dynamic_type): Add DW_AT_data_location handling.
1219 (copy_recursive, copy_type): Copy the data_location information
1221 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1222 * value.c (value_from_contents_and_address): Add
1223 DW_AT_data_location handling.
1225 2014-08-18 Keven Boell <keven.boell@intel.com>
1226 Joel Brobecker <brobecker@adacore.com>
1228 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1229 field "get_object_address".
1230 * dwarf2expr.c (execute_stack_op): Add handling for
1231 DW_OP_push_object_address.
1232 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1233 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1234 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1235 (dwarf_expr_get_obj_addr): New function.
1236 (dwarf_expr_ctx_funcs): Add get_object_address field.
1237 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1238 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1239 (dwarf2_evaluate_property): Add parameter "address". Use it.
1240 (needs_get_obj_addr): New function.
1241 (needs_frame_ctx_funcs): Add get_object_address field.
1242 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1243 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1244 (resolve_dynamic_array): Likewise.
1246 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1248 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1249 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1250 fixed value for records and unions for which some GNAT encodings
1253 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1255 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1256 rewrite to avoid "else if" and "else" constructs. Should be
1257 a no-op in practice.
1259 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1261 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1264 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1267 * eval.c: Update all calls to find_overload_match.
1268 * valarith.c: Likewise.
1269 (value_user_defined_cpp_op, value_user_defined_op): New
1270 argument NOSIDE. Update all callers.
1271 * valops.c (find_overload_match): New argument NOSIDE.
1272 * value.h (find_overload_match): Update signature.
1274 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1276 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1277 'items' methods instead of 'iteritems' method on dictionaries.
1279 2014-08-15 Doug Evans <dje@google.com>
1281 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1284 2014-08-15 Doug Evans <dje@google.com>
1286 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1288 2014-08-15 Doug Evans <dje@google.com>
1290 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1292 2014-08-15 Doug Evans <dje@google.com>
1294 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1297 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1299 * dcache.h: Include target.h, to avoid compile time warnings.
1301 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1303 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1304 frame_info" partial declaration.
1305 * gdbarch.h: Regenerate.
1307 2014-08-15 Yao Qi <yao@codesourcery.com>
1309 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1310 Add parameter 'decode_for_pst_p'. Callers update.
1312 2014-08-13 Yao Qi <yao@codesourcery.com>
1315 * configure.ac: Use local variable 'pos'.
1316 * configure: Regenerated.
1318 2014-08-11 Doug Evans <dje@google.com>
1320 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1321 message, it is redundant with "Reading symbols from ..." message.
1323 2014-08-10 Doug Evans <xdje42@gmail.com>
1325 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1327 2014-08-09 Yao Qi <yao@codesourcery.com>
1330 * remote.c (remote_xfer_partial): Remove dead code.
1332 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1334 * ia64-linux-tdep.c: Include "regset.h".
1335 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1336 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1337 (ia64_linux_supply_fpregset): New function.
1338 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1339 (ia64_linux_regset_from_core_section): New function.
1340 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1343 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1345 * m68klinux-tdep.c: Include "regset.h".
1346 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1347 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1348 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1349 (m68k_linux_regset_from_core_section): New function.
1350 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1353 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1355 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1356 function. Move logic to...
1357 (tilegx_linux_regmap): ... this new register map.
1358 (tilegx_linux_regset): Refer to register map, replace supply
1359 method by regcache_supply_regset, and add collect method.
1360 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1361 TILEGX_FIRST_EASY_REGNUM.
1363 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1365 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1366 that calls regcache_supply_regset and handles the EPC register
1367 separately. Move main logic to...
1368 (score7_linux_gregmap): ... this new register map.
1369 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1370 (score7_linux_gregset): Refer to register map. Add collect method.
1371 (score7_linux_regset_from_core_section): Replace
1372 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1373 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1374 (struct regset): Delete unused forward declaraction.
1375 (struct pt_regs): Delete structure definition.
1376 (elf_gregset_t): Delete typedef.
1378 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1380 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1381 (nios2_core_regset): Add collect method.
1383 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1385 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1386 platform-independent and don't write to read-only input buffer.
1387 (m32r_linux_collect_gregset): New function.
1388 (m32r_linux_gregset): Add collect method.
1390 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1392 * hppa-linux-tdep.c (greg_map): Rename to...
1393 (hppa_linux_gregmap): ... this. Also convert to
1394 regcache_map_entry format.
1395 (hppa_linux_supply_regset): Delete function.
1396 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1397 (hppa_linux_fpregmap): ... this new register map.
1398 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1399 register map, replace supply method by regcache_supply_regset, and
1400 add collect method regcache_collect_regset.
1402 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1404 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1405 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1406 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1407 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1408 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1409 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1410 (frv_linux_supply_gregset): Replace main logic by call to
1411 regcache_supply_regset, but keep clearing gr32-gr63.
1412 (frv_linux_supply_fpregset): Delete function.
1413 (frv_linux_gregset): Refer to appropriate register map and add
1414 regcache_collect_regset as the collect method.
1415 (frv_linux_fpregset): Likewise. Also exchange the supply method
1416 by regcache_supply_regset.
1418 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1420 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1421 by call to alpha_supply_int_regs.
1422 (alpha_linux_collect_gregset): New function.
1423 (alpha_linux_supply_fpregset): Replace logic by call to
1424 alpha_supply_fp_regs.
1425 (alpha_linux_collect_fpregset): New function.
1426 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1428 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1430 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1431 by call to regcache_collect_regset.
1432 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1433 instead of aarch64_linux_supply_gregset/_fpregset.
1434 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1435 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1436 header file instead.
1437 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1438 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1439 functions. Move logic to ...
1440 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1442 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1443 refer to new register maps, replace *_regset_from_core by
1444 regcache_supply_regset, and also use regcache_collect_regset.
1445 * aarch64-linux-tdep.h: Include "regset.h".
1446 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1448 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1449 macros, moved from C source file.
1450 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1451 variable declarations.
1453 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1455 * s390-linux-nat.c: Include "regset.h".
1456 (regmap_gregset): Delete macro.
1457 (s390_64_regmap_gregset): New register map for
1458 regcache_supply/_collect_regset.
1459 (s390_64_gregset): New regset.
1460 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1461 (regmap_fpregset): Delete macro.
1462 (s390_native_supply, s390_native_collect): Delete functions.
1463 (supply_gregset, fill_gregset): Replace s390-specific regmap
1464 handling by a call to regcache_supply/_collect_regset.
1465 (supply_fpregset, fill_fpregset): Call regcache_supply/
1466 _collect_regset instead of s390_native_supply/_collect.
1467 (fetch_regset, store_regset): Likewise. Also change the last
1468 parameter to a regset instead of a regmap.
1469 (s390_linux_fetch_inferior_registers)
1470 (390_linux_store_inferior_registers): Adjust last parameter in
1471 calls to fetch_regset and store_regset.
1472 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1473 (s390_gregmap): ... this. Also make static const and convert to
1474 regcache_map_entry format.
1475 (s390x_regmap_gregset): Delete.
1476 (s390_regmap_fpregset): Rename to...
1477 (s390_fpregmap): ... this. Make static const and convert to
1478 regcache_map_entry format.
1479 (s390_regmap_upper, s390_regmap_last_break)
1480 (s390x_regmap_last_break, s390_regmap_system_call)
1481 (s390_regmap_tdb): Likewise.
1482 (s390_supply_regset, s390_collect_regset): Remove functions.
1483 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1485 (s390_gregset, s390_fpregset, s390_upper_regset)
1486 (s390_last_break_regset, s390x_last_break_regset)
1487 (s390_system_call_regset, s390_tdb_regset): Make global and
1488 replace s390_supply/_collect_regset by regcache_supply/
1490 (s390x_gregset): Delete.
1491 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1492 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1493 (s390_regmap_fpregset, s390_regmap_last_break)
1494 (s390x_regmap_last_break, s390_regmap_system_call)
1495 (s390_regmap_tdb): Delete global variable declarations.
1496 (s390_gregset, s390_fpregset, s390_last_break_regset)
1497 (s390x_last_break_regset, s390_system_call_regset)
1498 (s390_tdb_regset): New global variable declarations.
1500 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1502 * regcache.c: Include "regset.h".
1503 (regcache_transfer_regset): New local function.
1504 (regcache_supply_regset, regcache_collect_regset): New functions.
1505 * regcache.h (struct regcache_map_entry): New structure.
1506 (REGCACHE_MAP_SKIP): New enum value.
1507 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1509 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1511 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1512 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1513 (ppc_linux_collect_gregset ): Likewise.
1514 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1515 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1516 (ppc_collect_vrregset): Likewise.
1517 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1520 2014-08-07 Yao Qi <yao@codesourcery.com>
1522 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1523 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1524 * remote.c (remote_read_bytes): Likewise.
1526 2014-08-07 Yao Qi <yao@codesourcery.com>
1528 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1530 2014-08-07 Yao Qi <yao@codesourcery.com>
1533 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1534 TARGET_XFER_OK instead of 0.
1536 2014-08-07 Gary Benson <gbenson@redhat.com>
1538 * common/common-defs.h: Include errno.h.
1539 * defs.h: Do not include errno.h.
1540 * ada-typeprint.c: Likewise.
1541 * c-typeprint.c: Likewise.
1542 * core-regset.c: Likewise.
1543 * corefile.c: Likewise.
1544 * corelow.c: Likewise.
1545 * event-loop.c: Likewise.
1546 * f-typeprint.c: Likewise.
1547 * gnu-nat.c: Likewise.
1548 * go32-nat.c: Likewise.
1549 * i386gnu-nat.c: Likewise.
1550 * m2-typeprint.c: Likewise.
1551 * nat/linux-btrace.c: Likewise.
1552 * p-typeprint.c: Likewise.
1553 * procfs.c: Likewise.
1554 * remote-sim.c: Likewise.
1555 * rs6000-nat.c: Likewise.
1556 * target.c: Likewise.
1557 * typeprint.c: Likewise.
1558 * ui-file.c: Likewise.
1559 * valops.c: Likewise.
1560 * valprint.c: Likewise.
1562 2014-08-07 Gary Benson <gbenson@redhat.com>
1564 * common/common-defs.h: Include string.h.
1565 * aarch64-tdep.c: Do not include string.h.
1566 * ada-exp.y: Likewise.
1567 * ada-lang.c: Likewise.
1568 * ada-lex.l: Likewise.
1569 * ada-typeprint.c: Likewise.
1570 * ada-valprint.c: Likewise.
1571 * aix-thread.c: Likewise.
1572 * alpha-linux-tdep.c: Likewise.
1573 * alpha-mdebug-tdep.c: Likewise.
1574 * alpha-nat.c: Likewise.
1575 * alpha-osf1-tdep.c: Likewise.
1576 * alpha-tdep.c: Likewise.
1577 * alphanbsd-tdep.c: Likewise.
1578 * amd64-dicos-tdep.c: Likewise.
1579 * amd64-linux-tdep.c: Likewise.
1580 * amd64-nat.c: Likewise.
1581 * amd64-sol2-tdep.c: Likewise.
1582 * amd64fbsd-tdep.c: Likewise.
1583 * amd64obsd-tdep.c: Likewise.
1584 * arch-utils.c: Likewise.
1585 * arm-linux-nat.c: Likewise.
1586 * arm-linux-tdep.c: Likewise.
1587 * arm-tdep.c: Likewise.
1588 * arm-wince-tdep.c: Likewise.
1589 * armbsd-tdep.c: Likewise.
1590 * armnbsd-nat.c: Likewise.
1591 * armnbsd-tdep.c: Likewise.
1592 * armobsd-tdep.c: Likewise.
1593 * avr-tdep.c: Likewise.
1594 * ax-gdb.c: Likewise.
1595 * ax-general.c: Likewise.
1596 * bcache.c: Likewise.
1597 * bfin-tdep.c: Likewise.
1598 * breakpoint.c: Likewise.
1599 * build-id.c: Likewise.
1600 * buildsym.c: Likewise.
1601 * c-exp.y: Likewise.
1602 * c-lang.c: Likewise.
1603 * c-typeprint.c: Likewise.
1604 * c-valprint.c: Likewise.
1605 * charset.c: Likewise.
1606 * cli-out.c: Likewise.
1607 * cli/cli-cmds.c: Likewise.
1608 * cli/cli-decode.c: Likewise.
1609 * cli/cli-dump.c: Likewise.
1610 * cli/cli-interp.c: Likewise.
1611 * cli/cli-logging.c: Likewise.
1612 * cli/cli-script.c: Likewise.
1613 * cli/cli-setshow.c: Likewise.
1614 * cli/cli-utils.c: Likewise.
1615 * coffread.c: Likewise.
1616 * common/agent.c: Likewise.
1617 * common/buffer.c: Likewise.
1618 * common/buffer.h: Likewise.
1619 * common/common-utils.c: Likewise.
1620 * common/filestuff.c: Likewise.
1621 * common/filestuff.c: Likewise.
1622 * common/format.c: Likewise.
1623 * common/print-utils.c: Likewise.
1624 * common/rsp-low.c: Likewise.
1625 * common/signals.c: Likewise.
1626 * common/vec.h: Likewise.
1627 * common/xml-utils.c: Likewise.
1628 * core-regset.c: Likewise.
1629 * corefile.c: Likewise.
1630 * corelow.c: Likewise.
1631 * cp-abi.c: Likewise.
1632 * cp-name-parser.y: Likewise.
1633 * cp-support.c: Likewise.
1634 * cp-valprint.c: Likewise.
1635 * cris-tdep.c: Likewise.
1636 * d-exp.y: Likewise.
1637 * darwin-nat.c: Likewise.
1638 * dbxread.c: Likewise.
1639 * dcache.c: Likewise.
1640 * demangle.c: Likewise.
1641 * dicos-tdep.c: Likewise.
1642 * disasm.c: Likewise.
1643 * doublest.c: Likewise.
1644 * dsrec.c: Likewise.
1645 * dummy-frame.c: Likewise.
1646 * dwarf2-frame.c: Likewise.
1647 * dwarf2loc.c: Likewise.
1648 * dwarf2read.c: Likewise.
1649 * elfread.c: Likewise.
1650 * environ.c: Likewise.
1652 * event-loop.c: Likewise.
1653 * exceptions.c: Likewise.
1655 * expprint.c: Likewise.
1656 * f-exp.y: Likewise.
1657 * f-lang.c: Likewise.
1658 * f-typeprint.c: Likewise.
1659 * f-valprint.c: Likewise.
1660 * fbsd-nat.c: Likewise.
1661 * findcmd.c: Likewise.
1662 * findvar.c: Likewise.
1663 * fork-child.c: Likewise.
1664 * frame.c: Likewise.
1665 * frv-linux-tdep.c: Likewise.
1666 * frv-tdep.c: Likewise.
1668 * gdb_bfd.c: Likewise.
1669 * gdbarch.c: Likewise.
1670 * gdbarch.sh: Likewise.
1671 * gdbtypes.c: Likewise.
1672 * gnu-nat.c: Likewise.
1673 * gnu-v2-abi.c: Likewise.
1674 * gnu-v3-abi.c: Likewise.
1675 * go-exp.y: Likewise.
1676 * go-lang.c: Likewise.
1677 * go32-nat.c: Likewise.
1678 * guile/guile.c: Likewise.
1679 * guile/scm-auto-load.c: Likewise.
1680 * hppa-hpux-tdep.c: Likewise.
1681 * hppa-linux-nat.c: Likewise.
1682 * hppanbsd-tdep.c: Likewise.
1683 * hppaobsd-tdep.c: Likewise.
1684 * i386-cygwin-tdep.c: Likewise.
1685 * i386-dicos-tdep.c: Likewise.
1686 * i386-linux-tdep.c: Likewise.
1687 * i386-nto-tdep.c: Likewise.
1688 * i386-sol2-tdep.c: Likewise.
1689 * i386-tdep.c: Likewise.
1690 * i386bsd-tdep.c: Likewise.
1691 * i386gnu-nat.c: Likewise.
1692 * i386nbsd-tdep.c: Likewise.
1693 * i386obsd-tdep.c: Likewise.
1694 * i387-tdep.c: Likewise.
1695 * ia64-libunwind-tdep.c: Likewise.
1696 * ia64-linux-nat.c: Likewise.
1697 * inf-child.c: Likewise.
1698 * inf-ptrace.c: Likewise.
1699 * inf-ttrace.c: Likewise.
1700 * infcall.c: Likewise.
1701 * infcmd.c: Likewise.
1702 * inflow.c: Likewise.
1703 * infrun.c: Likewise.
1704 * interps.c: Likewise.
1705 * iq2000-tdep.c: Likewise.
1706 * irix5-nat.c: Likewise.
1707 * jv-exp.y: Likewise.
1708 * jv-lang.c: Likewise.
1709 * jv-typeprint.c: Likewise.
1710 * jv-valprint.c: Likewise.
1711 * language.c: Likewise.
1712 * linux-fork.c: Likewise.
1713 * linux-nat.c: Likewise.
1714 * lm32-tdep.c: Likewise.
1715 * m2-exp.y: Likewise.
1716 * m2-typeprint.c: Likewise.
1717 * m32c-tdep.c: Likewise.
1718 * m32r-linux-nat.c: Likewise.
1719 * m32r-linux-tdep.c: Likewise.
1720 * m32r-rom.c: Likewise.
1721 * m32r-tdep.c: Likewise.
1722 * m68hc11-tdep.c: Likewise.
1723 * m68k-tdep.c: Likewise.
1724 * m68kbsd-tdep.c: Likewise.
1725 * m68klinux-nat.c: Likewise.
1726 * m68klinux-tdep.c: Likewise.
1727 * m88k-tdep.c: Likewise.
1728 * machoread.c: Likewise.
1729 * macrocmd.c: Likewise.
1731 * mdebugread.c: Likewise.
1732 * mem-break.c: Likewise.
1733 * memattr.c: Likewise.
1734 * memory-map.c: Likewise.
1735 * mep-tdep.c: Likewise.
1736 * mi/mi-cmd-break.c: Likewise.
1737 * mi/mi-cmd-disas.c: Likewise.
1738 * mi/mi-cmd-env.c: Likewise.
1739 * mi/mi-cmd-stack.c: Likewise.
1740 * mi/mi-cmd-var.c: Likewise.
1741 * mi/mi-cmds.c: Likewise.
1742 * mi/mi-console.c: Likewise.
1743 * mi/mi-getopt.c: Likewise.
1744 * mi/mi-interp.c: Likewise.
1745 * mi/mi-main.c: Likewise.
1746 * mi/mi-parse.c: Likewise.
1747 * microblaze-rom.c: Likewise.
1748 * microblaze-tdep.c: Likewise.
1749 * mingw-hdep.c: Likewise.
1750 * minidebug.c: Likewise.
1751 * minsyms.c: Likewise.
1752 * mips-irix-tdep.c: Likewise.
1753 * mips-linux-tdep.c: Likewise.
1754 * mips-tdep.c: Likewise.
1755 * mips64obsd-tdep.c: Likewise.
1756 * mipsnbsd-tdep.c: Likewise.
1757 * mipsread.c: Likewise.
1758 * mn10300-linux-tdep.c: Likewise.
1759 * mn10300-tdep.c: Likewise.
1760 * monitor.c: Likewise.
1761 * moxie-tdep.c: Likewise.
1762 * mt-tdep.c: Likewise.
1763 * nat/linux-btrace.c: Likewise.
1764 * nat/linux-osdata.c: Likewise.
1765 * nat/linux-procfs.c: Likewise.
1766 * nat/linux-ptrace.c: Likewise.
1767 * nat/linux-waitpid.c: Likewise.
1768 * nbsd-tdep.c: Likewise.
1769 * nios2-linux-tdep.c: Likewise.
1770 * nto-procfs.c: Likewise.
1771 * nto-tdep.c: Likewise.
1772 * objc-lang.c: Likewise.
1773 * objfiles.c: Likewise.
1774 * opencl-lang.c: Likewise.
1775 * osabi.c: Likewise.
1776 * osdata.c: Likewise.
1777 * p-exp.y: Likewise.
1778 * p-lang.c: Likewise.
1779 * p-typeprint.c: Likewise.
1780 * parse.c: Likewise.
1781 * posix-hdep.c: Likewise.
1782 * ppc-linux-nat.c: Likewise.
1783 * ppc-sysv-tdep.c: Likewise.
1784 * ppcfbsd-tdep.c: Likewise.
1785 * ppcnbsd-tdep.c: Likewise.
1786 * ppcobsd-tdep.c: Likewise.
1787 * printcmd.c: Likewise.
1788 * procfs.c: Likewise.
1789 * prologue-value.c: Likewise.
1790 * python/py-auto-load.c: Likewise.
1791 * python/py-gdb-readline.c: Likewise.
1792 * ravenscar-thread.c: Likewise.
1793 * regcache.c: Likewise.
1794 * registry.c: Likewise.
1795 * remote-fileio.c: Likewise.
1796 * remote-m32r-sdi.c: Likewise.
1797 * remote-mips.c: Likewise.
1798 * remote-notif.c: Likewise.
1799 * remote-sim.c: Likewise.
1800 * remote.c: Likewise.
1801 * reverse.c: Likewise.
1802 * rs6000-aix-tdep.c: Likewise.
1803 * ser-base.c: Likewise.
1804 * ser-go32.c: Likewise.
1805 * ser-mingw.c: Likewise.
1806 * ser-pipe.c: Likewise.
1807 * ser-tcp.c: Likewise.
1808 * ser-unix.c: Likewise.
1809 * serial.c: Likewise.
1810 * sh-tdep.c: Likewise.
1811 * sh64-tdep.c: Likewise.
1812 * shnbsd-tdep.c: Likewise.
1814 * sol-thread.c: Likewise.
1815 * solib-dsbt.c: Likewise.
1816 * solib-frv.c: Likewise.
1817 * solib-osf.c: Likewise.
1818 * solib-som.c: Likewise.
1819 * solib-spu.c: Likewise.
1820 * solib-target.c: Likewise.
1821 * solib.c: Likewise.
1822 * somread.c: Likewise.
1823 * source.c: Likewise.
1824 * sparc-nat.c: Likewise.
1825 * sparc-sol2-tdep.c: Likewise.
1826 * sparc-tdep.c: Likewise.
1827 * sparc64-tdep.c: Likewise.
1828 * sparc64fbsd-tdep.c: Likewise.
1829 * sparc64nbsd-tdep.c: Likewise.
1830 * sparcnbsd-tdep.c: Likewise.
1831 * spu-linux-nat.c: Likewise.
1832 * spu-multiarch.c: Likewise.
1833 * spu-tdep.c: Likewise.
1834 * stabsread.c: Likewise.
1835 * stack.c: Likewise.
1836 * std-regs.c: Likewise.
1837 * symfile.c: Likewise.
1838 * symmisc.c: Likewise.
1839 * symtab.c: Likewise.
1840 * target.c: Likewise.
1841 * thread.c: Likewise.
1842 * tilegx-linux-nat.c: Likewise.
1843 * tilegx-tdep.c: Likewise.
1845 * tracepoint.c: Likewise.
1846 * tui/tui-command.c: Likewise.
1847 * tui/tui-data.c: Likewise.
1848 * tui/tui-disasm.c: Likewise.
1849 * tui/tui-file.c: Likewise.
1850 * tui/tui-layout.c: Likewise.
1851 * tui/tui-out.c: Likewise.
1852 * tui/tui-regs.c: Likewise.
1853 * tui/tui-source.c: Likewise.
1854 * tui/tui-stack.c: Likewise.
1855 * tui/tui-win.c: Likewise.
1856 * tui/tui-windata.c: Likewise.
1857 * tui/tui-winsource.c: Likewise.
1858 * typeprint.c: Likewise.
1859 * ui-file.c: Likewise.
1860 * ui-out.c: Likewise.
1861 * user-regs.c: Likewise.
1862 * utils.c: Likewise.
1863 * v850-tdep.c: Likewise.
1864 * valarith.c: Likewise.
1865 * valops.c: Likewise.
1866 * valprint.c: Likewise.
1867 * value.c: Likewise.
1868 * varobj.c: Likewise.
1869 * vax-tdep.c: Likewise.
1870 * vaxnbsd-tdep.c: Likewise.
1871 * vaxobsd-tdep.c: Likewise.
1872 * windows-nat.c: Likewise.
1873 * xcoffread.c: Likewise.
1874 * xml-support.c: Likewise.
1875 * xstormy16-tdep.c: Likewise.
1876 * xtensa-linux-nat.c: Likewise.
1878 2014-08-07 Gary Benson <gbenson@redhat.com>
1880 * common/common-defs.h: Include gdb_assert.h.
1881 * aarch64-tdep.c: Do not include gdb_assert.h.
1882 * addrmap.c: Likewise.
1883 * aix-thread.c: Likewise.
1884 * alpha-linux-tdep.c: Likewise.
1885 * alpha-mdebug-tdep.c: Likewise.
1886 * alphanbsd-tdep.c: Likewise.
1887 * amd64-nat.c: Likewise.
1888 * amd64-tdep.c: Likewise.
1889 * amd64bsd-nat.c: Likewise.
1890 * amd64fbsd-nat.c: Likewise.
1891 * amd64fbsd-tdep.c: Likewise.
1892 * amd64nbsd-nat.c: Likewise.
1893 * amd64nbsd-tdep.c: Likewise.
1894 * amd64obsd-nat.c: Likewise.
1895 * amd64obsd-tdep.c: Likewise.
1896 * arch-utils.c: Likewise.
1897 * arm-tdep.c: Likewise.
1898 * armbsd-tdep.c: Likewise.
1900 * bcache.c: Likewise.
1901 * bfin-tdep.c: Likewise.
1902 * blockframe.c: Likewise.
1903 * breakpoint.c: Likewise.
1904 * bsd-kvm.c: Likewise.
1905 * bsd-uthread.c: Likewise.
1906 * buildsym.c: Likewise.
1907 * c-exp.y: Likewise.
1908 * c-lang.c: Likewise.
1909 * charset.c: Likewise.
1910 * cleanups.c: Likewise.
1911 * cli-out.c: Likewise.
1912 * cli/cli-decode.c: Likewise.
1913 * cli/cli-dump.c: Likewise.
1914 * cli/cli-logging.c: Likewise.
1915 * cli/cli-script.c: Likewise.
1916 * cli/cli-utils.c: Likewise.
1917 * coffread.c: Likewise.
1918 * common/common-utils.c: Likewise.
1919 * common/queue.h: Likewise.
1920 * common/signals.c: Likewise.
1921 * common/vec.h: Likewise.
1922 * complaints.c: Likewise.
1923 * completer.c: Likewise.
1924 * corelow.c: Likewise.
1925 * cp-abi.c: Likewise.
1926 * cp-name-parser.y: Likewise.
1927 * cp-namespace.c: Likewise.
1928 * cp-support.c: Likewise.
1929 * cris-tdep.c: Likewise.
1930 * dbxread.c: Likewise.
1931 * dictionary.c: Likewise.
1932 * doublest.c: Likewise.
1933 * dsrec.c: Likewise.
1934 * dummy-frame.c: Likewise.
1935 * dwarf2-frame-tailcall.c: Likewise.
1936 * dwarf2-frame.c: Likewise.
1937 * dwarf2expr.c: Likewise.
1938 * dwarf2loc.c: Likewise.
1939 * dwarf2read.c: Likewise.
1941 * event-loop.c: Likewise.
1942 * exceptions.c: Likewise.
1943 * expprint.c: Likewise.
1944 * f-valprint.c: Likewise.
1945 * fbsd-nat.c: Likewise.
1946 * findvar.c: Likewise.
1947 * frame-unwind.c: Likewise.
1948 * frame.c: Likewise.
1949 * frv-tdep.c: Likewise.
1950 * gcore.c: Likewise.
1951 * gdb-dlfcn.c: Likewise.
1952 * gdb_bfd.c: Likewise.
1953 * gdbarch.c: Likewise.
1954 * gdbarch.sh: Likewise.
1955 * gdbtypes.c: Likewise.
1956 * gnu-nat.c: Likewise.
1957 * gnu-v3-abi.c: Likewise.
1958 * go-lang.c: Likewise.
1959 * guile/scm-exception.c: Likewise.
1960 * guile/scm-gsmob.c: Likewise.
1961 * guile/scm-lazy-string.c: Likewise.
1962 * guile/scm-math.c: Likewise.
1963 * guile/scm-pretty-print.c: Likewise.
1964 * guile/scm-safe-call.c: Likewise.
1965 * guile/scm-utils.c: Likewise.
1966 * guile/scm-value.c: Likewise.
1967 * h8300-tdep.c: Likewise.
1968 * hppa-hpux-nat.c: Likewise.
1969 * hppa-tdep.c: Likewise.
1970 * hppanbsd-tdep.c: Likewise.
1971 * hppaobsd-tdep.c: Likewise.
1972 * i386-darwin-nat.c: Likewise.
1973 * i386-darwin-tdep.c: Likewise.
1974 * i386-nto-tdep.c: Likewise.
1975 * i386-tdep.c: Likewise.
1976 * i386bsd-nat.c: Likewise.
1977 * i386fbsd-tdep.c: Likewise.
1978 * i386gnu-nat.c: Likewise.
1979 * i386nbsd-tdep.c: Likewise.
1980 * i386obsd-tdep.c: Likewise.
1981 * i387-tdep.c: Likewise.
1982 * ia64-libunwind-tdep.c: Likewise.
1983 * ia64-tdep.c: Likewise.
1984 * inf-ptrace.c: Likewise.
1985 * inf-ttrace.c: Likewise.
1986 * infcall.c: Likewise.
1987 * infcmd.c: Likewise.
1988 * infrun.c: Likewise.
1989 * inline-frame.c: Likewise.
1990 * interps.c: Likewise.
1991 * jv-lang.c: Likewise.
1992 * jv-typeprint.c: Likewise.
1993 * linux-fork.c: Likewise.
1994 * linux-nat.c: Likewise.
1995 * linux-thread-db.c: Likewise.
1996 * m32c-tdep.c: Likewise.
1997 * m32r-linux-nat.c: Likewise.
1998 * m32r-tdep.c: Likewise.
1999 * m68k-tdep.c: Likewise.
2000 * m68kbsd-nat.c: Likewise.
2001 * m68kbsd-tdep.c: Likewise.
2002 * m88k-tdep.c: Likewise.
2003 * machoread.c: Likewise.
2004 * macroexp.c: Likewise.
2005 * macrotab.c: Likewise.
2006 * maint.c: Likewise.
2007 * mdebugread.c: Likewise.
2008 * memory-map.c: Likewise.
2009 * mep-tdep.c: Likewise.
2010 * mi/mi-common.c: Likewise.
2011 * microblaze-tdep.c: Likewise.
2012 * mingw-hdep.c: Likewise.
2013 * mips-linux-nat.c: Likewise.
2014 * mips-linux-tdep.c: Likewise.
2015 * mips-tdep.c: Likewise.
2016 * mips64obsd-tdep.c: Likewise.
2017 * mipsnbsd-tdep.c: Likewise.
2018 * mn10300-linux-tdep.c: Likewise.
2019 * mn10300-tdep.c: Likewise.
2020 * moxie-tdep.c: Likewise.
2021 * mt-tdep.c: Likewise.
2022 * nat/linux-btrace.c: Likewise.
2023 * nat/linux-osdata.c: Likewise.
2024 * nat/linux-ptrace.c: Likewise.
2025 * nat/mips-linux-watch.c: Likewise.
2026 * nios2-linux-tdep.c: Likewise.
2027 * nios2-tdep.c: Likewise.
2028 * objc-lang.c: Likewise.
2029 * objfiles.c: Likewise.
2030 * obsd-nat.c: Likewise.
2031 * opencl-lang.c: Likewise.
2032 * osabi.c: Likewise.
2033 * parse.c: Likewise.
2034 * ppc-linux-nat.c: Likewise.
2035 * ppc-sysv-tdep.c: Likewise.
2036 * ppcfbsd-nat.c: Likewise.
2037 * ppcfbsd-tdep.c: Likewise.
2038 * ppcnbsd-nat.c: Likewise.
2039 * ppcnbsd-tdep.c: Likewise.
2040 * ppcobsd-nat.c: Likewise.
2041 * ppcobsd-tdep.c: Likewise.
2042 * printcmd.c: Likewise.
2043 * procfs.c: Likewise.
2044 * prologue-value.c: Likewise.
2045 * psymtab.c: Likewise.
2046 * python/py-lazy-string.c: Likewise.
2047 * python/py-value.c: Likewise.
2048 * regcache.c: Likewise.
2049 * reggroups.c: Likewise.
2050 * registry.c: Likewise.
2051 * remote-sim.c: Likewise.
2052 * remote.c: Likewise.
2053 * rs6000-aix-tdep.c: Likewise.
2054 * rs6000-tdep.c: Likewise.
2055 * s390-linux-tdep.c: Likewise.
2056 * score-tdep.c: Likewise.
2057 * ser-base.c: Likewise.
2058 * ser-mingw.c: Likewise.
2059 * sh-tdep.c: Likewise.
2060 * sh64-tdep.c: Likewise.
2061 * solib-darwin.c: Likewise.
2062 * solib-spu.c: Likewise.
2063 * solib-svr4.c: Likewise.
2064 * source.c: Likewise.
2065 * sparc-nat.c: Likewise.
2066 * sparc-sol2-tdep.c: Likewise.
2067 * sparc-tdep.c: Likewise.
2068 * sparc64-sol2-tdep.c: Likewise.
2069 * sparc64-tdep.c: Likewise.
2070 * sparc64fbsd-tdep.c: Likewise.
2071 * sparc64nbsd-tdep.c: Likewise.
2072 * sparc64obsd-tdep.c: Likewise.
2073 * sparcnbsd-tdep.c: Likewise.
2074 * sparcobsd-tdep.c: Likewise.
2075 * spu-multiarch.c: Likewise.
2076 * spu-tdep.c: Likewise.
2077 * stabsread.c: Likewise.
2078 * stack.c: Likewise.
2079 * symfile.c: Likewise.
2080 * symtab.c: Likewise.
2081 * target-descriptions.c: Likewise.
2082 * target-memory.c: Likewise.
2083 * target.c: Likewise.
2084 * tic6x-linux-tdep.c: Likewise.
2085 * tic6x-tdep.c: Likewise.
2086 * tilegx-linux-nat.c: Likewise.
2087 * tilegx-tdep.c: Likewise.
2089 * tramp-frame.c: Likewise.
2090 * tui/tui-out.c: Likewise.
2091 * tui/tui-winsource.c: Likewise.
2092 * ui-out.c: Likewise.
2093 * user-regs.c: Likewise.
2094 * utils.c: Likewise.
2095 * v850-tdep.c: Likewise.
2096 * valops.c: Likewise.
2097 * value.c: Likewise.
2098 * varobj.c: Likewise.
2099 * vax-nat.c: Likewise.
2100 * xml-syscall.c: Likewise.
2101 * xml-tdesc.c: Likewise.
2102 * xstormy16-tdep.c: Likewise.
2103 * xtensa-linux-nat.c: Likewise.
2104 * xtensa-tdep.c: Likewise.
2106 2014-08-07 Gary Benson <gbenson@redhat.com>
2108 * common/common-defs.h: Include common-utils.h.
2109 * defs.h: Do not include common-utils.h.
2110 * common/gdb_assert.h: Likewise.
2111 * darwin-nat.h: Likewise.
2112 * nat/linux-btrace.c: Likewise.
2113 * target/waitstatus.h: Likewise.
2115 2014-08-07 Gary Benson <gbenson@redhat.com>
2117 * common/common-defs.h: Include ptid.h.
2118 * defs.h: Do not include ptid.h.
2119 * inferior.h: Likewise.
2120 * infrun.h: Likewise.
2121 * nat/linux-btrace.h: Likewise.
2122 * nat/linux-osdata.h: Likewise.
2123 * target/waitstatus.h: Likewise.
2125 2014-08-07 Gary Benson <gbenson@redhat.com>
2127 * common/common-defs.h: Include gdb_locale.h.
2128 * defs.h: Do not include gdb_locale.h.
2130 2014-08-07 Gary Benson <gbenson@redhat.com>
2132 * common/common-defs.h: Include gdb/signals.h.
2133 * defs.h: Do not include gdb/signals.h.
2135 2014-08-07 Gary Benson <gbenson@redhat.com>
2137 * common/common-defs.h: Include pathmax.h.
2138 * defs.h: Do not include pathmax.h.
2140 2014-08-07 Gary Benson <gbenson@redhat.com>
2142 * common/common-defs.h: Include libiberty.h.
2143 * defs.h: Do not include libiberty.h.
2144 * common/queue.h: Likewise.
2145 * cp-name-parser.y: Likewise.
2146 * mi/mi-cmd-catch.c: Likewise.
2147 * python/python.c: Likewise.
2149 2014-08-07 Gary Benson <gbenson@redhat.com>
2151 * common/common-defs.h: Include ansidecl.h.
2152 * defs.h: Do not include ansidecl.h.
2153 * common/buffer.h: Likewise.
2154 * common/common-utils.h: Likewise.
2156 2014-08-07 Gary Benson <gbenson@redhat.com>
2158 * common/common-defs.h: Include stddef.h.
2159 * defs.h: Do not include stddef.h.
2160 * common/common-utils.h: Likewise.
2161 * amd64fbsd-nat.c: Likewise.
2162 * bcache.c: Likewise.
2163 * charset.c: Likewise.
2164 * common/buffer.h: Likewise.
2165 * common/vec.h: Likewise.
2166 * i386bsd-nat.c: Likewise.
2167 * nat/linux-btrace.h: Likewise.
2168 * ppcfbsd-nat.c: Likewise.
2169 * ppcnbsd-tdep.h: Likewise.
2170 * ppcobsd-nat.c: Likewise.
2171 * ppcobsd-tdep.h: Likewise.
2172 * python/py-gdb-readline.c: Likewise.
2174 2014-08-07 Gary Benson <gbenson@redhat.com>
2176 * common/common-defs.h: Include stdarg.h.
2177 * defs.h: Do not include stdarg.h.
2178 * ada-lang.c: Likewise.
2179 * common/common-utils.h: Likewise.
2180 * guile/scm-string.c: Likewise.
2181 * guile/scm-utils.c: Likewise.
2182 * m32c-tdep.c: Likewise.
2184 2014-08-07 Gary Benson <gbenson@redhat.com>
2186 * common/common-defs.h: Include stdlib.h.
2187 * defs.h: Do not include stdlib.h.
2188 * addrmap.c: Likewise.
2189 * bcache.c: Likewise.
2190 * common/buffer.c: Likewise.
2191 * common/common-utils.c: Likewise.
2192 * cp-name-parser.y: Likewise.
2193 * go32-nat.c: Likewise.
2194 * mn10300-linux-tdep.c: Likewise.
2195 * nat/linux-osdata.c: Likewise.
2196 * tui/tui.c: Likewise.
2197 * windows-nat.c: Likewise.
2199 2014-08-07 Gary Benson <gbenson@redhat.com>
2201 * common/common-defs.h: Include stdio.h.
2202 * defs.h: Do not include stdio.h.
2203 * ada-lang.c: Likewise.
2204 * common/buffer.c: Likewise.
2205 * common/common-utils.c: Likewise.
2206 * cp-name-parser.y: Likewise.
2207 * gnu-nat.c: Likewise.
2208 * go32-nat.c: Likewise.
2209 * i386gnu-nat.c: Likewise.
2210 * proc-api.c: Likewise.
2211 * proc-events.c: Likewise.
2212 * proc-flags.c: Likewise.
2213 * proc-why.c: Likewise.
2214 * python/python-internal.h: Likewise.
2215 * target-memory.c: Likewise.
2216 * tui/tui-io.c: Likewise.
2217 * tui/tui.c: Likewise.
2219 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2221 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2222 (scan_dyntag_auxv): Same.
2224 2014-08-06 Yao Qi <yao@codesourcery.com>
2226 * amd64-linux-nat.c: Remove duplicated include
2228 * i386-linux-nat.c: Likewise.
2230 2014-08-06 Yao Qi <yao@codesourcery.com>
2232 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2233 operand" with "Special opcode" in comments.
2235 2014-08-05 Gary Benson <gbenson@redhat.com>
2237 * interps.c (initialize_interps): Remove prototype.
2238 (interpreter_initialized): Remove static global.
2239 (interp_add): Do not call initialize_interps.
2240 (initialize_interps): Remove function.
2242 2014-08-05 Gary Benson <gbenson@redhat.com>
2244 * utils.c (vwarning): Remove spurious va_end.
2246 2014-08-05 Alan Modra <amodra@gmail.com>
2248 * charset.c (convert_between_encodings): Cast result of obstack_base.
2249 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2250 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2251 (read_unwind_info): Use size_t for some locals.
2252 * jit.c (finalize_symtab): Likewise.
2253 * utils.c (hashtab_obstack_allocate): Likewise.
2254 * symmisc.c (print_objfile_statistics): Update format strings.
2256 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2258 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2259 (Changes in GDB 7.8): ... here.
2261 2014-08-04 Tom Tromey <tromey@redhat.com>
2263 * target.c (set_targetdebug): New function.
2264 (initialize_targets): Pass set_targetdebug when creating "set
2267 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2269 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2270 if detecting a variable-sized field that is not the last field.
2271 Fix struct type length computation.
2273 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2275 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2278 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2280 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2281 Remove "+ 8" offset in computation of CHAIN_VMA.
2283 2014-07-31 Doug Evans <dje@google.com>
2285 * inflow.c (child_terminal_inferior): Add comment.
2286 (child_terminal_ours_for_output): Add comment.
2287 (child_terminal_ours): Add comment.
2288 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2289 (linux_nat_terminal_ours): Add comment.
2291 2014-07-31 Gary Benson <gbenson@redhat.com>
2293 * common/btrace-common.h: Do not include defs.h or server.h.
2294 * nat/mips-linux-watch.h: Likewise.
2295 * gdb-dlfcn.h: Do not include defs.h.
2296 * tracefile.h: Likewise.
2298 2014-07-30 Roland McGrath <mcgrathr@google.com>
2300 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2302 2014-07-30 Tom Tromey <tromey@redhat.com>
2304 * bsd-kvm.c (bsd_kvm_open): Constify.
2305 * corelow.c (core_open): Constify.
2306 * ctf.c (ctf_open): Constify.
2307 * dbug-rom.c (dbug_open): Constify.
2308 * exec.c (exec_open): Constify.
2309 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2310 * microblaze-rom.c (picobug_open): Constify.
2311 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2313 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2314 * record-btrace.c (record_btrace_open): Constify.
2315 * record-full.c (record_full_core_open_1, record_full_open_1)
2316 (record_full_open): Constify.
2317 * remote-m32r-sdi.c (m32r_open): Constify.
2318 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2319 (rockhopper_open, lsi_open): Constify.
2320 * remote-sim.c (gdbsim_open): Constify.
2321 * remote.c (remote_open, extended_remote_open, remote_open_1):
2323 * target.h (struct target_ops) <to_open>: Make "arg" const.
2324 * tracefile-tfile.c (tfile_open): Constify.
2326 2014-07-30 Tom Tromey <tromey@redhat.com>
2328 * breakpoint.c (map_breakpoint_numbers): Update.
2329 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2330 (get_number_const): New function.
2331 (get_number): Rewrite using get_number_const.
2332 (init_number_or_range): Make "string" const.
2333 (number_is_in_list): Make "list" const.
2334 * cli/cli-utils.h (get_number_const): Declare.
2335 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2336 (init_number_or_range, number_is_in_list): Update.
2337 * printcmd.c (map_display_numbers): Update.
2338 * value.c (value_from_history_ref): Constify.
2339 * value.h (value_from_history_ref): Update.
2341 2014-07-30 Tom Tromey <tromey@redhat.com>
2343 * corefile.c (hook_type, call_extra_exec_file_hooks)
2344 (specify_exec_file_hook): Constify.
2345 * exec.c (exec_file_attach): Make "filename" const.
2346 * gdbcore.h (deprecated_exec_file_display_hook)
2347 (specify_exec_file_hook, exec_file_attach): Constify.
2348 * main.c (captured_main): Use catch_command_errors_const.
2350 2014-07-30 Tom Tromey <tromey@redhat.com>
2352 * target.c (open_target): New function.
2353 (add_target_with_completer, add_deprecated_target_alias): Use
2354 set_cmd_sfunc, set_cmd_context.
2355 (debug_to_open): Remove.
2356 (setup_target_debug): Update.
2358 2014-07-30 Yao Qi <yao@codesourcery.com>
2360 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2362 * parse.c (exp_iterate): Update comments.
2364 2014-07-30 Gary Benson <gbenson@redhat.com>
2366 * common/common-defs.h: New file.
2367 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2368 * defs.h: Include common-defs.h.
2369 Do not include config.h or build-gnulib/config.h.
2371 2014-07-30 Gary Benson <gbenson@redhat.com>
2373 * common/common-utils.h: Do not include config.h.
2374 * nat/linux-btrace.h: Likewise.
2376 2014-07-30 Gary Benson <gbenson@redhat.com>
2378 * btrace.c: Include defs.h.
2379 * common/ptid.c: Include defs.h or server.h as appropriate.
2380 * nat/mips-linux-watch.c: Likewise.
2382 2014-07-29 Tom Tromey <tromey@redhat.com>
2384 * target.c (target_is_pushed): Simplify.
2386 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2390 2014-07-29 Yao Qi <yao@codesourcery.com>
2393 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2395 2014-07-28 Doug Evans <xdje42@gmail.com>
2398 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2399 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2402 2014-07-28 Will Newton <will.newton@linaro.org>
2404 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2405 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2406 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2407 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2408 (THUMB2_EABI_SYSCALL): Likewise.
2409 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2411 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2412 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2414 2014-07-27 Doug Evans <xdje42@gmail.com>
2416 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2418 2014-07-27 Doug Evans <xdje42@gmail.com>
2420 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2422 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2423 Doug Evans <xdje42@gmail.com>
2426 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2427 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2428 * configure.ac: Try to use guild to compile an scm file, if it fails
2429 then disable guile support.
2430 * configure: Regenerate.
2431 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2433 (GUILE_COMPILED_FILES): New variable.
2434 (GUILE_FILES) Update.
2435 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2436 (stamp-guile): Compile scm files.
2437 * guile/guile.c (boot_guile_support): New function.
2438 (standard_throw_args_p): New function.
2439 (print_standard_throw_error, print_throw_error): New functions.
2440 (handle_boot_error): New function.
2441 (initialize_scheme_side): Rewrite to call boot_guile_support.
2442 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2443 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2445 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2446 Doug Evans <xdje42@gmail.com>
2449 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2450 * guile/lib/gdb/support.scm: New file.
2451 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2452 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2454 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2456 (%assert-type): Ditto, and renamed to assert-type.
2457 (%exception-print-style): Delete.
2459 2014-07-26 Doug Evans <xdje42@gmail.com>
2462 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2463 * configure: Regenerate.
2464 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2466 (PYTHON_FILES): New variable.
2467 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2468 (GUILE_FILES): New variable.
2469 (stamp-python, install-python, uninstall-python): Handle empty
2471 (stamp-guile, install-guile, uninstall-guile): Ditto.
2473 2014-07-26 Doug Evans <xdje42@gmail.com>
2476 * guile/lib/gdb.scm (pretty-printers): Export.
2477 (set-pretty-printers!): Export.
2478 * guile/lib/gdb/printing.scm (gdb module): Update.
2479 (prepend-pretty-printer!, append-pretty-printer!): Update.
2480 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2481 (pretty_printer_list_var): Delete.
2482 (pretty_printer_list): New static global.
2483 (gdbscm_pretty_printers): New function.
2484 (gdbscm_set_pretty_printers_x): New function.
2485 (ppscm_find_pretty_printer_from_gdb): Update.
2486 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2487 (gdbscm_initialize_pretty_printers): Update.
2489 2014-07-26 Doug Evans <xdje42@gmail.com>
2492 * configure.ac: Add check for header gc/gc.h.
2493 Add check for function setenv.
2494 * configure: Regenerate.
2495 * config.in: Regenerate.
2496 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2498 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2500 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2501 variation in gdbarch matching.
2503 2014-07-25 Tom Tromey <tromey@redhat.com>
2505 * exec.c (using_exec_ops): Remove.
2506 (exec_close_1): Update. Remove extraneous block, reindent.
2507 (add_target_sections): Use target_is_pushed.
2509 2014-07-25 Pedro Alves <palves@redhat.com>
2511 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2512 * monitor.c (monitor_create_inferior): Likewise.
2513 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2514 * remote-sim.c (gdbsim_create_inferior): Likewise.
2515 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2516 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2517 * windows-nat.c (do_initial_windows_stuff): Likewise.
2519 2014-07-25 Pedro Alves <palves@redhat.com>
2521 * NEWS: Mention signal passing and "signal" command changes.
2522 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2524 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2526 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2527 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2528 (jump_command): Adjust clear_proceed_status call.
2529 (signal_command): Warn if other thread that are resumed have
2530 signals that will be delivered. Adjust clear_proceed_status call.
2531 (until_next_command, finish_command)
2532 (proceed_after_attach_callback, attach_command_post_wait)
2533 (attach_command): Adjust clear_proceed_status call.
2534 * infrun.c (proceed_after_vfork_done): Likewise.
2535 (proceed_after_attach_callback): Adjust comment.
2536 (clear_proceed_status_thread): Clear stop_signal if not in pass
2538 (clear_proceed_status_callback): Delete.
2539 (clear_proceed_status): New 'step' parameter. Only clear the
2540 proceed status of threads the command being prepared is about to
2542 (proceed): If passed in an explicit signal, override stop_signal
2543 with it. Don't pass the last stop signal to the thread we're
2545 (init_wait_for_inferior): Adjust clear_proceed_status call.
2546 (switch_back_to_stepped_thread): Clear the signal if it should not
2548 * infrun.h (clear_proceed_status): New 'step' parameter.
2549 (user_visible_resume_ptid): Add comment.
2550 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2551 signal is in pass state.
2552 * remote.c (append_pending_thread_resumptions): Likewise.
2553 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2555 2014-07-25 Tom Tromey <tromey@redhat.com>
2557 * target.h (target_stopped_data_address)
2558 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2561 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2563 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2565 (avr_pointer_to_address): Likewise.
2567 2014-07-24 Tom Tromey <tromey@redhat.com>
2569 * monitor.c (compile_pattern): Update.
2570 * target.h (struct target_ops) <to_shortname, to_longname,
2573 2014-07-24 Tom Tromey <tromey@redhat.com>
2575 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2576 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2577 (add_info_alias, add_com): Make "doc" const.
2578 (print_doc_line): Make "str" const.
2579 (delete_cmd): Update.
2580 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2581 (print_doc_line): Update.
2582 * cli/cli-script.c (document_command): Update.
2583 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2584 (add_com, add_info, add_info_alias): Update.
2585 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2586 * python/py-cmd.c (cmdpy_destroyer): Update.
2588 2014-07-24 Tom Tromey <tromey@redhat.com>
2590 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2591 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2592 (help_cmd_list): Constify.
2593 (lookup_cmd): Update.
2594 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2596 (help_cmd_list, apropos_cmd): Update.
2597 * cli/cli-script.c (show_user): Update.
2598 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2599 * cli/cli-setshow.h (cmd_show_list): Update.
2600 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2601 (cmd_show_list): Update.
2602 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2603 * python/py-cmd.c (cmdpy_destroyer): Update.
2605 2014-07-24 Tom Tromey <tromey@redhat.com>
2607 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2608 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2610 * command.h (deprecate_cmd): Update.
2611 * maint.c (maintenance_do_deprecate): Add casts.
2613 2014-07-24 Tom Tromey <tromey@redhat.com>
2615 * cli/cli-decode.c (help_cmd): Make parameter "const".
2616 * cli/cli-decode.h (help_cmd): Update.
2618 2014-07-24 Tom Tromey <tromey@redhat.com>
2620 * stack.c (up_silently_base, down_silently_base): Make argument
2623 2014-07-24 Tom Tromey <tromey@redhat.com>
2625 * solib.c (solib_add): Make "pattern" const.
2626 * solib.h (solib_add): Update.
2628 2014-07-24 Tom Tromey <tromey@redhat.com>
2630 * remote.c (remote_serial_open, print_packet, putpkt)
2631 (putpkt_binary): Constify.
2632 * remote.h (putpkt): Update.
2634 2014-07-24 Tom Tromey <tromey@redhat.com>
2636 * monitor.c (monitor_open): Make "args" const.
2637 * monitor.h (monitor_open): Update.
2639 2014-07-24 Tom Tromey <tromey@redhat.com>
2641 * maint.c (match_bfd_flags): Make "string" const.
2642 (print_bfd_section_info): Remove casts.
2643 (print_objfile_section_info): Make "string" const.
2645 2014-07-24 Tom Tromey <tromey@redhat.com>
2647 * inf-child.c (inf_child_open_target): Make "arg" const.
2648 * inf-child.h (inf_child_open_target): Update.
2650 2014-07-24 Tom Tromey <tromey@redhat.com>
2652 * environ.c (unset_in_environ): Make "var" const.
2653 * environ.h (unset_in_environ): Update.
2655 2014-07-24 Tom Tromey <tromey@redhat.com>
2657 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2659 (scan_filename_with_cleanup): Likewise.
2660 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2661 Make arguments const.
2662 (restore_command): Update.
2664 2014-07-24 Pedro Alves <palves@redhat.com>
2666 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2668 2014-07-24 Tom Tromey <tromey@redhat.com>
2669 Gary Benson <gbenson@redhat.com>
2671 * nat/linux-ptrace.c (additional_flags): New global.
2672 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2673 additional_flags; don't check GDBSERVER.
2674 (linux_ptrace_set_additional_flags): New function.
2675 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2677 * linux-nat.c (_initialize_linux_nat): Call
2678 linux_ptrace_set_additional_flags.
2680 2014-07-24 Tom Tromey <tromey@redhat.com>
2682 * make-target-delegates (munge_type, write_debugmethod): New
2684 (debug_names): New global.
2685 ($TARGET_DEBUG_PRINTER): New global.
2686 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2688 Write debug methods. Generate init_debug_target.
2689 * target-debug.h: New file.
2690 * target-delegates.c: Rebuild.
2691 * target.c: Include target-debug.h.
2692 (debug_target): Hoist definition.
2693 (target_kill, target_get_section_table, target_memory_map)
2694 (target_flash_erase, target_flash_done, target_detach)
2695 (target_disconnect, target_wait, target_resume)
2696 (target_pass_signals, target_program_signals, target_follow_fork)
2697 (target_mourn_inferior, target_search_memory)
2698 (target_thread_address_space, target_close)
2699 (target_find_new_threads, target_core_of_thread)
2700 (target_verify_memory, target_insert_mask_watchpoint)
2701 (target_remove_mask_watchpoint): Remove targetdebug code.
2702 (debug_to_post_attach, debug_to_prepare_to_store)
2703 (debug_to_files_info, debug_to_insert_breakpoint)
2704 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2705 (debug_to_region_ok_for_hw_watchpoint)
2706 (debug_to_can_accel_watchpoint_condition)
2707 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2708 (debug_to_watchpoint_addr_within_range)
2709 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2710 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2711 (debug_to_terminal_init, debug_to_terminal_inferior)
2712 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2713 (debug_to_terminal_save_ours, debug_to_terminal_info)
2714 (debug_to_load, debug_to_post_startup_inferior)
2715 (debug_to_insert_fork_catchpoint)
2716 (debug_to_remove_fork_catchpoint)
2717 (debug_to_insert_vfork_catchpoint)
2718 (debug_to_remove_vfork_catchpoint)
2719 (debug_to_insert_exec_catchpoint)
2720 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2721 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2722 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2723 (setup_target_debug): Call init_debug_target.
2724 * target.h (TARGET_DEBUG_PRINTER): New macro.
2725 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2726 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2728 2014-07-24 Gary Benson <gbenson@redhat.com>
2730 * exceptions.h (throw_vfatal): Renamed to...
2731 (throw_vquit): New declaration.
2732 (throw_quit): Likewise.
2733 * exceptions.c (throw_vfatal): Renamed to...
2734 (throw_vquit): New function.
2735 (throw_quit): Likewise.
2736 (throw_error): Call throw_verror rather than throw_it.
2737 * utils.h (vfatal): Removed.
2739 * utils.c (vfatal): Removed.
2741 (internal_verror): Replaced call to fatal with call to throw_quit.
2742 (quit): Replaced calls to fatal with calls to throw_quit.
2744 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2746 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2749 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2751 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2752 less than zero in conditional expression.
2754 2014-07-23 Tom Tromey <tromey@redhat.com>
2756 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2757 ($INTRO_PART): Don't match whitespace.
2758 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2760 ($METHOD): Add $METHOD_TRAILER.
2762 (scan_target_h): New sub.
2763 Change main loop not to collect state.
2764 * target-delegates.c: Rebuild.
2766 2014-07-23 Gary Benson <gbenson@redhat.com>
2768 * cp-support.c (gdb_demangle): Fix build on systems without
2771 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2773 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2774 for reference entry value target data value.
2776 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2778 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2779 value_available_contents_eq.
2781 2014-07-22 Pedro Alves <palves@redhat.com>
2783 * value.c (allocate_optimized_out_value): Don't mark value as
2786 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2788 * MAINTAINERS (Write After Approval): Update my email address.
2790 2014-07-20 Doug Evans <dje@google.com>
2793 * remote.c (putpkt_binary): Add text to error message.
2795 2014-07-20 Yao Qi <yao@codesourcery.com>
2797 * eval.c: Remove "Chill" from comments.
2798 * gdbtypes.h: Likewise.
2799 * symtab.h: Likewise.
2801 2014-07-20 Yao Qi <yao@codesourcery.com>
2803 * std-operator.def: Update comments to TERNOP_SLICE.
2805 2014-07-20 Yao Qi <yao@codesourcery.com>
2807 * std-operator.def: Remove BINOP_RANGE.
2808 * breakpoint.c (watchpoint_exp_is_const): Update.
2809 * expprint.c (dump_subexp_body_standard): Likewise.
2810 * eval.c (init_array_element): Remove dead code.
2811 (evaluate_subexp_standard): Likewise.
2813 2014-07-20 Yao Qi <yao@codesourcery.com>
2815 * std-operator.def: Remove BINOP_IN.
2816 * breakpoint.c (watchpoint_exp_is_const): Update.
2817 * eval.c (evaluate_subexp_standard): Likewise.
2818 * expprint.c (dump_subexp_body_standard): Likewise.
2820 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2822 * microblaze-tdep.c (microblaze_register_names): Add
2823 the rshr and rslr register names.
2824 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2825 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2826 Use of tdesc_numbered_register. Use of
2827 microblaze_register_g_packet_guesses. Use of
2828 tdesc_use_registers. Use of set_gdbarch_register_type.
2829 (microblaze_register_g_packet_guesses): New.
2830 * microblaze-tdep.h (microblaze_reg_num): Add
2831 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2832 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2833 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2834 * features/microblaze-core.xml: New file.
2835 * features/microblaze-stack-protect.xml: New file.
2836 * features/microblaze-with-stack-protect.c: New file.
2837 * features/microblaze-with-stack-protect.xml: New file.
2838 * features/microblaze.xml: New file.
2839 * features/microblaze.c: New file.
2840 * features/Makefile (microblaze-with-stack-protect): Add
2841 microblaze-with-stack-protect microblaze and microblaze-expedite.
2842 * regformats/microblaze-with-stack-protect.dat: New file.
2843 * regformats/microblaze.dat: New file.
2844 * doc/gdb.texinfo (MicroBlaze Features): Added.
2846 2014-07-18 Tom Tromey <tromey@redhat.com>
2848 * exec.c (exec_ops): Now static.
2849 * exec.h (exec_ops): Don't declare.
2851 2014-07-18 Tom Tromey <tromey@redhat.com>
2853 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2854 to find_target_beneath.
2855 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2856 find_target_beneath.
2857 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2859 2014-07-18 Tom Tromey <tromey@redhat.com>
2862 * utils.c (quit): Use target_supports_terminal_ours.
2863 * target.h (target_supports_terminal_ours): Declare.
2864 * target.c (target_supports_delete_record): Don't check
2865 to_delete_record against NULL.
2866 (target_supports_terminal_ours): New function.
2868 2014-07-18 Tom Tromey <tromey@redhat.com>
2871 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2872 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2873 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2874 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2875 * windows-nat.c (windows_xfer_partial): Always delegate.
2876 * record-btrace.c (record_btrace_xfer_partial): Simplify
2878 (record_btrace_fetch_registers, record_btrace_store_registers)
2879 (record_btrace_prepare_to_store, record_btrace_resume)
2880 (record_btrace_wait, record_btrace_find_new_threads)
2881 (record_btrace_thread_alive): Likewise.
2882 * procfs.c (procfs_xfer_partial): Always delegate.
2883 * corelow.c (core_xfer_partial): Always delegate.
2884 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2886 2014-07-18 Tom Tromey <tromey@redhat.com>
2888 * exec.c (exec_make_note_section): Move earlier.
2890 2014-07-17 Doug Evans <dje@google.com>
2893 * maint.c (count_symtabs_and_blocks): Handle NULL
2894 current_program_space.
2895 (report_command_stats): Check global enabled flag in addition to
2896 recorded enabled flag.
2897 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2899 2014-07-16 Pedro Alves <palves@redhat.com>
2901 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2903 2014-07-16 Tom Tromey <tromey@redhat.com>
2905 * target.h (struct target_ops) <to_delete_record>: Reformat
2908 2014-07-16 Tom Tromey <tromey@redhat.com>
2910 * target-delegates.c: Rebuild.
2912 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2914 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2915 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2916 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2917 (avr_pointer_to_address): Likewise.
2918 (avr_address_class_type_flags): New function.
2919 (avr_address_class_type_flags_to_name): Likewise.
2920 (avr_address_class_name_to_type_flags): Likewise.
2921 (avr_gdbarch_init): Set address_class_type_flags,
2922 address_class_type_flags_to_name and
2923 address_class_name_to_type_flags.
2925 2014-07-15 Pedro Alves <palves@redhat.com>
2927 * linux-nat.c (kill_callback): Save errno and work with saved
2930 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2932 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2934 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2936 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2937 breakpoint support correctly.
2939 2014-07-14 Pedro Alves <palves@redhat.com>
2941 * utils.c (prompt_for_continue): Call target_terminal_ours.
2943 2014-07-14 Pedro Alves <palves@redhat.com>
2945 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2946 catch_errors. Don't re-enable stdin or notify observers where,
2948 (fetch_inferior_event_wrapper): Delete.
2950 2014-07-14 Pedro Alves <palves@redhat.com>
2953 * top.c: Include "inf-loop.h".
2954 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2956 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2958 (gdb_readline_wrapper): Store whether the target is async, and
2961 2014-07-14 Pedro Alves <palves@redhat.com>
2964 * top.c (gdb_readline_wrapper_line): Tweak comment.
2965 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2966 the input handler callback.
2968 2014-07-14 Pedro Alves <palves@redhat.com>
2971 * main.c: Include event-top.h.
2972 (handle_command_errors): New function.
2973 (catch_command_errors, catch_command_errors_const): Use it.
2975 2014-07-14 Pedro Alves <palves@redhat.com>
2977 * exceptions.c (catch_command_errors, catch_command_errors_const):
2979 * exceptions.h (catch_command_errors_ftype)
2980 (catch_command_errors_const_ftype): Moved to main.c.
2981 (catch_command_errors, catch_command_errors_const): Delete
2983 * main.c (catch_command_errors_ftype)
2984 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2985 (catch_command_errors, catch_command_errors_const)): Moved here
2986 from exceptions.c and make static.
2988 2014-07-14 Pedro Alves <palves@redhat.com>
2990 * exceptions.c (print_any_exception): Delete.
2991 (catch_exceptions_with_msg): Use exception_print instead of
2992 print_any_exception.
2993 (catch_errors): Use exception_fprintf instead of
2994 print_any_exception.
2995 (catch_command_errors, catch_command_errors_const): Use
2996 exception_print instead of print_any_exception.
2998 2014-07-14 Pedro Alves <palves@redhat.com>
3000 * infcall.c (run_inferior_call): Set 'sync_execution' while
3001 running the inferior call.
3003 2014-07-14 Pedro Alves <palves@redhat.com>
3005 * value.c (value_contents_equal): Delete function.
3006 * value.h (value_contents_equal): Delete declaration.
3008 2014-07-14 Tom Tromey <tromey@redhat.com>
3011 * gdbtypes.c (is_dynamic_type_internal): New function, from
3013 (is_dynamic_type): Rewrite.
3014 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3015 (resolve_dynamic_struct): Likewise.
3016 (resolve_dynamic_type_internal): New function, from
3017 resolve_dynamic_type.
3018 (resolve_dynamic_type): Rewrite.
3020 2014-07-14 Tom Tromey <tromey@redhat.com>
3022 * target.c (target_require_runnable): Also check record_stratum.
3025 2014-07-11 Yao Qi <yao@codesourcery.com>
3027 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3028 thumb_instruction_restores_sp return true.
3030 2014-07-11 Yao Qi <yao@codesourcery.com>
3032 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3033 (thumb_in_function_epilogue_p): Call
3034 thumb_instruction_restores_sp.
3036 2014-07-11 Yao Qi <yao@codesourcery.com>
3038 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3040 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3042 2014-07-11 Gary Benson <gbenson@redhat.com>
3044 * amd64-linux-nat.c (gdbcore.h): Remove include.
3045 (regset.h): Likewise.
3046 (nat/linux-btrace.h): Likewise.
3047 (btrace.h): Likewise.
3048 (gdb_assert.h): Likewise.
3049 (string.h): Likewise.
3050 (sys/uio.h): Likewise.
3051 (sys/debugreg.h): Likewise.
3052 (sys/syscall.h): Likewise.
3053 (sys/procfs.h): Likewise.
3054 (sys/user.h): Likewise.
3055 (asm/ptrace.h): Likewise.
3056 (i386-nat.h): Likewise.
3057 * i386-linux-nat.c (i386-nat.h): Likewise.
3058 (regset.h): Likewise.
3059 (target.h): Likewise.
3060 (linux-nat.h): Likewise.
3061 (nat/linux-btrace.h): Likewise.
3062 (btrace.h): Likewise.
3063 (gdb_assert.h): Likewise.
3064 (string.h): Likewise.
3065 (sys/uio.h): Likewise.
3066 (sys/user.h): Likewise.
3067 (sys/procfs.h): Likewise.
3068 (sys/reg.h): Likewise.
3069 (sys/debugreg.h): Likewise.
3070 (ORIG_EAX): Remove definition.
3072 2014-07-11 Gary Benson <gbenson@redhat.com>
3074 * i386-linux-nat.h: New file.
3075 * x86-linux-nat.h: Likewise.
3076 * x86-linux-nat.c: Likewise.
3077 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3078 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3079 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3080 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3081 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3082 (PTRACE_SETREGSET): Likewise.
3083 (arch_lwp_info): Now in x86-linux-nat.c.
3084 (have_ptrace_getregset): Now in x86-linux-nat.h.
3085 (x86_linux_dr_get): Now in x86-linux-nat.c.
3086 (x86_linux_dr_set): Likewise.
3087 (x86_linux_dr_get_addr): Likewise.
3088 (x86_linux_dr_get_control): Likewise.
3089 (x86_linux_dr_get_status): Likewise.
3090 (update_debug_registers_callback): Likewise.
3091 (x86_linux_dr_set_control): Likewise.
3092 (x86_linux_dr_set_addr): Likewise.
3093 (x86_linux_prepare_to_resume): Likewise.
3094 (x86_linux_new_thread): Likewise.
3095 (x86_linux_new_fork): Likewise.
3096 (x86_linux_get_thread_area): Likewise.
3097 (super_post_startup_inferior): Likewise.
3098 (x86_linux_child_post_startup_inferior): Likewise.
3099 (AMD64_LINUX_USER64_CS): Likewise.
3100 (AMD64_LINUX_X32_DS): Likewise.
3101 (x86_linux_read_description): Likewise.
3102 (x86_linux_enable_btrace): Likewise.
3103 (x86_linux_disable_btrace): Likewise.
3104 (x86_linux_teardown_btrace): Likewise.
3105 (x86_linux_read_btrace): Likewise.
3106 (x86_linux_create_target): Likewise.
3107 (x86_linux_add_target): Likewise.
3108 * i386-linux-nat.c (x86-linux-nat.h): New include.
3109 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3110 (PTRACE_SETREGSET): Likewise.
3111 (arch_lwp_info): Now in x86-linux-nat.c.
3112 (have_ptrace_getregset): Now in x86-linux-nat.h.
3113 (x86_linux_dr_get): Now in x86-linux-nat.c.
3114 (x86_linux_dr_set): Likewise.
3115 (x86_linux_dr_get_addr): Likewise.
3116 (x86_linux_dr_get_control): Likewise.
3117 (x86_linux_dr_get_status): Likewise.
3118 (update_debug_registers_callback): Likewise.
3119 (x86_linux_dr_set_control): Likewise.
3120 (x86_linux_dr_set_addr): Likewise.
3121 (x86_linux_prepare_to_resume): Likewise.
3122 (x86_linux_new_thread): Likewise.
3123 (x86_linux_new_fork): Likewise.
3124 (x86_linux_get_thread_area): Likewise.
3125 (super_post_startup_inferior): Likewise.
3126 (x86_linux_child_post_startup_inferior): Likewise.
3127 (AMD64_LINUX_USER64_CS): Likewise.
3128 (AMD64_LINUX_X32_DS): Likewise.
3129 (x86_linux_read_description): Likewise.
3130 (x86_linux_enable_btrace): Likewise.
3131 (x86_linux_disable_btrace): Likewise.
3132 (x86_linux_teardown_btrace): Likewise.
3133 (x86_linux_read_btrace): Likewise.
3134 (x86_linux_create_target): Likewise.
3135 (x86_linux_add_target): Likewise.
3137 2014-07-11 Gary Benson <gbenson@redhat.com>
3139 * amd64-linux-nat.c: Comment and whitespace changes.
3140 * i386-linux-nat.c: Comment and whitespace changes.
3142 2014-07-11 Gary Benson <gbenson@redhat.com>
3144 * amd64-linux-nat.c (x86_linux_create_target): New function.
3145 (x86_linux_add_target): Likewise.
3146 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3147 * i386-linux-nat.c (x86_linux_create_target): New function.
3148 (x86_linux_add_target): Likewise.
3149 (_initialize_i386_linux_nat): Delegate to the above new functions.
3151 2014-07-11 Gary Benson <gbenson@redhat.com>
3153 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3154 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3155 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3156 (ps_get_thread_area): Delegate to the above.
3158 2014-07-11 Gary Benson <gbenson@redhat.com>
3160 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3161 x86_linux_read_description. All uses updated. amd64-specific
3162 code conditionalized. Conditionalized i386-specific code added.
3163 Redundant cast removed.
3164 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3165 x86_linux_read_description. All uses updated. i386-specific
3166 code conditionalized. Conditionalized amd64-specific code added.
3167 One sizeof replaced with the actual type it is describing.
3169 2014-07-11 Gary Benson <gbenson@redhat.com>
3171 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3172 x86_linux_dr_get. All uses updated.
3173 (amd64_linux_dr_set): Renamed to
3174 x86_linux_dr_set. All uses updated.
3175 (amd64_linux_dr_get_addr): Renamed to
3176 x86_linux_dr_get_addr. All uses updated.
3177 (amd64_linux_dr_get_control): Renamed to
3178 x86_linux_dr_get_control. All uses updated.
3179 (amd64_linux_dr_get_status): Renamed to
3180 x86_linux_dr_get_status. All uses updated.
3181 (amd64_linux_dr_set_control): Renamed to
3182 x86_linux_dr_set_control. All uses updated.
3183 (amd64_linux_dr_set_addr): Renamed to
3184 x86_linux_dr_set_addr. All uses updated.
3185 (amd64_linux_prepare_to_resume): Renamed to
3186 x86_linux_prepare_to_resume. All uses updated.
3187 (amd64_linux_new_thread): Renamed to
3188 x86_linux_new_thread. All uses updated.
3189 (amd64_linux_new_fork): Renamed to
3190 x86_linux_new_fork. All uses updated.
3191 (amd64_linux_child_post_startup_inferior): Renamed to
3192 x86_linux_child_post_startup_inferior. All uses updated.
3193 (amd64_linux_enable_btrace): Renamed to
3194 x86_linux_enable_btrace. All uses updated.
3195 (amd64_linux_disable_btrace): Renamed to
3196 x86_linux_disable_btrace. All uses updated.
3197 (amd64_linux_teardown_btrace): Renamed to
3198 x86_linux_teardown_btrace. All uses updated.
3199 (amd64_linux_read_btrace): Renamed to
3200 x86_linux_read_btrace. All uses updated.
3201 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3202 x86_linux_dr_get. All uses updated.
3203 (i386_linux_dr_set): Renamed to
3204 x86_linux_dr_set. All uses updated.
3205 (i386_linux_dr_get_addr): Renamed to
3206 x86_linux_dr_get_addr. All uses updated.
3207 (i386_linux_dr_get_control): Renamed to
3208 x86_linux_dr_get_control. All uses updated.
3209 (i386_linux_dr_get_status): Renamed to
3210 x86_linux_dr_get_status. All uses updated.
3211 (i386_linux_dr_set_control): Renamed to
3212 x86_linux_dr_set_control. All uses updated.
3213 (i386_linux_dr_set_addr): Renamed to
3214 x86_linux_dr_set_addr. All uses updated.
3215 (i386_linux_prepare_to_resume): Renamed to
3216 x86_linux_prepare_to_resume. All uses updated.
3217 (i386_linux_new_thread): Renamed to
3218 x86_linux_new_thread. All uses updated.
3219 (i386_linux_new_fork): Renamed to
3220 x86_linux_new_fork. All uses updated.
3221 (i386_linux_child_post_startup_inferior): Renamed to
3222 x86_linux_child_post_startup_inferior. All uses updated.
3223 (i386_linux_enable_btrace): Renamed to
3224 x86_linux_enable_btrace. All uses updated.
3225 (i386_linux_disable_btrace): Renamed to
3226 x86_linux_disable_btrace. All uses updated.
3227 (i386_linux_teardown_btrace): Renamed to
3228 x86_linux_teardown_btrace. All uses updated.
3229 (i386_linux_read_btrace): Renamed to
3230 x86_linux_read_btrace. All uses updated.
3232 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3234 * remote.c (extended_remote_post_attach): New function.
3235 (init_extended_remote_ops): Install it as to_post_attach method.
3237 2014-07-09 Pedro Alves <palves@redhat.com>
3239 * infcmd.c (attach_command_post_wait): Don't call
3240 target_terminal_inferior here.
3241 (attach_command): Call it here instead.
3243 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3245 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3247 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3248 from varobj.c, with additional checks.
3249 (c_varobj_ops): Fill in is_path_expr_parent field.
3250 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3251 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3253 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3255 (varobj_default_is_path_expr_parent): New function.
3256 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3257 (varobj_default_is_path_expr_parent): Declare new function.
3259 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3261 * infcmd.c (finish_backward): Turn internal error into normal error.
3263 2014-07-07 Pedro Alves <palves@redhat.com>
3266 * remote.c (async_handle_remote_sigint)
3267 (async_handle_remote_sigint_twice): Call
3268 gdb_call_async_signal_handler instead of
3269 mark_async_signal_handler.
3271 2014-07-07 Tom Tromey <tromey@redhat.com>
3273 * target-delegates.c: Rebuild.
3274 * target.c (target_info_record): Remove.
3275 * record.c (info_record_command): Unconditionally call
3277 * target.h (struct target_ops) <to_info_record>: Use
3278 TARGET_DEFAULT_IGNORE.
3279 (target_info_record): Remove.
3281 2014-07-07 Tom Tromey <tromey@redhat.com>
3283 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3284 TARGET_DEFAULT_NORETURN.
3285 * target.c (generic_tls_error): New function.
3286 (target_translate_tls_address): Don't search target stack.
3287 * target-delegates.c: Rebuild.
3288 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3290 * linux-thread-db.c (thread_db_get_thread_local_address):
3291 Unconditionally call beneath target.
3293 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3295 * cli/cli-logging.c (pop_output_files): Assign targerr to
3298 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3300 * MAINTAINERS (Write After Approval): Update my email address.
3302 2014-07-02 Gary Benson <gbenson@redhat.com>
3304 * proc-service.c (ps_xfer_memory): Update comment.
3305 (ps_pstop): Remove unused function.
3306 (ps_pcontinue): Likewise.
3307 (ps_lstop): Likewise.
3308 (ps_lcontinue): Likewise.
3309 (ps_lgetxregsize): Likewise.
3310 (ps_lgetxregs): Likewise.
3311 (ps_lsetxregs): Likewise.
3312 (ps_plog): Likewise.
3313 (ps_ptread): Likewise.
3314 (ps_ptwrite): Likewise.
3316 2014-07-01 Mark Wielaard <mjw@redhat.com>
3318 * dwarf2read.c (add_array_cv_type): New function.
3319 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3320 (read_tag_volatile_type): Likewise.
3322 2014-07-01 Tom Tromey <tromey@redhat.com>
3324 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3325 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3326 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3327 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3328 * command.h (cmd_cfunc_ftype): Move earlier.
3329 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3330 (add_com, add_info): Use cmd_cfunc_ftype.
3332 2014-06-30 Tom Tromey <tromey@redhat.com>
3334 * symtab.c (operator_chars): Make parameters and return type
3336 (file_matches): Make "files" const.
3337 (struct search_symbols_data) <files>: Now const.
3338 (search_symbols): Make "regexp" and "files" parameters const.
3340 (symtab_symbol_info): Remove cast.
3341 (rbreak_command): Update.
3342 * symtab.h (search_symbols): Update.
3344 2014-06-27 Yao Qi <yao@codesourcery.com>
3346 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3347 Change parameter type to 'struct thread_info *'. Caller
3349 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3351 * dummy-frame.c (struct dummy_frame_id): New.
3352 (dummy_frame_id_eq): New function.
3353 (struct dummy_frame) <id>: Change its type to 'struct
3355 (dummy_frame_push): Add parameter ptid and save it in
3357 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3359 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3361 (lookup_dummy_frame): Change parameter type to 'struct
3362 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3363 instead of frame_id_eq.
3364 (dummy_frame_pop): Add parameter ptid. Callers updated.
3365 Update comments. Compose dummy_frame_id and pass it to
3367 (dummy_frame_discard): Add parameter ptid.
3368 (dummy_frame_sniffer): Compose dummy_frame_id and call
3369 dummy_frame_id_eq instead of frame_id_eq.
3370 (fprint_dummy_frames): Print ptid.
3371 * dummy-frame.h: Remove comments.
3372 (dummy_frame_push): Add ptid in declaration.
3373 (dummy_frame_pop, dummy_frame_discard): Likewise.
3375 2014-06-26 Tom Tromey <tromey@redhat.com>
3377 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3378 * command.h (error_no_arg): Update.
3380 2014-06-26 Tom Tromey <tromey@redhat.com>
3382 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3383 (do_show_command): Make "arg" const.
3384 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3386 2014-06-26 Tom Tromey <tromey@redhat.com>
3388 * record-full.c (record_full_get_bookmark): Make "args" const.
3389 (record_full_goto_bookmark): Make "raw_bookmark" const.
3390 * record.c (record_goto): New function.
3391 (cmd_record_goto): Use it. Now static.
3392 * record.h (record_goto): Declare.
3393 (cmd_record_goto): Remove declaration.
3394 * target-delegates.c: Rebuild.
3395 * target.h (struct target_ops) <to_get_bookmark,
3396 to_goto_bookmark>: Make parameter const.
3398 2014-06-26 Tom Tromey <tromey@redhat.com>
3400 * defs.h (generic_load): Update.
3401 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3402 * monitor.c (monitor_load): Make "args" const.
3403 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3404 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3406 (mips_load): Make "file" const.
3407 * remote-sim.c (gdbsim_load): Make "args" const.
3408 * remote.c (remote_load): Make "name" const.
3409 * symfile.c (generic_load): Make "args" const.
3410 * target-delegates.c: Rebuild.
3411 * target.c (target_load): Make "arg" const.
3412 (debug_to_load): Make "args" const.
3413 * target.h (struct target_ops) <to_load>: Make parameter const.
3414 (target_load): Update.
3416 2014-06-26 Tom Tromey <tromey@redhat.com>
3419 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3420 (dwarf2_physname, read_partial_die)
3421 (guess_partial_die_structure_name, fixup_partial_die)
3422 (guess_full_die_structure_name, anonymous_struct_prefix)
3423 (dwarf2_name): Use per-BFD obstack.
3425 2014-06-26 Yao Qi <yao@codesourcery.com>
3427 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3428 dummyframe and this_id into inner block below.
3430 2014-06-26 Yao Qi <yao@codesourcery.com>
3432 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3433 with "signal_pass[0]" in the initialization of signal_pass.
3435 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3437 * record-btrace.c (record_btrace_generating_corefile)
3438 (record_btrace_prepare_to_generate_core)
3439 (record_btrace_done_generating_core): New.
3440 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3441 (record_btrace_store_registers, record_btrace_prepare_to_store):
3442 Forward request when generating a core file.
3443 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3444 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3445 to_done_generating_core.
3447 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3449 * target.h (target_ops) <to_prepare_to_generate_core>
3450 <to_done_generating_core>: New.
3451 (target_prepare_to_generate_core, target_done_generating_core): New.
3452 * target.c (target_prepare_to_generate_core)
3453 (target_done_generating_core): New.
3454 * target-delegates.c: Regenerate.
3455 * gcore.c: (write_gcore_file): Rename to ...
3456 (write_gcore_file_1): ...this.
3457 (write_gcore_file): Call target_prepare_to_generate_core
3458 and target_done_generating_core.
3460 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3462 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3463 * gcore.c (write_gcore_file): Free memory returned from
3464 make_corefile_notes.
3465 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3466 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3468 2014-06-24 Yao Qi <yao@codesourcery.com>
3470 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3471 (arm_linux_init_abi): Set skip_trampoline_code with
3472 gdbarch_skip_trampoline_code instead of
3473 find_solib_trampoline_target.
3475 2014-06-24 Yao Qi <yao@codesourcery.com>
3477 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3478 arm_skip_bx_reg returns non-zero.
3480 2014-06-24 Yao Qi <yao@codesourcery.com>
3482 * arm-tdep.c (arm_skip_bx_reg): New function.
3483 (arm_skip_stub): Call arm_skip_bx_reg.
3485 2014-06-23 Don Breazeal <donb@codesourcery.com>
3487 * MAINTAINERS: Add myself as write-after-approval maintainer.
3489 2014-06-23 Pedro Alves <palves@redhat.com>
3491 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3492 DR_CONTROL before setting DR0..DR3.
3493 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3494 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3495 bits of DR_CONTROL related to the debug register slot being
3496 disabled. If all slots are vacant, clear local slowdown as well,
3497 and assert DR_CONTROL is 0.
3499 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3501 * python/lib/gdb/command/xmethods.py
3502 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3503 current progspace only if the string "progspace" matches LOCUS_RE.
3505 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3507 Fix --with-system-readline with readline-6.3 patch 5.
3508 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3509 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3512 2014-06-20 Tom Tromey <tromey@redhat.com>
3514 * dwarf2read.c (dw2_get_real_path): Use correct type in
3516 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3518 2014-06-20 Gary Benson <gbenson@redhat.com>
3520 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3521 * common/glibc_thread_db.h: Likewise.
3522 * common/i386-cpuid.h: Likewise.
3523 * common/i386-gcc-cpuid.h: Likewise.
3524 * common/linux-btrace.h: Likewise.
3525 * common/linux-osdata.h: Likewise.
3526 * common/linux-procfs.h: Likewise.
3527 * common/linux-ptrace.h: Likewise.
3528 * common/mips-linux-watch.h: Likewise.
3529 * common/linux-btrace.c: Moved to nat.
3530 * common/linux-osdata.c: Likewise.
3531 * common/linux-procfs.c: Likewise.
3532 * common/linux-ptrace.c: Likewise.
3533 * common/mips-linux-watch.c: Likewise.
3534 * nat/gdb_thread_db.h: Moved from common.
3535 * nat/glibc_thread_db.h: Likewise.
3536 * nat/i386-cpuid.h: Likewise.
3537 * nat/i386-gcc-cpuid.h: Likewise.
3538 * nat/linux-btrace.c: Likewise.
3539 * nat/linux-btrace.h: Likewise.
3540 * nat/linux-osdata.c: Likewise.
3541 * nat/linux-osdata.h: Likewise.
3542 * nat/linux-procfs.c: Likewise.
3543 * nat/linux-procfs.h: Likewise.
3544 * nat/linux-ptrace.c: Likewise.
3545 * nat/linux-ptrace.h: Likewise.
3546 * nat/mips-linux-watch.c: Likewise.
3547 * nat/mips-linux-watch.h: Likewise.
3548 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3549 (object file files): Reordered.
3550 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3551 of glibc_thread_db.h.
3553 2014-06-20 Gary Benson <gbenson@redhat.com>
3555 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3556 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3557 (i386_dr_low): Likewise.
3558 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3559 (i386_dr_low_set_addr): Likewise.
3560 (i386_dr_low_get_addr): Likewise.
3561 (i386_dr_low_can_set_control): Likewise.
3562 (i386_dr_low_set_control): Likewise.
3563 (i386_dr_low_get_control): Likewise.
3564 (i386_dr_low_get_status): Likewise.
3565 (i386_get_debug_register_length): Likewise.
3566 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3567 (i386_dr_low): Likewise.
3568 * nat/i386-dregs.c (i386-low.h): Remove include.
3569 (i386-nat.h): Likewise.
3570 (nat/i386-dregs.h): New include.
3571 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3572 (i386_dr_low_set_addr): Likewise.
3573 (i386_dr_low_get_addr): Likewise.
3574 (i386_dr_low_can_set_control): Likewise.
3575 (i386_dr_low_set_control): Likewise.
3576 (i386_dr_low_get_control): Likewise.
3577 (i386_dr_low_get_status): Likewise.
3578 (i386_get_debug_register_length): Likewise.
3579 (debug_hw_points): Likewise.
3581 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3583 * Makefile.in (SFILES): Add d-exp.y.
3584 (YYFILES): Add d-exp.c.
3585 (YYOBJ): Add d-exp.o.
3586 (local-maintainer-clean): Delete d-exp.c.
3587 * d-exp.y: New file.
3588 * d-lang.h (d_parse): New declaration.
3589 (d_error): New declaration.
3590 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3591 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3592 PREC_ORDER operators.
3593 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3595 2014-06-19 Yao Qi <yao@codesourcery.com>
3597 * gdbthread.h (any_running): Remove the declaration.
3598 * thread.c (any_running): Remove.
3600 2014-06-19 Yao Qi <yao@codesourcery.com>
3602 * gdbthread.h (struct thread_info) <state>: Change its type to
3603 'enum thread_state'. Update comments.
3605 2014-06-19 Pedro Alves <palves@redhat.com>
3607 * gdbthread.h (ALL_THREADS): Delete.
3608 (ALL_NON_EXITED_THREADS): New macro.
3609 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3610 instead of ALL_THREADS.
3611 * infrun.c (find_thread_needs_step_over)
3612 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3613 instead of ALL_THREADS.
3614 * record-btrace.c (record_btrace_open)
3615 (record_btrace_stop_recording, record_btrace_close)
3616 (record_btrace_is_replaying, record_btrace_resume)
3617 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3618 * remote.c (append_pending_thread_resumptions): Likewise.
3619 * thread.c (thread_apply_all_command): Likewise.
3621 2014-06-19 Gary Benson <gbenson@redhat.com>
3623 * i386-nat.c (i386_stopped_by_watchpoint):
3624 Use i386_dr_stopped_by_watchpoint.
3625 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3626 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3628 2014-06-19 Gary Benson <gbenson@redhat.com>
3630 * nat/i386-dregs.c: New file.
3631 * Makefile.in (i386-dregs.o): New rule.
3632 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3633 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3634 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3635 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3636 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3637 * config/i386/go32.mh (NATDEPFILES): Likewise.
3638 * config/i386/linux.mh (NATDEPFILES): Likewise.
3639 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3640 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3641 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3642 * i386-nat.h (debug_hw_points): New declaration.
3643 * i386-nat.c (breakpoint.h): Remove include.
3644 (command.h): Likewise.
3645 (target.h): Likewise.
3646 (gdb_assert.h): Likewise.
3647 (debug_hw_points): Made nonstatic.
3648 (debug_printf): Now in i386-dregs.c.
3649 (TARGET_HAS_DR_LEN_8): Likewise.
3650 (DR_CONTROL_SHIFT): Likewise.
3651 (DR_CONTROL_SIZE): Likewise.
3652 (DR_RW_EXECUTE): Likewise.
3653 (DR_RW_WRITE): Likewise.
3654 (DR_RW_READ): Likewise.
3655 (DR_RW_IORW): Likewise.
3656 (DR_LEN_1): Likewise.
3657 (DR_LEN_2): Likewise.
3658 (DR_LEN_4): Likewise.
3659 (DR_LEN_8): Likewise.
3660 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3661 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3662 (DR_ENABLE_SIZE): Likewise.
3663 (DR_LOCAL_SLOWDOWN): Likewise.
3664 (DR_GLOBAL_SLOWDOWN): Likewise.
3665 (DR_CONTROL_RESERVED): Likewise.
3666 (I386_DR_CONTROL_MASK): Likewise.
3667 (I386_DR_VACANT): Likewise.
3668 (I386_DR_LOCAL_ENABLE): Likewise.
3669 (I386_DR_GLOBAL_ENABLE): Likewise.
3670 (I386_DR_DISABLE): Likewise.
3671 (I386_DR_SET_RW_LEN): Likewise.
3672 (I386_DR_GET_RW_LEN): Likewise.
3673 (I386_DR_WATCH_HIT): Likewise.
3674 (i386_wp_op_t): Likewise.
3675 (i386_show_dr): Likewise.
3676 (i386_length_and_rw_bits): Likewise.
3677 (i386_insert_aligned_watchpoint): Likewise.
3678 (i386_remove_aligned_watchpoint): Likewise.
3679 (i386_handle_nonaligned_watchpoint): Likewise.
3680 (i386_update_inferior_debug_regs): Likewise.
3681 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3682 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3683 (i386_region_ok_for_watchpoint):
3684 Use i386_dr_region_ok_for_watchpoint.
3685 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3687 2014-06-19 Gary Benson <gbenson@redhat.com>
3689 * i386-nat.c (i386_insert_hw_breakpoint): Use
3690 i386_insert_watchpoint.
3691 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3693 2014-06-19 Gary Benson <gbenson@redhat.com>
3695 * i386-nat.c (i386_dr_show): Renamed to
3696 i386_show_dr and made static. All uses updated.
3697 (i386_dr_length_and_rw_bits): Renamed to
3698 i386_length_and_rw_bits and made static.
3700 (i386_dr_insert_aligned_watchpoint): Renamed to
3701 i386_insert_aligned_watchpoint and made static.
3703 (i386_dr_remove_aligned_watchpoint): Renamed to
3704 i386_remove_aligned_watchpoint and made static.
3706 (i386_dr_update_inferior_debug_regs): Renamed to
3707 i386_update_inferior_debug_regs and made static.
3709 * nat/i386-dregs.h (i386_dr_show): Removed.
3710 (i386_dr_length_and_rw_bits): Likewise.
3711 (i386_dr_insert_aligned_watchpoint): Likewise.
3712 (i386_dr_remove_aligned_watchpoint): Likewise.
3713 (i386_dr_update_inferior_debug_regs): Likewise.
3715 2014-06-19 Gary Benson <gbenson@redhat.com>
3717 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3718 * configure: Regenerate.
3719 * config.in: Likewise.
3720 * main.c (signal.h): New include.
3721 (setup_alternate_signal_stack): New function.
3722 (captured_main): Call the above.
3723 * cp-support.c (signal.h): New include.
3724 (catch_demangler_crashes): New flag.
3725 (SIGJMP_BUF): New define.
3726 (SIGSETJMP): Likewise.
3727 (SIGLONGJMP): Likewise.
3728 (gdb_demangle_jmp_buf): New static global.
3729 (gdb_demangle_attempt_core_dump): Likewise.
3730 (gdb_demangle_signal_handler): New function.
3731 (gdb_demangle): If catch_demangler_crashes is set, install the
3732 above signal handler before calling bfd_demangle, and restore
3733 the original signal handler afterwards. Display the offending
3734 symbol and call demangler_warning the first time a segmentation
3736 (_initialize_cp_support): New maint set/show command.
3738 2014-06-19 Gary Benson <gbenson@redhat.com>
3740 * utils.h (resource_limit_kind): New enum.
3741 (can_dump_core): New declaration.
3742 (warn_cant_dump_core): Likewise.
3743 (dump_core): Likewise.
3744 * utils.c (dump_core): Made nonstatic. Added new
3745 parameter "limit_kind".
3746 (can_dump_core): Made nonstatic. Moved printing code to...
3747 (warn_cant_dump_core): New function.
3748 (can_dump_core_warn): Likewise.
3749 (internal_vproblem): Replace calls to can_dump_core with
3750 calls to can_dump_core_warn. Supply new argument to each.
3752 2014-06-19 Gary Benson <gbenson@redhat.com>
3754 * utils.h (demangler_vwarning): New declaration.
3755 (demangler_warning): Likewise.
3756 * utils.c (struct internal_problem)
3757 <user_settable_should_quit>: New field.
3758 <user_settable_should_dump_core>: Likewise
3759 (internal_error_problem): Add values for above new fields.
3760 (internal_warning_problem): Likewise.
3761 (demangler_warning_problem): New static global.
3762 (demangler_vwarning): New function.
3763 (demangler_warning): Likewise.
3764 (add_internal_problem_command): Selectively add commands.
3765 (_initialize_utils): New internal problem command.
3766 * maint.c (maintenance_demangler_warning): New function.
3767 (_initialize_maint_cmds): New command.
3769 2014-06-18 Tom Tromey <tromey@redhat.com>
3771 * f-valprint.c (info_common_command_for_block): Update.
3772 * symtab.h (struct general_symbol_info) <common_block>: Now
3775 2014-06-18 Tom Tromey <tromey@redhat.com>
3777 * symtab.h (struct symtab) <blockvector>: Now const.
3778 * ada-lang.c (ada_add_global_exceptions): Update.
3779 * buildsym.c (augment_type_symtab): Update.
3780 * dwarf2read.c (dw2_lookup_symbol): Update.
3781 * jit.c (finalize_symtab): Update.
3782 * jv-lang.c (add_class_symtab_symbol): Update.
3783 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3785 * objfiles.c (objfile_relocate1): Update.
3786 * psymtab.c (lookup_symbol_aux_psymtabs)
3787 (maintenance_check_psymtabs): Update.
3788 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3790 * spu-tdep.c (spu_catch_start): Update.
3791 * symmisc.c (dump_symtab_1): Update.
3792 * symtab.c (lookup_global_symbol_from_objfile)
3793 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3794 (basic_lookup_transparent_type_quick)
3795 (basic_lookup_transparent_type, find_pc_sect_symtab)
3796 (find_pc_sect_line, search_symbols): Update.
3797 * block.c (find_block_in_blockvector): Make "bl" const.
3798 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3800 (blockvector_contains_pc): Make "bv" const.
3801 (block_for_pc_sect): Update.
3802 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3803 (blockvector_contains_pc): Update.
3804 * breakpoint.c (resolve_sal_pc): Update.
3805 * inline-frame.c (block_starting_point_at): Update.
3807 2014-06-18 Tom Tromey <tromey@redhat.com>
3809 * completer.c (complete_line): Make "line_buffer" const.
3810 * completer.h (complete_line): Update.
3812 2014-06-18 Tom Tromey <tromey@redhat.com>
3814 * symtab.c (add_macro_name): Remove unneeded cast.
3816 2014-06-18 Tom Tromey <tromey@redhat.com>
3818 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3819 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3821 2014-06-18 Tom Tromey <tromey@redhat.com>
3823 * probe.c (info_probes_for_ops): Make "arg" const.
3824 * probe.h (info_probes_for_ops): Update.
3826 2014-06-18 Tom Tromey <tromey@redhat.com>
3828 * varobj.c (varobj_create): Update.
3829 * valops.c (value_of_this): Update.
3830 * tracepoint.c (add_local_symbols, scope_info): Update.
3831 * symtab.h (struct general_symbol_info) <block>: Now const.
3832 * symtab.c (skip_prologue_sal)
3833 (default_make_symbol_completion_list_break_on)
3834 (skip_prologue_using_sal): Update.
3835 * stack.h (iterate_over_block_locals)
3836 (iterate_over_block_local_vars): Update.
3837 * stack.c (print_frame_args): Update.
3838 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3840 (get_selected_block): Make return type const.
3841 * python/py-frame.c (frapy_block): Update.
3842 * python/py-block.c (gdbpy_block_for_pc): Update.
3843 * p-exp.y (%union) <bval>: Now const.
3844 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3845 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3846 * m2-exp.y (%union) <bval>: Now const.
3847 * linespec.c (get_current_search_block): Make return type const.
3848 (create_sals_line_offset, find_label_symbols): Update.
3849 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3851 (block_starting_point_at): Make "block" const.
3852 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3853 (check_exception_resume): Update.
3854 * guile/scm-frame.c (gdbscm_frame_block): Update.
3855 * guile/scm-block.c (gdbscm_lookup_block): Update.
3856 * frame.h (get_frame_block): Update.
3857 (get_selected_block): Make return type const.
3858 * frame.c (frame_id_inner): Update.
3859 * f-valprint.c (info_common_command_for_block)
3860 (info_common_command): Update.
3861 * dwarf2loc.c (dwarf2_find_location_expression)
3862 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3863 (locexpr_describe_location_piece): Update.
3864 * c-exp.y (%union) <bval>: Now const.
3865 * breakpoint.c (resolve_sal_pc): Update.
3866 * blockframe.c (get_frame_block):Make return type const.
3867 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3868 (block_innermost_frame): Update.
3869 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3870 (block_for_pc, block_for_pc_sect): Update.
3871 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3873 (block_for_pc_sect, block_for_pc): Make return type const.
3874 * ax-gdb.c (gen_expr): Update.
3875 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3876 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3877 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3878 (ada_read_var_value): Update.
3879 * ada-exp.y (struct name_info) <block>: Now const.
3881 (block_lookup): Constify.
3883 2014-06-18 Gary Benson <gbenson@redhat.com>
3885 * nat/i386-dregs.h: New file.
3886 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3887 * i386-nat.h (i386-dregs.h): New include.
3888 (DR_FIRSTADDR): Now in i386-dregs.h.
3889 (DR_LASTADDR): Likewise.
3890 (DR_NADDR): Likewise.
3891 (DR_STATUS): Likewise.
3892 (DR_CONTROL): Likewise.
3893 (i386_debug_reg_state): Likewise.
3894 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3896 2014-06-18 Don Breazeal <donb@codesourcery.com>
3898 * breakpoint.c (set_longjmp_breakpoint): Call
3899 momentary_breakpoint_from_master with additional argument.
3900 (set_longjmp_breakpoint_for_call_dummy): Call
3901 momentary_breakpoint_from_master with additional argument.
3902 (set_std_terminate_breakpoint): Call
3903 momentary_breakpoint_from_master with additional argument.
3904 (momentary_breakpoint_from_master): Add argument to function
3905 definition and use it to initialize structure member flag.
3906 (clone_momentary_breakpoint): Call
3907 momentary_breakpoint_from_master with additional argument.
3908 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3909 member flags set in momentary_breakpoint_from_master.
3911 2014-06-18 Gary Benson <gbenson@redhat.com>
3913 * i386-nat.c (i386_show_dr): Renamed to
3914 i386_dr_show and made nonstatic. All uses updated.
3915 (i386_length_and_rw_bits): Renamed to
3916 i386_dr_length_and_rw_bits and made nonstatic.
3918 (i386_insert_aligned_watchpoint): Renamed to
3919 i386_dr_insert_aligned_watchpoint and made nonstatic.
3921 (i386_remove_aligned_watchpoint): Renamed to
3922 i386_dr_remove_aligned_watchpoint and made nonstatic.
3924 (i386_update_inferior_debug_regs): Renamed to
3925 i386_dr_update_inferior_debug_regs and made nonstatic.
3928 2014-06-18 Gary Benson <gbenson@redhat.com>
3930 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3931 (i386_dr_low_can_set_control): Likewise.
3932 (i386_dr_low_set_addr): Likewise.
3933 (i386_dr_low_set_control): Likewise.
3934 (i386_dr_low_get_addr): Likewise.
3935 (i386_dr_low_get_status): Likewise.
3936 (i386_dr_low_get_control): Likewise.
3937 (i386_insert_aligned_watchpoint): Use new macros.
3938 (i386_update_inferior_debug_regs): Likewise.
3939 (i386_stopped_data_address): Likewise.
3941 2014-06-18 Gary Benson <gbenson@redhat.com>
3943 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3944 New parameter. All uses updated.
3946 2014-06-18 Gary Benson <gbenson@redhat.com>
3948 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3951 2014-06-18 Gary Benson <gbenson@redhat.com>
3953 * i386-nat.c (debug_printf): New macro.
3954 (i386_get_debug_register_length): Likewise.
3955 (TARGET_HAS_DR_LEN_8): Use above macro.
3956 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3957 and printf_unfiltered. Use phex to format values.
3959 2014-06-18 Gary Benson <gbenson@redhat.com>
3961 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3964 2014-06-18 Gary Benson <gbenson@redhat.com>
3966 * i386-nat.c: Comment changes.
3968 2014-06-18 Gary Benson <gbenson@redhat.com>
3970 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3972 2014-06-18 Gary Benson <gbenson@redhat.com>
3974 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3975 (i386_insert_aligned_watchpoint): Likewise.
3976 (i386_remove_aligned_watchpoint): Likewise.
3977 (i386_handle_nonaligned_watchpoint): Likewise.
3979 2014-06-18 Gary Benson <gbenson@redhat.com>
3981 * i386-nat.c: Whitespace changes.
3983 2014-06-17 Samuel Bronson <naesten@gmail.com>
3985 * MAINTAINERS: Update Roland McGrath's email address.
3986 Thanks to Sergio Durigan Junior for pointing out that he left
3987 Red Hat a while ago, and giving me a current address.
3989 2014-06-17 Tom Tromey <tromey@redhat.com>
3991 * utils.h (savestring): Remove declaration.
3993 2014-06-17 Tom Tromey <tromey@redhat.com>
3995 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3997 2014-06-16 Keith Seitz <keiths@redhat.com>
4000 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4001 to update the varobj if inferior_ptid is null_ptid.
4003 2014-06-16 Tom Tromey <tromey@redhat.com>
4005 * target.h (struct target_ops) <to_info_proc>: Make parameter
4007 (target_info_proc): Update.
4008 * target.c (target_info_proc): Make "args" const.
4009 * procfs.c (procfs_info_proc): Update.
4010 * linux-tdep.c (linux_info_proc): Update.
4011 (linux_core_info_proc_mappings): Make "args" const.
4012 (linux_core_info_proc): Update.
4013 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4014 * gdbarch.c: Rebuild.
4015 * gdbarch.h: Rebuild.
4016 * corelow.c (core_info_proc): Update.
4018 2014-06-16 Tom Tromey <tromey@redhat.com>
4020 * target.h (struct target_ops) <to_disconnect>: Make parameter
4022 (target_disconnect): Update.
4023 * target.c (target_disconnect): Make "args" const.
4024 * target-delegates.c: Rebuild.
4025 * remote.c (remote_disconnect): Update.
4026 * record.h (record_disconnect): Update.
4027 * record.c (record_disconnect): Update.
4028 * inf-child.c (inf_child_disconnect): Update.
4030 2014-06-16 Tom Tromey <tromey@redhat.com>
4032 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4033 * target.c (debug_to_rcmd, default_rcmd): Update.
4034 * target-delegates.c: Rebuild.
4035 * remote.c (remote_rcmd): Update.
4036 * monitor.c (monitor_rcmd): Update.
4038 2014-06-16 Pedro Alves <palves@redhat.com>
4040 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4041 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4042 have OBJF_SHARED set.
4043 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4044 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4045 instead of OBJF_USERLOADED.
4046 * objfiles.h (OBJF_SHARED): Update comment.
4047 (userloaded_objfile_contains_address_p): Rename to ...
4048 (shared_objfile_contains_address_p): ... this, and update
4050 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4052 (remove_symbol_file_command): Skip objfiles that don't have
4055 2014-06-16 Tom Tromey <tromey@redhat.com>
4057 * minsyms.h (prim_record_minimal_symbol)
4058 (prim_record_minimal_symbol_and_info): Update comments.
4060 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4062 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4063 or --without-guile, according to how GDB was built.
4065 2014-06-13 Tom Tromey <tromey@redhat.com>
4067 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4069 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4071 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4073 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4074 help_list.Pass all_commands, not -1, to help_list.
4075 * cli/cli-dump.c (dump_command, append_command)
4076 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4077 (binary_dump_command, binary_append_command): Pass all_commands,
4078 not -1, to help_list.
4079 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4081 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4083 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4085 * top.c (set_history): Pass all_commands, not -1, to help_list.
4086 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4087 all_commands, not -1, to help_list.
4088 * symfile.c (overlay_command): Pass all_commands, not -1, to
4090 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4092 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4094 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4096 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4097 not -1, to help_list.
4098 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4099 not -1, to help_list.
4100 * maint.c (maintenance_command, maintenance_info_command)
4101 (maintenance_print_command, maintenance_set_cmd): Pass
4102 all_commands, not -1, to help_list.
4103 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4105 * language.c (set_check): Pass all_commands, not -1, to help_list.
4106 * infcmd.c (unset_command): Pass all_commands, not -1, to
4108 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4110 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4112 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4114 * breakpoint.c (save_command): Pass all_commands, not -1, to
4116 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4117 all_commands, not -1, to help_list.
4119 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4121 * regcache.c (struct register_to_invalidate): New structure.
4122 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4124 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4126 2014-06-12 Yao Qi <yao@codesourcery.com>
4128 * varobj.c (varobj_get_num_children): Call
4129 varobj_is_dynamic_p.
4130 (varobj_list_children): Likewise.
4131 (varobj_update): Likewise. Update comments.
4133 2014-06-12 Yao Qi <yao@codesourcery.com>
4135 * varobj.c (varobj_pretty_printed_p): Rename to ...
4136 (varobj_is_dynamic_p): ... this. New function.
4137 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4138 (varobj_is_dynamic_p): Declare.
4139 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4140 (mi_print_value_p, varobj_update_one): Likewise.
4142 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4143 Yao Qi <yao@codesourcery.com>
4145 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4146 (varobj_get_iterator): Wrap up code for pretty-printer by
4147 "#if HAVE_PYTHON" and "#endif".
4148 (update_dynamic_varobj_children): Likewise.
4150 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4151 Yao Qi <yao@codesourcery.com>
4153 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4154 gdb_python_initialized is false. Move some code from varobj.c.
4155 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4156 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4157 (struct varobj_item): Moved to varobj-iter.h".
4158 (varobj_clear_saved_item): New function.
4159 (update_dynamic_varobj_children): Move python-related code to
4161 (free_variable): Call varobj_clear_saved_item and
4164 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4165 Yao Qi <yao@codesourcery.com>
4167 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4168 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4169 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4170 (py-varobj.o): New rule.
4171 * python/py-varobj.c: New file.
4172 * python/python-internal.h (py_varobj_get_iterator): Declare.
4173 * varobj-iter.h: New file.
4174 * varobj.c: Include "varobj-iter.h"
4175 (struct varobj) <child_iter>: Change its type from "PyObject *"
4176 to "struct varobj_iter *".
4177 <saved_item>: Likewise.
4178 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4179 [HAVE_PYTHON] (varobj_get_iterator): New function.
4180 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4181 python-specific code to python/py-varobj.c.
4182 (install_visualizer): Call varobj_iter_delete instead of
4184 * varobj.h (varobj_ensure_python_env): Declare.
4186 2014-06-12 Yao Qi <yao@codesourcery.com>
4188 * varobj.c (struct varobj_item): New structure.
4189 (create_child_with_value): Update declaration.
4190 (varobj_add_child): Replace arguments 'name' and 'value' with
4191 'item'. All callers updated.
4192 (install_dynamic_child): Likewise.
4193 (update_dynamic_varobj_children): Likewise.
4194 (varobj_add_child): Likewise.
4195 (create_child_with_value): Likewise.
4197 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4199 * NEWS: Create a new section for the next release branch.
4200 Rename the section of the current branch, now that it has
4203 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4205 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4206 * version.in: Bump version to 7.8.50.DATE-cvs.
4208 2014-06-11 Pedro Alves <palves@redhat.com>
4211 * ser-mingw.c (net_windows_socket_check_pending): New function.
4212 (net_windows_select_thread): Ignore spurious wakeups. Use
4213 net_windows_socket_check_pending.
4214 (net_windows_wait_handle): Check for pending events with
4215 ioctlsocket, through net_windows_socket_check_pending, instead of
4216 checking the socket's event.
4218 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4220 * python/python-internal.h (gdb_PyObject_GetAttrString)
4221 (gdb_PyObject_HasAttrString): New inline function definitions.
4222 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4223 char * of the second argument to PyObject_GetAttrString.
4225 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4227 * serial.c (serial_write): Fix index of character to be printed
4228 in call to serial_logchar when serial debug traces are enabled.
4230 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4232 * gdbtypes (resolve_dynamic_range): Add function description.
4234 2014-06-09 Pedro Alves <palves@redhat.com>
4236 * linux-nat.c (linux_child_follow_fork): Initialize status with
4237 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4238 inner block. Only pass the signal to PTRACE_DETACH if in pass
4241 2014-06-09 Gary Benson <gbenson@redhat.com>
4243 * common/signals.c (gdb_signal_from_host): Reorder to separate
4244 the always-available ANSI-standard signals from the signals that
4246 (do_gdb_signal_to_host): Likewise.
4247 * proc-events.c (signal_table): Likewise.
4249 2014-06-08 Hui Zhu <hui@codesourcery.com>
4251 * common/linux-ptrace.c (linux_disable_event_reporting): New
4253 * common/linux-ptrace.h (linux_disable_event_reporting): New
4255 * linux-nat.c (linux_child_follow_fork): Do a single step before
4258 2014-06-07 Keith Seitz <keiths@redhat.com>
4262 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4263 from symbol_matches_domain in symtab.c. All local callers
4264 of symbol_matches_domain updated.
4265 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4266 search STRUCT_DOMAIN.
4267 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4268 independently. standard_lookup will do that automatically.
4269 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4270 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4271 (cp_lookup_symbol_in_namespace): Likewise.
4272 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4273 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4274 may return a STRUCT_DOMAIN match.
4275 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4276 * cp-support.c: Include language.h.
4277 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4279 * psymtab.c (match_partial_symbol): Compare the requested
4280 domain with the symbol's domain directly.
4281 (lookup_partial_symbol): Likewise.
4282 * symtab.c (lookup_symbol_in_language): Explain when/why
4283 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4284 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4285 appropriate languages.
4286 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4287 and moved to ada-lang.c
4288 (lookup_block_symbol): Explain that this function only returns
4289 symbol matching the requested DOMAIN.
4290 Compare the requested domain with the symbol's domain directly.
4291 (iterate_over_symbols): Compare the requested domain with the
4292 symbol's domain directly.
4293 * symtab.h (symbol_matches_domain): Remove.
4295 2014-06-06 Doug Evans <xdje42@gmail.com>
4297 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4298 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4299 (gdbscm_guile_version_is_at_least): Declare.
4300 (gdbscm_scm_string_to_int): Declare.
4301 * guile/guile.c (gdbscm_guile_major_version): New global.
4302 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4303 (guile_datadir): New static global.
4304 (gdbscm_guile_data_directory): New function.
4305 (initialize_scheme_side): Update.
4306 (misc_guile_functions): Add guile-data-directory.
4307 (initialize_gdb_module): Fetch guile version number.
4308 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4309 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4310 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4311 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4313 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4314 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4315 * guile/scm-value.c (gdbscm_value_to_string): Only call
4316 scm_port_conversion_strategy if Guile version >= 2.0.6.
4318 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4320 * main.c (print_gdb_help): Add -q and --silent.
4322 2014-06-06 Gary Benson <gbenson@redhat.com>
4324 * common/signals.c: Remove preprocessor conditionals for
4325 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4326 SIGSEGV and SIGTERM.
4327 * proc-events.c: Likewise.
4329 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4331 * symfile.c (symfile_free_objfile): Remove restriction to
4333 * symfile-mem.c (symbol_file_add_from_memory): Call
4334 add_target_sections_of_objfile.
4336 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4338 * guile/scm-value.c (gdbscm_history_append_x): Use
4339 'vlscm_get_value_smob_arg_unsafe' instead of
4340 'vlscm_scm_to_value'.
4342 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4345 * utils.c (printchar): Don't escape at all if quoter is NUL.
4346 Update function documentation to clarify effect of parameter
4348 * remote.c (escape_buffer): Pass '\\' as the quoter to
4349 fputstrn_unfiltered.
4350 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4351 generate the output.
4352 (mi_solib_unloaded): Same.
4354 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4356 * development.sh: Delete.
4357 * Makefile.in (config.status): Adjust dependency on development.sh.
4358 * configure.ac: Adjust development.sh source call.
4359 * configure: Regenerate.
4361 2014-06-04 Doug Evans <xdje42@gmail.com>
4363 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4364 is_scheme_bkpt, spec.
4365 (bpscm_make_breakpoint_smob): Initialize new members.
4366 (gdbscm_create_breakpoint_x): Split into two ...
4367 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4368 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4369 (scheme_function breakpoint_functions): Update.
4370 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4371 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4372 register-breakpoint!.
4374 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4377 * mem-break.c (z_type_supported): Return zero if
4378 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4380 2014-06-04 Tom Tromey <tromey@redhat.com>
4382 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4383 value_from_contents_and_address_unresolved.
4384 (ada_template_to_fixed_record_type_1): Likewise.
4385 (ada_which_variant_applies): Likewise.
4386 * value.h (value_from_contents_and_address_unresolved): Declare.
4387 * value.c (value_from_contents_and_address_unresolved): New
4389 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4390 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4391 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4393 2014-06-04 Tom Tromey <tromey@redhat.com>
4395 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4397 2014-06-04 Tom Tromey <tromey@redhat.com>
4399 * procfs.c (procfs_attach): Make "args" const.
4400 * windows-nat.c (windows_attach): Make "args" const.
4401 * nto-procfs.c (procfs_attach): Make "args" const.
4402 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4403 * go32-nat.c (go32_attach): Make "args" const.
4404 * gnu-nat.c (gnu_attach): Make "args" const.
4405 * darwin-nat.c (darwin_attach): Make "args" const.
4406 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4407 * linux-nat.c (linux_nat_attach): Make "args" const.
4408 * remote.c (extended_remote_attach_1, extended_remote_attach):
4410 * target.h (struct target_ops) <to_attach>: Make "args" const.
4411 (find_default_attach): Likewise.
4412 * utils.c (parse_pid_to_attach): Make "args" const.
4413 * utils.h (parse_pid_to_attach): Update.
4415 2014-06-04 Tom Tromey <tromey@redhat.com>
4417 * target-delegates.c: Rebuild.
4418 * target.c (default_thread_address_space): New function.
4419 (target_thread_address_space): Simplify.
4420 * target.h (struct target_ops) <to_thread_address_space>: Add
4421 TARGET_DEFAULT_FUNC.
4423 2014-06-04 Doug Evans <xdje42@gmail.com>
4425 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4427 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4429 * record-btrace.c: Include event-loop.h and inf-loop.h.
4430 (record_btrace_resume_exec_dir)
4431 (record_btrace_async_inferior_event_handler)
4432 (record_btrace_handle_async_inferior_event): New.
4433 (record_btrace_open): Create async event handler.
4434 (record_btrace_close): Delete async event handler.
4435 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4436 Mark async event handler.
4437 (record_btrace_execution_direction): New.
4438 (init_record_btrace_ops): Initialize to_execution_direction.
4440 2014-06-03 Doug Evans <xdje42@gmail.com>
4442 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4443 (gdbscm_make_parameter): Ditto.
4445 2014-06-03 Doug Evans <dje@google.com>
4447 * exec.c (exec_close_1): Call clear_section_table instead of
4448 resize_section_table.
4449 (clear_section_table): New function.
4450 (resize_section_table): Make static. Rename arg num_added to
4452 * exec.h (clear_section_table): Declare.
4453 (resize_section_table): Delete.
4454 * progspace.c (release_program_space): Call clear_section_table
4455 instead of resize_section_table.
4457 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4459 * NEWS (Python Scripting): Add entry about the new xmethods
4462 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4464 * python/py-xmethods.c: New file.
4465 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4466 (objfpy_dealloc): XDECREF on the new xmethods field.
4467 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4469 (objfpy_get_xmethods): New function.
4470 (objfile_getset): New entry 'xmethods'.
4471 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4472 (pspy_dealloc): XDECREF on the new xmethods field.
4473 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4475 (pspy_get_xmethods): New function.
4476 (pspace_getset): New entry 'xmethods'.
4477 * python/python-internal.h: Add declarations for new functions.
4478 * python/python.c (_initialize_python): Invoke
4479 gdbpy_initialize_xmethods.
4480 * python/lib/gdb/__init__.py (xmethods): New
4482 * python/lib/gdb/xmethod.py: New file.
4483 * python/lib/gdb/command/xmethods.py: New file.
4485 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4487 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4488 best match method returned by find_overload_match is an xmethod.
4489 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4490 the best matching operator returned by find_overload_match is an
4492 * valops.c: #include "extension.h".
4493 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4494 Return void. The list of matching source methods is returned in
4495 "fn_list" and a vector of matching debug method workers is
4496 returned in "xm_worker_vec". Update all callers.
4497 (value_find_oload_method_list): Likewise.
4498 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4499 non-NULL, then the index of the best matching method in this
4500 vector is returned. Update all callers.
4501 (find_overload_match): Include xmethods while performing overload
4504 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4506 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4507 * extension-priv.h (struct extension_language_ops): Add the
4509 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4510 get_matching_xmethod_workers, get_xmethod_argtypes,
4511 invoke_xmethod, free_xmethod_worker,
4512 free_xmethod_worker_vec): New functions.
4513 * extension.h: #include "common/vec.h".
4514 New function declarations.
4515 (struct xmethod_worker): New struct.
4516 (VEC (xmethod_worker_ptr)): New vector type.
4517 (xmethod_worker_ptr): New typedef.
4518 (xmethod_worker_vec): Likewise.
4519 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4521 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4522 (struct builtin_type): New field "xmethod".
4523 * valarith.c (value_ptradd): Assert that the value argument is not
4525 * valops.c (value_must_coerce_to_target): Return 0 for
4526 lval_xcallable values.
4527 * value.c (struct value): New field XM_WORKER in the field
4529 (value_address, value_raw_address): Return 0 for lval_xcallable
4531 (set_value_address): Assert that the value is not an
4533 (value_free): Free the associated xmethod worker when freeing
4534 lval_xcallable values.
4535 (set_value_component_location): Assert that the WHOLE value is not
4537 (value_of_xmethod, call_xmethod): New functions.
4538 * value.h: Declare "struct xmethod_worker".
4539 Declare new functions value_of_xmethod, call_xmethod.
4541 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4542 Pedro Alves <palves@redhat.com>
4544 PR breakpoints/17000
4545 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4546 New function, extracted from software_breakpoint_inserted_here_p.
4547 (software_breakpoint_inserted_here_p): Replace factored out code
4548 by call to find_non_raw_software_breakpoint_inserted_here.
4549 (bp_target_info_copy_insertion_state): New function.
4550 (bkpt_insert_location): Handle the case of a single-step
4551 breakpoint already inserted at the same address.
4552 (bkpt_remove_location): Handle the case of a single-step
4553 breakpoint still inserted at the same address.
4554 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4555 breakpoint already inserted at the same address.
4556 (deprecated_remove_raw_breakpoint): Handle the case of a
4557 non-raw breakpoint still inserted at the same address.
4558 (find_single_step_breakpoint): New function, extracted from
4559 single_step_breakpoint_inserted_here_p.
4560 (find_single_step_breakpoint): New function,
4561 factored out from single_step_breakpoint_inserted_here_p.
4562 (single_step_breakpoint_inserted_here_p): Reimplement.
4564 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4566 Pushed by Joel Brobecker <brobecker@adacore.com>
4567 * source.c (show_substitute_path_command): Fix display of matching
4570 2014-06-03 Gary Benson <gbenson@redhat.com>
4572 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4574 2014-06-02 Doug Evans <xdje42@gmail.com>
4576 Add parameter support for Guile.
4577 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4578 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4579 (scm-param.o): New rule.
4580 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4581 (gdbscm_misc_error): Declare.
4582 (gdbscm_canonicalize_command_name): Declare.
4583 (gdbscm_scm_to_host_string): Declare.
4584 (gdbscm_scm_from_host_string): Declare.
4585 (gdbscm_initialize_parameters): Declare.
4586 * guile/guile.c (initialize_gdb_module): Call
4587 gdbscm_initialize_parameters.
4588 * guile/lib/gdb.scm: Export parameter symbols.
4589 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4590 cmdscm_canonicalize_name and made public. All callers updated.
4591 * guile/scm-exception.c (gdbscm_misc_error): New function.
4592 * guile/scm-param.c: New file.
4593 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4594 (gdbscm_scm_to_host_string): New function.
4595 (gdbscm_scm_from_host_string): New function.
4596 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4598 2014-06-02 Doug Evans <xdje42@gmail.com>
4600 Add command support for Guile.
4601 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4602 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4603 (scm-cmd.o): New rule.
4604 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4605 (gdbscm_user_error_p): Declare.
4606 (gdbscm_parse_command_name): Declare.
4607 (gdbscm_valid_command_class_p): Declare.
4608 (gdbscm_initialize_commands): Declare.
4609 * guile/guile.c (initialize_gdb_module): Call
4610 gdbscm_initialize_commands.
4611 * guile/lib/gdb.scm: Export command symbols.
4612 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4613 (throw-user-error): New function.
4614 * guile/scm-cmd.c: New file.
4615 * guile/scm-exception.c (user_error_symbol): New static global.
4616 (gdbscm_user_error_p): New function.
4617 (gdbscm_initialize_exceptions): Set user_error_symbol.
4618 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4620 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4622 * top.c (command_loop): Handle comments here...
4623 (command_line_input): ... not here.
4625 2014-06-02 Doug Evans <xdje42@gmail.com>
4627 Add progspace support for Guile.
4628 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4629 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4630 (scm-progspace.o): New rule.
4631 * guile/guile-internal.h (pspace_smob): New typedef.
4632 (psscm_pspace_smob_pretty_printers): Declare.
4633 (psscm_pspace_smob_from_pspace): Declare.
4634 (psscm_scm_from_pspace): Declare.
4635 * guile/guile.c (initialize_gdb_module): Call
4636 gdbscm_initialize_pspaces.
4637 * guile/lib/gdb.scm: Export progspace symbols.
4638 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4640 (append-pretty-printer!): Ditto.
4641 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4643 * guile/scm-progspace.c: New file.
4645 2014-06-03 Alan Modra <amodra@gmail.com>
4647 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4648 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4650 2014-06-02 Doug Evans <dje@google.com>
4652 Add support for skeletonless type units.
4653 * dwarf2read.c (struct dwarf2_per_objfile): New member
4654 n_allocated_type_units.
4655 (struct dwarf2_per_objfile) <tu_stats>: New member
4656 nr_all_type_units_reallocs.
4657 (create_signatured_type_table_from_index): Initialize
4658 n_allocated_type_units
4659 (create_all_type_units): Ditto.
4660 (add_type_unit): Move up in file. New arg slot.
4661 All callers updated. Increase space for all_type_units more
4663 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4664 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4665 (lookup_dwp_signatured_type): Ditto.
4666 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4667 All callers updated.
4668 (build_type_psymtabs_1): Leave type_unit_groups as
4669 NULL if no TUs present.
4670 (print_tu_stats): New function.
4671 (process_skeletonless_type_unit): New function.
4672 (process_dwo_file_for_skeletonless_type_units): New
4674 (process_skeletonless_type_units): New function.
4675 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4676 Call print tu_stats if debugging enabled.
4678 2014-06-02 Pedro Alves <palves@redhat.com>
4680 * breakpoint.c (build_target_command_list): Don't build a command
4681 list if we have any duplicate location that isn't a dprintf.
4683 2014-06-02 Pedro Alves <palves@redhat.com>
4685 * breakpoint.c (dprintf_breakpoint_hit): New function.
4686 (initialize_breakpoint_ops): Install it as dprintf's
4687 breakpoint_hit method.
4689 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4691 * source.c (substitute_path_rule_matches): Simplify using
4692 filename_ncmp instead of FILENAME_CMP.
4694 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4696 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4698 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4700 * configure.ac: When Guile is available, check for the
4701 availability of 'scm_new_smob'.
4702 * configure, config.h.in: Regenerate.
4703 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4706 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4708 * frame.c (struct frame_info): Add stop_string field.
4709 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4710 (get_prev_frame_always): Old content moved into
4711 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4712 TRY_CATCH, handle MEMORY_ERROR exceptions.
4713 (frame_stop_reason_string): New function definition.
4714 * frame.h (unwind_stop_reason_to_string): Extend comment to
4715 mention frame_stop_reason_string.
4716 (frame_stop_reason_string): New function declaration.
4717 * stack.c (frame_info): Switch to frame_stop_reason_string.
4718 (backtrace_command_1): Switch to frame_stop_reason_string.
4719 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4720 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4721 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4723 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4725 * frame.c (frame_stop_reason_string): Rename to ...
4726 (unwind_stop_reason_to_string): this.
4727 * frame.h (frame_stop_reason_string): Rename to ...
4728 (unwind_stop_reason_to_string): this.
4729 * stack.c (frame_info): Update call to frame_stop_reason_string.
4730 (backtrace_command_1): Likewise.
4731 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4732 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4734 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4736 * frame.c (remove_prev_frame): New function.
4737 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4740 2014-05-29 Pedro Alves <palves@redhat.com>
4742 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4743 and make it const. When a single-step decays to a continue,
4744 clear 'step', not 'hw_step'. Pass whether the caller wanted
4745 to step to user_visible_resume_ptid, not what we ask the
4748 2014-05-29 Pedro Alves <palves@redhat.com>
4750 * infrun.c (process_event_stop_test, handle_step_into_function)
4751 (handle_step_into_function_backward): Adjust.
4752 Don't set the even thread's stop_step and call stop_waiting before
4753 calling end_stepping_range. Instead do that ...
4754 (end_stepping_range): ... here. Take an ecs pointer parameter.
4756 2014-05-29 Pedro Alves <palves@redhat.com>
4758 * infrun.c (stop_stepping): Rename to ...
4759 (stop_waiting): ... this.
4760 (proceed): Update comment.
4761 (process_event_stop_test, handle_inferior_event)
4762 (handle_signal_stop, handle_step_into_function)
4763 (handle_step_into_function_backward): Update.
4765 2014-05-29 Pedro Alves <palves@redhat.com>
4767 * infcall.c (run_inferior_call): Don't check whether the current
4768 thread is running after the proceed call.
4770 2014-05-29 Pedro Alves <palves@redhat.com>
4771 Tom Tromey <tromey@redhat.com>
4773 * NEWS: Mention "maint set target-async", "set mi-async", and that
4774 background execution commands are now always available.
4775 * target.h (target_async_permitted): Update comment.
4776 * target.c (target_async_permitted, target_async_permitted_1):
4778 (set_target_async_command): Rename to ...
4779 (maint_set_target_async_command): ... this.
4780 (show_target_async_command): Rename to ...
4781 (maint_show_target_async_command): ... this.
4782 (_initialize_target): Adjust.
4783 * infcmd.c (prepare_execution_command): Make extern.
4784 * inferior.h (prepare_execution_command): Declare.
4785 * infrun.c (set_observer_mode): Leave target async alone.
4786 * mi/mi-interp.c (mi_interpreter_init): Install
4787 mi_on_sync_execution_done as sync_execution_done observer.
4788 (mi_on_sync_execution_done): New function.
4789 (mi_execute_command_input_handler): Don't print the prompt if we
4790 just started a synchronous command with an async target.
4791 (mi_on_resume): Check sync_execution before printing prompt.
4792 * mi/mi-main.h (mi_async_p): Declare.
4793 * mi/mi-main.c: Include gdbcmd.h.
4794 (mi_async_p): New function.
4795 (mi_async, mi_async_1): New globals.
4796 (set_mi_async_command, show_mi_async_command, mi_async): New
4798 (exec_continue): Call prepare_execution_command.
4799 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4800 (mi_execute_async_cli_command): Use mi_async_p.
4801 (_initialize_mi_main): Install "set mi-async". Make
4802 "target-async" a deprecated alias.
4804 2014-05-29 Pedro Alves <palves@redhat.com>
4806 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4807 (_initialize_cli_interp): Adjust.
4808 * event-loop.c: Include "observer.h".
4809 (start_event_loop): Notify 'command_error' observers instead of
4810 calling display_gdb_prompt. Remove FIXME comment.
4811 * event-top.c (display_gdb_prompt): Remove call into the
4813 * inf-loop.c: Include "observer.h".
4814 (inferior_event_handler): Notify 'command_error' observers instead
4815 of calling display_gdb_prompt.
4816 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4817 observers instead of calling display_gdb_prompt.
4818 * interps.c (interp_set): Don't call display_gdb_prompt.
4819 (current_interp_display_prompt_p): Delete.
4820 * interps.h (interp_prompt_p): Delete declaration.
4821 (interp_prompt_p_ftype): Delete.
4822 (struct interp_procs) <prompt_proc_p>: Delete field.
4823 (current_interp_display_prompt_p): Delete declaration.
4824 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4825 (_initialize_mi_interp): Adjust.
4826 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4827 'command_error' observers.
4828 (tui_on_sync_execution_done, tui_on_command_error): New
4830 (tui_display_prompt_p): Delete.
4831 (_initialize_tui_interp): Adjust.
4833 2014-05-29 Pedro Alves <palves@redhat.com>
4836 * cli/cli-interp.c: Include infrun.h and observer.h.
4837 (cli_uiout, cli_interp): New globals.
4838 (cli_on_signal_received, cli_on_end_stepping_range)
4839 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4841 (cli_interpreter_init): Install them as 'end_stepping_range',
4842 'signal_received' 'signal_exited', 'exited' and 'no_history'
4844 (_initialize_cli_interp): Remove cli_interp local.
4845 * infrun.c (handle_inferior_event): Call the several stop reason
4846 observers instead of printing the stop reason directly.
4847 (end_stepping_range): New function.
4848 (print_end_stepping_range_reason, print_signal_exited_reason)
4849 (print_exited_reason, print_signal_received_reason)
4850 (print_no_history_reason): Make static, and add an uiout
4851 parameter. Print to that instead of to CURRENT_UIOUT.
4852 * infrun.h (print_end_stepping_range_reason)
4853 (print_signal_exited_reason, print_exited_reason)
4854 (print_signal_received_reason print_no_history_reason): New
4856 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4858 <cli_uiout>: New field.
4859 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4860 uiout for CLI output. Install 'signal_received',
4861 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4863 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4864 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4865 (mi_on_no_history): New functions.
4866 (ui_out_free_cleanup): Delete function.
4867 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4868 instead use the one already stored in the MI interpreter data.
4869 (mi_ui_out): Adjust.
4870 * tui/tui-interp.c: Include infrun.h and observer.h.
4871 (tui_interp): New global.
4872 (tui_on_signal_received, tui_on_end_stepping_range)
4873 (tui_on_signal_exited, tui_on_exited)
4874 (tui_on_no_history): New functions.
4875 (tui_init): Install them as 'end_stepping_range',
4876 'signal_received' 'signal_exited', 'exited' and 'no_history'
4878 (_initialize_tui_interp): Delete tui_interp local.
4880 2014-05-29 Pedro Alves <palves@redhat.com>
4883 * linux-nat.c (linux_nat_resume_callback): Rename the second
4884 parameter to 'except'. Skip LP if it points to EXCEPT.
4885 (linux_nat_resume): Don't mark the event lwp as not stopped
4886 before resuming sibling lwps. Instead ask
4887 linux_nat_resume_callback to skip the event lwp. Mark it as not
4888 stopped after actually resuming it.
4889 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4891 (wait_lwp): Mark the lwp as stopped here.
4892 (stop_wait_callback): Mark the lwp as not stopped right after
4893 resuming it. Don't mark lwps as stopped here.
4894 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4895 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4897 2014-05-29 Pedro Alves <palves@redhat.com>
4900 * infrun.c (resume): Determine how much to resume depending on
4901 whether the caller wanted a step, not whether we can hardware step
4902 the target. Mark all threads that we intend to run as running,
4903 unless we're calling an inferior function.
4904 (normal_stop): If the thread is running an infcall, don't finish
4906 * target.c (target_resume): Don't mark threads as running here.
4908 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4910 * serial.c (_initialize_serial): Remove support for
4911 the "set remotebaud" and "show remotebaud" commands.
4912 * NEWS: Add entry documenting the removal of that command.
4914 2014-05-28 Yao Qi <yao@codesourcery.com>
4916 * charset.c: Fix typo in comments.
4918 2014-05-27 Gary Benson <gbenson@redhat.com>
4920 * utils.c (internal_vproblem): Prompt for a bug report.
4922 2014-05-26 Andy Wingo <wingo@igalia.com>
4924 * guile/scm-arch.c (arscm_mark_arch_smob):
4925 * guile/scm-block.c (bkscm_mark_block_smob)
4926 (bkscm_mark_block_syms_progress_smob):
4927 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4928 * guile/scm-exception.c (exscm_mark_exception_smob):
4929 * guile/scm-frame.c (frscm_mark_frame_smob):
4930 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4931 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4932 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4933 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4934 (ppscm_mark_pretty_printer_worker_smob):
4935 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4936 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4937 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4938 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4940 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4943 2014-05-26 Andy Wingo <wingo@igalia.com>
4944 Doug Evans <xdje42@gmail.com>
4946 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4947 empty_base_class. All uses updated.
4948 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4949 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4951 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4952 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4953 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4954 (gdbscm_gsmob_has_property_p, add_property_name)
4955 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4956 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4957 (gdb-object-has-property?, gdb-object-properties): Remove.
4958 (gdb-object-kind): Renamed from gsmob-kind.
4960 2014-05-26 Andy Wingo <wingo@igalia.com>
4962 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4963 * configure: Regenerate.
4965 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4967 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4969 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4971 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4972 (replay_memory_access_read_only, replay_memory_access_read_write)
4973 (replay_memory_access_types, replay_memory_access)
4974 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4975 (cmd_set_record_btrace, cmd_show_record_btrace)
4976 (cmd_show_replay_memory_access): New.
4977 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4978 (record_btrace_remove_breakpoint): Replace
4979 record_btrace_allow_memory_access with replay_memory_access.
4980 (_initialize_record_btrace): Add commands.
4981 * NEWS: Announce it.
4983 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4985 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4987 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4989 * MAINTAINERS (Write After Approval): Move self back from
4992 2014-05-22 Pedro Alves <palves@redhat.com>
4994 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4995 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4996 (disable_randomization, enum exec_direction_kind)
4997 (execution_direction, stop_registers, start_remote)
4998 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4999 (wait_for_inferior, normal_stop, get_last_target_status)
5000 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5001 (insert_step_resume_breakpoint_at_sal)
5002 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5003 (set_step_info, print_stop_event, signal_stop_state)
5004 (signal_print_state, signal_pass_state, signal_stop_update)
5005 (signal_print_update, signal_pass_update)
5006 (update_signals_program_target, clear_exit_convenience_vars)
5007 (displaced_step_dump_bytes, update_observer_mode)
5008 (signal_catch_update, gdb_signal_from_command): Move
5010 * infrun.h: ... to this new file.
5011 * amd64-tdep.c: Include infrun.h.
5012 * annotate.c: Include infrun.h.
5013 * arch-utils.c: Include infrun.h.
5014 * arm-linux-tdep.c: Include infrun.h.
5015 * arm-tdep.c: Include infrun.h.
5016 * break-catch-sig.c: Include infrun.h.
5017 * breakpoint.c: Include infrun.h.
5018 * common/agent.c: Include infrun.h instead of inferior.h.
5019 * corelow.c: Include infrun.h.
5020 * event-top.c: Include infrun.h.
5021 * go32-nat.c: Include infrun.h.
5022 * i386-tdep.c: Include infrun.h.
5023 * inf-loop.c: Include infrun.h.
5024 * infcall.c: Include infrun.h.
5025 * infcmd.c: Include infrun.h.
5026 * infrun.c: Include infrun.h.
5027 * linux-fork.c: Include infrun.h.
5028 * linux-nat.c: Include infrun.h.
5029 * linux-thread-db.c: Include infrun.h.
5030 * monitor.c: Include infrun.h.
5031 * nto-tdep.c: Include infrun.h.
5032 * procfs.c: Include infrun.h.
5033 * record-btrace.c: Include infrun.h.
5034 * record-full.c: Include infrun.h.
5035 * remote-m32r-sdi.c: Include infrun.h.
5036 * remote-mips.c: Include infrun.h.
5037 * remote-notif.c: Include infrun.h.
5038 * remote-sim.c: Include infrun.h.
5039 * remote.c: Include infrun.h.
5040 * reverse.c: Include infrun.h.
5041 * rs6000-tdep.c: Include infrun.h.
5042 * s390-linux-tdep.c: Include infrun.h.
5043 * solib-irix.c: Include infrun.h.
5044 * solib-osf.c: Include infrun.h.
5045 * solib-svr4.c: Include infrun.h.
5046 * target.c: Include infrun.h.
5047 * top.c: Include infrun.h.
5048 * windows-nat.c: Include infrun.h.
5049 * mi/mi-interp.c: Include infrun.h.
5050 * mi/mi-main.c: Include infrun.h.
5051 * python/py-threadevent.c: Include infrun.h.
5053 2014-05-22 Pedro Alves <palves@redhat.com>
5055 * infrun.c (handle_inferior_event): Store the exit code for
5056 --return-child-result here, instead of ...
5057 (print_exited_reason): ... here.
5059 2014-05-21 Pedro Alves <palves@redhat.com>
5062 * gdbthread.h (struct thread_control_state): New field
5064 * infrun.c (follow_fork): Copy the new thread control field to the
5066 (clear_proceed_status_thread): Clear the new thread control field.
5067 (proceed): Set the new thread control field.
5068 * interps.h (command_interp): Declare.
5069 * interps.c (command_interpreter): New global.
5070 (command_interp): New function.
5071 (interp_exec): Set `command_interpreter' while here.
5072 * cli-out.c (cli_uiout_dtor): New function.
5073 (cli_ui_out_impl): Install it.
5074 * mi/mi-interp.c: Include cli-out.h.
5075 (mi_cmd_interpreter_exec): Add comment.
5076 (restore_current_uiout_cleanup): New function.
5077 (ui_out_free_cleanup): New function.
5078 (mi_on_normal_stop): If finishing an execution command started by
5079 a CLI command, or any kind of breakpoint-like event triggered,
5080 print the stop event to the output (CLI) stream.
5081 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5083 2014-05-21 Pedro Alves <palves@redhat.com>
5085 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5086 current source line having changed.
5087 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5088 * infrun.c (normal_stop): Adjust call to
5089 set_current_sal_from_frame.
5090 * source.c (clear_lines_listed_range): New function.
5091 (set_current_source_symtab_and_line, identify_source_line): Clear
5092 the lines listed range.
5093 (line_info): Handle the first "info line" after the current source
5094 line having changed.
5095 * stack.c (print_stack_frame): Remove center handling.
5096 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5099 2014-05-21 Pedro Alves <palves@redhat.com>
5101 * inf-child.c (inf_child_mourn_inferior): New function.
5102 * inf-child.h (inf_child_mourn_inferior): New declaration.
5103 * darwin-nat.c (darwin_mourn_inferior): Use
5104 inf_child_mourn_inferior.
5105 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5106 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5107 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5108 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5109 * windows-nat.c (windows_mourn_inferior): Likewise.
5111 2014-05-21 Doug Evans <xdje42@gmail.com>
5113 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5115 2014-05-21 Doug Evans <xdje42@gmail.com>
5117 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5118 (gdbscm_out_of_range_error): Ditto.
5119 (gdbscm_memory_error): Ditto.
5120 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5121 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5122 (gdbscm_out_of_range_error): Update.
5123 (gdbscm_memory_error): Update.
5124 (gdbscm_scm_to_target_string_unsafe): Delete.
5126 2014-05-21 Pedro Alves <palves@redhat.com>
5128 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5130 (inf_child_open_target): New function.
5131 (inf_child_open): Use inf_child_open_target to push the target
5132 instead of erroring out.
5133 (inf_child_disconnect, inf_child_close)
5134 (inf_child_maybe_unpush_target): New functions.
5135 (inf_child_target): Install inf_child_disconnect and
5136 inf_child_close. Store a pointer to the returned object.
5137 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5139 * target.c (auto_connect_native_target): New global.
5140 (show_default_run_target): New function.
5141 (find_default_run_target): Return NULL if automatically connecting
5142 to the native target is disabled.
5143 (_initialize_target): Install set/show auto-connect-native-target.
5144 * NEWS: Mention "set auto-connect-native-target", and "target
5146 * linux-nat.c (super_close): New global.
5147 (linux_nat_close): Call super_close.
5148 (linux_nat_add_target): Store a pointer to the base class's
5150 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5151 inf_child_maybe_unpush.
5152 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5154 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5155 the inferior. Use inf_child_maybe_unpush_target.
5156 (inf_ttrace_attach): Don't push the target if it is already
5158 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5159 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5160 after mourning the inferior. Use inf_child_maybe_unpush_target.
5161 (darwin_attach_pid): Don't push the target if it is already
5163 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5164 mourning the inferior. Use inf_child_maybe_unpush_target.
5165 (gnu_detach): Use inf_child_maybe_unpush_target.
5166 * go32-nat.c (go32_create_inferior): Don't push the target if it
5168 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5169 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5170 (procfs_open): Rename to ...
5171 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5172 comments. Can target_preopen before changing node. Call
5173 inf_child_open_target to push the target explicitly.
5174 (procfs_attach): Don't push the target if it is already pushed.
5175 (procfs_detach): Use inf_child_maybe_unpush_target.
5176 (procfs_create_inferior): Don't push the target if it is already
5178 (nto_native_ops): New global.
5179 (procfs_open): Reimplement.
5180 (procfs_native_open): New function.
5181 (init_procfs_targets): Install procfs_native_open as to_open of
5182 "target native". Store a pointer to the "native" target in
5184 * procfs.c (procfs_attach): Don't push the target if it is already
5186 (procfs_detach): Use inf_child_maybe_unpush_target.
5187 (procfs_mourn_inferior): Only unpush the target after mourning the
5188 inferior. Use inf_child_maybe_unpush_target.
5189 (procfs_init_inferior): Don't push the target if it is already
5191 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5192 if it is already pushed.
5194 2014-05-21 Pedro Alves <palves@redhat.com>
5196 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5197 and "procfs" targets are now called "native" instead.
5199 2014-05-21 Pedro Alves <palves@redhat.com>
5201 * go32-nat.c (go32_open): Delete.
5202 (go32_target): Don't override the to_open method.
5204 2014-05-21 Pedro Alves <palves@redhat.com>
5206 * nto-procfs.c (procfs_can_run): New function.
5207 (nto_procfs_ops): New global.
5208 (init_procfs_targets): New, based on procfs_target. Install
5209 "target native" in addition to "target procfs".
5210 (_initialize_procfs): Call init_procfs_targets instead of adding
5213 2014-05-21 Pedro Alves <palves@redhat.com>
5215 * windows-nat.c (windows_target): Don't override to_shortname,
5216 to_longname or to_doc.
5218 2014-05-21 Pedro Alves <palves@redhat.com>
5220 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5223 2014-05-21 Pedro Alves <palves@redhat.com>
5225 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5226 to_shortname, to_longname or to_doc.
5228 2014-05-21 Pedro Alves <palves@redhat.com>
5230 * go32-nat.c (go32_target): Don't override to_shortname,
5231 to_longname or to_doc.
5233 2014-05-21 Pedro Alves <palves@redhat.com>
5235 * inf-child.c (inf_child_open): Remove mention of "child".
5236 (inf_child_target): Rename target to "native" instead of "child".
5238 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5240 * Makefile.in (SFILES): Delete "regset.c".
5241 (COMMON_OBS): Delete "regset.o".
5243 * regset.h (regset_alloc): Delete prototype.
5245 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5247 * sparc-linux-tdep.c (sparc32_linux_gregset)
5248 (sparc32_linux_fpregset): New static regset structures.
5249 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5250 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5252 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5253 (sparc64_linux_fpregset): New static regset structures.
5254 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5255 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5256 New static regset structures.
5257 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5258 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5259 New static regset structures.
5260 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5261 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5262 New static regset structures.
5263 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5264 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5265 New static regset structures.
5266 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5268 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5270 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5271 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5272 register maps ("regmaps") from "*regset" to "*regmap". Do this
5273 for all regmap types and variables.
5274 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5275 (sparc32_linux_supply_core_gregset)
5276 (sparc32_linux_collect_core_gregset)
5277 (sparc32_linux_supply_core_fpregset)
5278 (sparc32_linux_collect_core_fpregset): Likewise.
5279 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5280 (sparc_gregmap, sparc_fpregmap): ... these.
5281 (sparc_supply_gregset, sparc_collect_gregset)
5282 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5283 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5284 (_initialize_sparc_nat): Rename regmaps.
5285 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5286 (sparc_gregmap, sparc_fpregmap): ... these.
5287 (sparc_supply_gregset, sparc_collect_gregset)
5288 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5289 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5291 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5292 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5294 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5296 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5297 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5298 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5300 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5301 (sparc32_bsd_fpregset): Rename to...
5302 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5303 (sparc32_bsd_fpregmap): ... these.
5304 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5305 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5306 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5307 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5308 (struct sparc_gregmap, struct sparc_fpregmap)
5309 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5310 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5311 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5312 (sparc32_supply_regset, sparc32_collect_gregset)
5313 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5315 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5316 (sparc64_linux_ptrace_gregmap): ... this.
5317 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5318 (_initialize_sparc64_linux_nat): Rename regmaps.
5319 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5320 (sparc64_linux_core_gregmap): ... this.
5321 (sparc64_linux_supply_core_gregset)
5322 (sparc64_linux_collect_core_gregset)
5323 (sparc64_linux_supply_core_fpregset)
5324 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5325 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5326 (sparc64_sol2_fpregset): Rename to...
5327 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5328 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5329 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5331 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5332 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5333 (sparc64_bsd_fpregset): Rename to...
5334 (struct sparc_gregmap, sparc64_sol2_gregmap)
5335 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5336 (sparc64_bsd_fpregmap): ... these.
5337 (sparc64_supply_gregset, sparc64_collect_gregset)
5338 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5340 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5341 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5342 (sparc64fbsd_gregmap): ... this.
5343 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5344 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5346 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5347 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5348 (sparc64nbsd_collect_fpregset): Likewise.
5349 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5350 (sparc64nbsd_gregmap): ... this.
5351 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5353 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5354 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5355 (sparc64obsd_gregmap): ... this.
5356 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5358 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5359 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5360 (sparc32nbsd_gregmap): ... this.
5361 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5364 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5366 * score-tdep.c (score7_linux_gregset): New static regset
5368 (score7_linux_regset_from_core_section): Remove dynamic regset
5370 (score_gdbarch_init): Drop allocation of tdep structure.
5371 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5373 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5375 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5377 (am33_regset_from_core_section): Remove dynamic regset
5380 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5382 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5383 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5385 (mips_linux_regset_from_core_section): Remove dynamic regset
5387 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5388 'gregset64', 'fpregset', and 'fpregset64'.
5389 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5390 deleted tdep fields.
5392 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5394 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5396 (amd64_regset_from_core_section): Remove dynamic regset
5398 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5400 (amd64obsd_regset_from_core_section): Remove dynamic regset
5402 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5404 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5405 x86-common regset supply function.
5406 * i386-tdep.c (i386_collect_gregset): Make static.
5407 (i386_gregset): New global regset structure.
5408 (i386_fpregset, i386_xstateregset): New static regset structures.
5409 (i386_regset_from_core_section): Remove dynamic regset
5411 (i386_gdbarch_init): Remove initialization of tdep fields
5412 'gregset', 'fpregset', and 'xstateregset'.
5413 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5414 'fpregset', and 'xstateregset'.
5415 (i386_collect_gregset): Remove prototype.
5416 (i386_gregset): New declaration.
5417 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5419 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5422 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5424 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5425 (arm_linux_vfpregset): New static regset structures.
5426 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5428 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5429 and 'vfpregset' fields.
5431 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5433 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5434 (aarch64_linux_fpregset): New static regset structures.
5435 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5436 of regset structures.
5437 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5440 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5442 * regset.h (struct regset): Remove gdbarch field.
5443 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5444 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5445 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5447 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5448 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5449 (ppc32_linux_vsxregset): Likewise.
5450 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5451 via the regcache instead of the regset.
5452 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5453 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5454 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5455 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5458 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5460 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5461 Constify structures.
5462 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5463 (alphanbsd_aout_gregset): Likewise.
5464 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5465 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5467 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5468 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5470 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5471 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5472 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5473 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5474 * m88k-tdep.c (m88k_gregset): Likewise.
5475 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5476 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5477 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5478 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5479 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5480 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5481 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5482 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5483 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5485 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5486 * sh-tdep.h (sh_corefile_gregset): Likewise.
5487 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5488 * vax-tdep.c (vax_gregset): Likewise.
5490 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5492 Fix TLS access for -static -pthread.
5493 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5494 (try_thread_db_load_1): Initialize it.
5495 (thread_db_get_thread_local_address): Call it if LM is zero.
5496 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5497 * target.h (struct target_ops) (to_get_thread_local_address): Add
5498 load_module_addr comment.
5500 2014-05-21 Pedro Alves <palves@redhat.com>
5502 * dcache.c (dcache_read_memory_partial): If reading the cache line
5503 fails, fallback to reading just the memory the caller wanted.
5505 2014-05-20 Doug Evans <dje@google.com>
5507 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5508 instead of get_current_arch.
5510 2014-05-20 Pedro Alves <palves@redhat.com>
5512 * NEWS: Mention that compare-sections now works with all targets.
5514 * remote.c (PACKET_qCRC): New enum value.
5515 (remote_verify_memory): Don't send qCRC if the target has no
5516 execution. Use packet_support/packet_ok. If the target doesn't
5517 support the qCRC packet, fallback to a deep memory copy.
5518 (compare_sections_command): Say "target image" instead of "remote
5520 (_initialize_remote): Add PACKET_qCRC to the list of config
5521 packets that have no associated command. Extend comment.
5522 * target.c (simple_verify_memory, default_verify_memory): New
5524 * target.h (struct target_ops) <to_verify_memory>: Default to
5525 default_verify_memory.
5526 (simple_verify_memory): New declaration.
5527 * target-delegates.c: Regenerate.
5529 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5531 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5533 2014-05-20 Hui Zhu <hui@codesourcery.com>
5534 Yao Qi <yao@codesourcery.com>
5537 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5538 and change address of sp and pc.
5540 2014-05-19 Tom Tromey <tromey@redhat.com>
5542 * gdbtypes.c (rank_function): Use XNEWVEC.
5543 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5545 2014-05-19 Doug Evans <dje@google.com>
5547 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5548 build_type_unit_groups and moved closer to only caller. Remove
5549 arguments. All references updated. Remove outdated .gdb_index
5551 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5552 build_type_psymtabs_1.
5554 2014-05-19 Doug Evans <dje@google.com>
5556 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5557 n_type_unit_groups, all_type_unit_groups. All uses removed.
5558 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5559 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5560 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5561 (add_type_unit_group_to_table): Delete.
5563 2014-05-19 Doug Evans <dje@google.com>
5565 * eval.c (evaluate_subexp_standard): Add some comments.
5567 2014-05-17 Doug Evans <xdje42@gmail.com>
5569 * progspace.c (remove_program_space): Delete, unused.
5570 * progspace.h (remove_program_space): Ditto.
5572 2014-05-17 Doug Evans <xdje42@gmail.com>
5574 * inferior.c (prune_inferiors): Fix comment.
5575 (remove_inferior_command): Call prune_program_spaces.
5577 2014-05-16 Doug Evans <dje@google.com>
5579 New command line option -D.
5581 * main.c (set_gdb_data_directory): New function.
5582 (captured_main): Recognize -D. Flag error for --data-directory "".
5583 Call set_gdb_data_directory.
5584 (print_gdb_help): Print --data-directory, -D.
5585 * main.h (set_gdb_data_directory): Declare.
5586 * top.c (staged_gdb_datadir): New static global.
5587 (set_gdb_datadir): Call set_gdb_data_directory
5588 (show_gdb_datadir): New function.
5589 (init_main): Update init of data-directory parameter.
5591 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5593 Import the "dirfd" gnulib module.
5594 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5595 * gnulib/aclocal.m4: Update.
5596 * gnulib/config.in: Update.
5597 * gnulib/configure: Update.
5598 * gnulib/import/Makefile.am: Update.
5599 * gnulib/import/Makefile.in: Update.
5600 * gnulib/import/dirfd.c: New.
5601 * gnulib/import/m4/dirfd.m4: New.
5602 * gnulib/import/m4/gnulib-cache.m4: Update.
5603 * gnulib/import/m4/gnulib-comp.m4: Update.
5605 2014-05-16 Pierre Muller <muller@sourceware.org>
5606 Yao Qi <yao@codesourcery.com>
5608 * valprint.c (print_wchar): Move the code on checking whether
5609 W is a printable wide char to the default branch of switch
5610 statement below. Call wchar_printable instead of gdb_iswprint.
5612 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5614 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5615 ldr.w and ldrd instructions.
5617 2014-05-15 Doug Evans <dje@google.com>
5619 * dwarf2read.c (read_structure_type): Delete outdated comments.
5621 2014-05-14 Tom Tromey <tromey@redhat.com>
5623 * macrocmd.c (print_macro_definition): Reindent.
5625 2014-05-13 Doug Evans <xdje42@gmail.com>
5627 * python/py-cmd.c (cmdpy_completer): Add comment.
5628 (completers): Make const.
5630 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5632 * infrun.c (resume): Remove should_resume (unused). Move up
5633 declaration of resume_ptid.
5635 2014-05-13 Tom Tromey <tromey@redhat.com>
5637 * language.h (unop_type_check): Remove.
5638 (binop_type_check): Don't declare.
5640 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5642 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5643 call to regcache_raw_collect.
5645 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5647 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5648 mi_console->quote as the quoting character.
5650 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5652 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5654 2014-04-29 Tom Tromey <tromey@redhat.com>
5656 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5657 "show debug varobj".
5659 2014-05-07 Kyle McMartin <kyle@redhat.com>
5661 Pushed by Joel Brobecker <brobecker@adacore.com>.
5662 * aarch64-tdep.c (aarch64_software_single_step): New function.
5663 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5664 with aarch64_software_single_step.
5666 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5670 2014-05-05 Keith Seitz <keiths@redhat.com>
5672 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5673 variable or history value is successfully parsed.
5675 2014-05-05 Yao Qi <yao@codesourcery.com>
5676 Pedro Alves <palves@redhat.com>
5678 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5679 address of blocks that intersects the requested range. Trim
5680 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5682 * ctf.c (ctf_xfer_partial): Likewise.
5684 2014-05-05 Yao Qi <yao@codesourcery.com>
5686 * printcmd.c (display_command): Remove the check to
5687 target_has_execution.
5689 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5691 * ppcobsd-nat.c: Include "obsd-nat.h".
5692 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5694 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5696 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5698 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5699 and 16-bit signed and unsigned arguments. Update comment.
5700 (stap_parse_probe_arguments): Extend code to handle such
5701 arguments. Use warning instead of complaint to notify about
5702 unrecognized bitness.
5704 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5706 PR breakpoints/16889
5707 * stap-probe.c (stap_parse_probe_arguments): Simplify
5708 check for non-prefixed probes (i.e., probes whose
5709 arguments do not start with "N@"). Always set the
5710 argument type to a sane value.
5712 2014-05-01 David Taylor <dtaylor@emc.com>
5714 * remote.c (compare_sections_command): Add -r option to compare
5715 all loadable read-only sections.
5717 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5719 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5720 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5722 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5723 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5724 Remove unused CORE_ADDR argument. Update all callers.
5726 2014-04-29 Pedro Alves <palves@redhat.com>
5728 * remote.c (struct packet_config) <detect>: Extend comment.
5729 (add_packet_config_cmd): Don't set the config's detect or support
5731 (init_all_packet_configs): Also initialize the config's 'detect'
5733 (reset_all_packet_configs_support): New function.
5734 (remote_open_1): Call reset_all_packet_configs_support instead of
5735 init_all_packet_configs.
5736 (_initialize_remote): Initialize all packet configs. Assert that
5737 all packets have an associated command, except a few known
5740 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5742 * dwarf2read.c (read_subrange_type): Handle dynamic
5743 DW_AT_lower_bound attributes.
5745 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5747 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5748 dynamic bounds before computing its upper bound.
5749 (ada_discrete_type_low_bound): Same as above with the lower bound.
5751 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5753 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5754 range types. Adjust the array handling implementation to
5755 take advantage of this change.
5756 (resolve_dynamic_range): New function, mostly extracted from
5757 resolve_dynamic_bounds.
5758 (resolve_dynamic_array): New function, mostly extracted from
5759 resolve_dynamic_bounds.
5760 (resolve_dynamic_bounds): Delete.
5761 (resolve_dynamic_type): Reimplement. Add handling of
5762 TYPE_CODE_RANGE types.
5764 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5766 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5767 handling of parallel ___XA types.
5769 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5771 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5772 unnecessary second call to static_unwrap_type.
5774 2014-04-27 Hui Zhu <hui@codesourcery.com>
5776 * stack.c (print_frame_info): Call do_gdb_disassembly with
5777 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5779 2014-04-26 Doug Evans <xdje42@gmail.com>
5781 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5783 2014-04-25 Pedro Alves <palves@redhat.com>
5786 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5787 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5788 and newline from built string.
5789 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5790 (linux_ptrace_attach_fail_reason): ... this.
5791 * linux-nat.c (linux_nat_attach): Adjust to use
5792 linux_ptrace_attach_fail_reason.
5794 2014-04-25 Pedro Alves <palves@redhat.com>
5796 * remote.c (struct remote_state): Remove multi_process_aware,
5797 non_stop_aware, cond_tracepoints, cond_breakpoints,
5798 breakpoint_commands, fast_tracepoints, static_tracepoints,
5799 install_in_trace, disconnected_tracing,
5800 enable_disable_tracepoints, string_tracing, and
5801 augmented_libraries_svr4_read fields.
5802 (remote_multi_process_p): Move further below in the file.
5803 (struct packet_config): Add comments.
5804 (update_packet_config): Delete function.
5805 (show_packet_config_cmd): Use packet_config_support.
5806 (add_packet_config_cmd): Use NULL as set callback.
5807 (packet_ok): "set remote foo-packet"-style commands no longer
5808 change config->supported -- adjust.
5809 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5810 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5811 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5812 (PACKET_QNonStop, PACKET_multiprocess_feature)
5813 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5814 (PACKET_DisconnectedTracing_feature)
5815 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5816 (set_remote_protocol_packet_cmd): Delete function.
5817 (packet_config_support, packet_support): New functions.
5818 (set_remote_protocol_Z_packet_cmd): Don't call
5819 update_packet_config.
5820 (remote_query_attached, remote_pass_signals)
5821 (remote_program_signals, remote_threads_info)
5822 (remote_threads_extra_info, remote_start_remote): Use
5824 (remote_start_remote): Use packet_config_support and
5826 (init_all_packet_configs): Set all packets to unknown support,
5827 instead of calling update_packet_config.
5828 (remote_check_symbols): Use packet_support.
5829 (remote_supported_packet): Unconditionally set the packet config's
5831 (remote_multi_process_feature, remote_non_stop_feature)
5832 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5833 (remote_breakpoint_commands_feature)
5834 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5835 (remote_install_in_trace_feature)
5836 (remote_disconnected_tracing_feature)
5837 (remote_enable_disable_tracepoint_feature)
5838 (remote_string_tracing_feature)
5839 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5840 (remote_protocol_features): Adjust to use remote_supported_packet
5841 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5842 "ConditionalTracepoints", "ConditionalBreakpoints",
5843 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5844 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5845 "EnableDisableTracepoints", and "tracenz".
5846 (remote_query_supported): Use packet_support.
5847 (remote_open_1): Adjust.
5848 (extended_remote_attach_1): Use packet_support. Switch on the
5849 result of packet_ok instead of checking whether the packet ended
5851 (remote_vcont_resume): Use packet_support.
5852 (remote_resume, remote_stop_ns, fetch_register_using_p)
5853 (remote_prepare_to_store, store_register_using_P)
5854 (check_binary_download, remote_write_bytes): Use packet_support.
5855 (remote_vkill): Use packet_support. Switch on the result of
5856 packet_ok instead of checking whether the packet ended up
5858 (extended_remote_supports_disable_randomization): Use
5860 (extended_remote_run): Switch on the result of packet_ok instead
5861 of checking whether the packet ended up disabled.
5862 (remote_insert_breakpoint, remote_remove_breakpoint)
5863 (remote_insert_watchpoint, remote_remove_watchpoint)
5864 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5866 (remote_search_memory): Use packet_config_support.
5867 (remote_get_thread_local_address, remote_get_tib_address)
5868 (remote_hostio_send_command, remote_can_execute_reverse): Use
5870 (remote_supports_cond_tracepoints)
5871 (remote_supports_cond_breakpoints)
5872 (remote_supports_fast_tracepoints)
5873 (remote_supports_static_tracepoints)
5874 (remote_supports_install_in_trace)
5875 (remote_supports_enable_disable_tracepoint)
5876 (remote_supports_string_tracing)
5877 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5878 the packet config says the feature is enabled or disabled.
5879 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5880 (remote_get_trace_status): Use packet_support.
5881 (remote_set_disconnected_tracing): Adjust to check whether the
5882 feature is enabled with packet_support.
5883 (remote_set_trace_buffer_size, remote_use_agent)
5884 (remote_can_use_agent, remote_supports_btrace): Use
5886 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5887 Use packet_config_support.
5888 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5889 the packet config says the feature is enabled or disabled.
5890 (set_range_stepping): Use packet_support.
5892 2014-04-25 Tom Tromey <tromey@redhat.com>
5894 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5897 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5899 * NEWS: Mention support for C99 variable length arrays.
5901 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5903 * ada-lang.c (standard_exc): Expand introductory comment.
5905 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5906 Walfred Tedeschi <walfred.tedeschi@intel.com>
5908 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5910 (amd64_linux_read_description): Add code to handle AVX512 xstate
5911 mask and return respective tdesc.
5912 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5913 and features/i386/x32-avx512-linux.c.
5914 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5915 (amd64_linux_core_read_description): Add code to handle AVX512
5916 xstate mask and return respective tdesc.
5917 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5918 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5920 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5921 (tdesc_amd64_avx512_linux): New prototype.
5922 (tdesc_x32_avx512_linux): Likewise.
5923 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5924 features/i386/x32-avx512.c.
5925 (amd64_ymm_avx512_names): New register names for pseudo
5927 (amd64_ymmh_avx512_names): New register names for raw registers
5929 (amd64_k_names): New register names for K registers.
5930 (amd64_zmmh_names): New register names for ZMM raw registers.
5931 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5932 (amd64_xmm_avx512_names): New register names for XMM16-31
5934 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5936 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5937 if feature is present.
5938 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5939 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5940 (AMD64_NUM_REGS): Adjust to new number of registers.
5941 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5942 registers supplied via XSTATE by AVX512 registers.
5943 (i386_linux_read_description): Add case for AVX512.
5944 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5945 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5946 (i386_linux_core_read_description): Add case for AVX512.
5947 (i386_linux_init_abi): Install supported register note section
5949 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5951 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5952 registers to be number of zmm7h + 1.
5953 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5954 * i386-tdep.c: Include features/i386/i386-avx512.c.
5955 (i386_zmm_names): Add ZMM pseudo register names array.
5956 (i386_zmmh_names): Add ZMM raw register names array.
5957 (i386_k_names): Add K raw register names array.
5958 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5959 registers. AVX512 has 16 more ZMM registers than there are YMM
5961 (i386_zmmh_regnum_p): Add function to look up register number of
5963 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5964 (i386_k_regnum_p): Likewise for K raw registers.
5965 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5966 registers added by AVX512.
5967 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5968 registers added by AVX512.
5969 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5971 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5972 (i386_pseudo_register_name): Add ZMM pseudo registers.
5973 (i386_zmm_type): Construct and return vector registers type for ZMM
5975 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5976 ZMM0-31 pseudo registers and K registers.
5977 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5978 and YMM16-31 registers from register cache.
5979 (i386_pseudo_register_write): Add code to write K, ZMM and
5981 (i386_register_reggroup_p): Add code to include/exclude AVX512
5982 registers in/from respective register groups.
5983 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5984 registers if feature is present in xcr0.
5985 (i386_gdbarch_init): Add code to initialize AVX512 feature
5986 variables in tdep structure, wire in pseudo registers and call
5987 initialize_tdesc_i386_avx512.
5988 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5990 (i386_regnum): Add AVX512 registers.
5991 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5992 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5993 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5994 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5996 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5997 (i386_ymm_avx512_regnum_p): Likewise.
5998 (i386_k_regnum_p): Likewise.
5999 (i386_zmm_regnum_p): Likewise.
6000 (i386_zmmh_regnum_p): Likewise.
6001 * i387-tdep.c : Update year in copyright notice.
6002 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6004 (XSAVE_YMM_AVX512_ADDR): New macro.
6005 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6007 (XSAVE_XMM_AVX512_ADDR): New macro.
6008 (xsave_avx512_k_offset): New table for K register offsets in
6010 (XSAVE_AVX512_K_ADDR): New macro.
6011 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6013 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6014 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6016 (i387_collect_xsave): Add code to collect AVX512 registers from
6018 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6019 of XMM16-31 registers.
6020 (I387_NUM_K_REGS): New define for number of K registers.
6021 (I387_K0_REGNUM): New define for K0 register number.
6022 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6023 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6024 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6026 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6027 (I387_XMM16_REGNUM): New define for XMM16 register number.
6028 (I387_YMM0_REGNUM): New define for YMM0 register number.
6029 (I387_KEND_REGNUM): New define for last K register number.
6030 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6031 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6033 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6035 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6037 * features/Makefile: Add AVX512 related files.
6038 * features/i386/32bit-avx512.xml: New file.
6039 * features/i386/64bit-avx512.xml: Likewise.
6040 * features/i386/amd64-avx512-linux.c: Likewise.
6041 * features/i386/amd64-avx512-linux.xml: Likewise.
6042 * features/i386/amd64-avx512.c: Likewise.
6043 * features/i386/amd64-avx512.xml: Likewise.
6044 * features/i386/i386-avx512-linux.c: Likewise.
6045 * features/i386/i386-avx512-linux.xml: Likewise.
6046 * features/i386/i386-avx512.c: Likewise.
6047 * features/i386/i386-avx512.xml: Likewise.
6048 * features/i386/x32-avx512-linux.c: Likewise.
6049 * features/i386/x32-avx512-linux.xml: Likewise.
6050 * features/i386/x32-avx512.c: Likewise.
6051 * features/i386/x32-avx512.xml: Likewise.
6052 * regformats/i386/amd64-avx512-linux.dat: New file.
6053 * regformats/i386/amd64-avx512.dat: Likewise.
6054 * regformats/i386/i386-avx512-linux.dat: Likewise.
6055 * regformats/i386/i386-avx512.dat: Likewise.
6056 * regformats/i386/x32-avx512-linux.dat: Likewise.
6057 * regformats/i386/x32-avx512.dat: Likewise.
6058 * NEWS: Add note about new support for AVX512.
6061 2014-04-23 Pedro Alves <palves@redhat.com>
6063 * breakpoint.c (insert_bp_location): Tolerate errors if the
6064 breakpoint is set in a user-loaded objfile.
6065 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6066 location is marked shlib_disabled. If the breakpoint is set in a
6067 user-loaded objfile is a GDB-side memory breakpoint, validate it
6068 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6069 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6071 * mem-break.c (memory_validate_breakpoint): New function.
6072 * objfiles.c (userloaded_objfile_contains_address_p): New
6074 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6075 * target.h (memory_validate_breakpoint): New declaration.
6077 2014-04-23 Pedro Alves <palves@redhat.com>
6079 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6080 the breakpoint is set in a shared library, only suppress
6081 errors for software breakpoints, not hardware breakpoints.
6083 2014-04-22 Pedro Alves <palves@redhat.com>
6085 * infrun.c (schedlock_applies): New function, factored out from
6086 find_thread_needs_step_over.
6087 (find_thread_needs_step_over): Use it.
6088 (switch_back_to_stepped_thread): Always clear trap_expected if the
6089 step over is finished. Return early if scheduler locking applies.
6090 Look for the stepping thread and a potential step-over thread with
6092 (currently_stepping_or_nexting_callback): Delete.
6094 2014-04-22 Nick Clifton <nickc@redhat.com>
6096 * NEWS: Mention that ARM sim now supports tracing.
6098 2014-04-22 Yao Qi <yao@codesourcery.com>
6100 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6102 * tracefile.c (tracefile_fetch_registers): ... it. New
6104 * tracefile.h (tracefile_fetch_registers): Declare.
6105 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6106 tracefile_fetch_registers.
6108 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6111 * windows-nat.c (thread_rec): Don't display a warning when
6112 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6113 fails for any reason, set th->suspended to -1, so that we don't
6114 try to resume such a thread. Also, don't return NULL in these
6115 cases, to avoid completely ruin the session due to "PC register is
6116 not available" error.
6117 (do_windows_fetch_inferior_registers): Check errors in
6118 GetThreadContext call.
6119 (windows_continue): Accept an additional argument KILLED; if not
6120 zero, ignore errors in the SetThreadContext call, since the
6121 inferior was killed and is shutting down.
6122 (windows_resume, get_windows_debug_event)
6123 (windows_create_inferior, windows_mourn_inferior)
6124 (windows_kill_inferior): All callers of windows_continue changed
6125 to adjust to its new calling sequence.
6127 2014-04-19 Yao Qi <yao@codesourcery.com>
6129 * ctf.c (ctf_open): Call post_create_inferior.
6131 2014-04-19 Yao Qi <yao@codesourcery.com>
6133 * ctf.c (handle_id): New static variable.
6134 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6135 value. Get the declaration of event "register" and get length
6136 of field "contents".
6138 2014-04-19 Yao Qi <yao@codesourcery.com>
6140 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6142 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6144 * valops.c (oload_method_static): Remove unnecessary argument
6145 METHOD. Update all callers.
6147 2014-04-18 Pedro alves <palves@redhat.com>
6148 Tom Tromey <tromey@redhat.com>
6151 * frame.c (get_prev_frame_1): Rename to ...
6152 (get_prev_frame_always): ... this, and make extern. Adjust.
6153 (skip_artificial_frames): Use get_prev_frame_always.
6154 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6155 (get_frame_unwind_stop_reason): Adjust to rename.
6156 * frame.h (get_prev_frame_always): Declare.
6157 * inline-frame.c: Include frame.h.
6158 (inline_frame_this_id): Use get_prev_frame_always.
6160 2014-04-18 Tristan Gingold <gingold@adacore.com>
6162 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6163 code by using bfd_mach_o_get_base_address.
6165 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6167 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6168 (spu_ax_pseudo_register_collect): New function.
6169 (spu_ax_pseudo_register_push_stack): Likewise.
6170 (spu_dwarf_reg_to_regnum): Likewise.
6171 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6173 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6175 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6176 Replace FRAME argument with FRAME_ID.
6177 * gdbarch.c, gdbarch.h: Regenerate.
6178 * findvar.c (default_value_from_register): Add GDBARCH argument;
6179 replace FRAME by FRAME_ID. No longer call get_frame_id.
6180 (value_from_register): Update call to gdbarch_value_from_register.
6181 * value.h (default_value_from_register): Update prototype.
6182 * s390-linux-tdep.c (s390_value_from_register): Update interface
6183 and call to default_value_from_register.
6184 * spu-tdep.c (spu_value_from_register): Likewise.
6186 * findvar.c (address_from_register): Remove TYPE argument.
6187 Do not call value_from_register; use gdbarch_value_from_register
6188 with null_frame_id instead.
6189 * value.h (address_from_register): Update prototype.
6190 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6191 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6192 address_from_register interface change.
6194 2014-04-17 Yao Qi <yao@codesourcery.com>
6196 * gdbtypes.h: Update comments to link to types and macros'
6199 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6201 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6203 2014-04-16 Keith Seitz <keiths@redhat.com>
6206 * dwarf2read.c (skip_one_die): Check that all relative-offset
6207 sibling DIEs fall within range of the current reader's buffer.
6208 (read_partial_die): Likewise.
6210 2014-04-16 Keith Seitz <keiths@redhat.com>
6213 * cp-namespace.c (lookup_symbol_file): If the type name of
6214 `this' is NULL, return immediately.
6216 2014-04-14 Keith Seitz <keiths@redhat.com>
6219 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6220 from symbol_matches_domain in symtab.c. All local callers
6221 of symbol_matches_domain updated.
6222 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6223 search STRUCT_DOMAIN.
6224 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6225 independently. standard_lookup will do that automatically.
6226 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6227 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6228 (cp_lookup_symbol_in_namespace): Likewise.
6229 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6230 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6231 may return a STRUCT_DOMAIN match.
6232 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6233 * cp-support.c: Include language.h.
6234 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6236 * psymtab.c (match_partial_symbol): Compare the requested
6237 domain with the symbol's domain directly.
6238 (lookup_partial_symbol): Likewise.
6239 * symtab.c (lookup_symbol_in_language): Explain when/why
6240 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6241 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6242 appropriate languages.
6243 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6244 and moved to ada-lang.c
6245 (lookup_block_symbol): Explain that this function only returns
6246 symbol matching the requested DOMAIN.
6247 Compare the requested domain with the symbol's domain directly.
6248 (iterate_over_symbols): Compare the requested domain with the
6249 symbol's domain directly.
6250 * symtab.h (symbol_matches_domain): Remove.
6252 2014-04-14 Tom Tromey <tromey@redhat.com>
6255 * c-exp.y (type_aggregate_p): New function.
6256 (qualified_name, classify_inner_name): Use it.
6257 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6258 and TYPE_TARGET_TYPE of an enum type.
6259 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6261 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6262 handle TYPE_DECLARED_CLASS.
6263 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6265 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6266 * valops.c (enum_constant_from_type): New function.
6267 (value_aggregate_elt): Use it.
6268 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6271 2014-04-14 Tom Tromey <tromey@redhat.com>
6273 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6274 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6276 * value.h (value_aggregate_elt): Update.
6278 2014-04-14 Tom Tromey <tromey@redhat.com>
6280 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6282 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6284 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6285 (evaluate_subexp_standard): Pass noside argument.
6286 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6287 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6288 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6289 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6290 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6292 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6294 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6295 points to a constant blob.
6297 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6299 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6300 property and store it as the high bound and flag the range accordingly.
6301 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6302 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6303 * gdbtypes.h (enum range_flags): New enum.
6304 (struct range_bounds): Add flags member.
6306 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6308 * c-typeprint.c (c_type_print_varspec_suffix): Added
6309 check for not yet resolved high bound. If unresolved, print
6310 "variable length" string to the console instead of random
6313 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6315 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6317 (ada_template_to_fixed_record_type_1): Likewise.
6318 (ada_to_fixed_type_1): Likewise.
6319 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6320 (cp_print_value): Likewise.
6321 * d-valprint.c (dynamic_array_type): Likewise.
6322 * findvar.c (address_of_variable): Likewise.
6323 * jv-valprint.c (java_value_print): Likewise.
6324 * valops.c (value_ind): Likewise.
6325 * value.c (coerce_ref): Likewise.
6327 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6329 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6330 value and retrieve the dynamic type size.
6332 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6334 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6335 passed to sizeof is dynamic evaluate the argument to compute the length.
6337 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6338 Joel Brobecker <brobecker@adacore.com>
6340 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6341 (dwarf2_evaluate_property): New function.
6342 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6343 * dwarf2read.c (attr_to_dynamic_prop): New function.
6344 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6346 * gdbtypes.c: Include dwarf2loc.h.
6347 (is_dynamic_type): New function.
6348 (resolve_dynamic_type): New function.
6349 (resolve_dynamic_bounds): New function.
6350 (get_type_length): New function.
6351 (check_typedef): Use get_type_length to compute type length.
6352 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6353 (TYPE_LOW_BOUND_KIND): New macro.
6354 (is_dynamic_type): New function prototype.
6355 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6356 to resolve dynamic properties of the type. Update comment.
6357 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6359 2014-04-14 Richard Henderson <rth@redhat.com>
6361 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6363 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6364 Doug Evans <xdje42@gmail.com>
6366 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6367 dereference TYPE_CODE_REF values.
6369 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6371 Revert the following changes due to regressions:
6373 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6374 (dwarf2_evaluate_property): New function.
6375 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6376 * dwarf2read.c (attr_to_dynamic_prop): New function.
6377 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6379 * gdbtypes.c: Include dwarf2loc.h.
6380 (is_dynamic_type): New function.
6381 (resolve_dynamic_type): New function.
6382 (resolve_dynamic_bounds): New function.
6383 (get_type_length): New function.
6384 (check_typedef): Use get_type_length to compute type length.
6385 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6386 (TYPE_LOW_BOUND_KIND): New macro.
6387 (is_dynamic_type): New function prototype.
6388 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6389 to resolve dynamic properties of the type. Update comment.
6390 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6392 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6393 passed to sizeof is dynamic evaluate the argument to compute the length.
6395 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6396 value and retrieve the dynamic type size.
6398 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6399 (ada_template_to_fixed_record_type_1): Likewise.
6400 (ada_to_fixed_type_1): Likewise.
6401 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6402 (cp_print_value): Likewise.
6403 * d-valprint.c (dynamic_array_type): Likewise.
6404 * eval.c (evaluate_subexp_with_coercion): Likewise.
6405 * findvar.c (address_of_variable): Likewise.
6406 * jv-valprint.c (java_value_print): Likewise.
6407 * valops.c (value_ind): Likewise.
6408 * value.c (coerce_ref): Likewise.
6410 * c-typeprint.c (c_type_print_varspec_suffix): Added
6411 check for not yet resolved high bound. If unresolved, print
6412 "variable length" string to the console instead of random
6415 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6416 property and store it as the high bound and flag the range accordingly.
6417 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6418 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6419 * gdbtypes.h (enum range_flags): New enum.
6420 (struct range_bounds): Add flags member.
6422 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6423 points to a constant blob.
6425 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6426 (evaluate_subexp_standard): Pass noside argument.
6427 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6428 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6429 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6430 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6431 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6433 2014-04-11 Keith Seitz <keiths@redhat.com>
6436 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6437 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6440 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6442 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6443 (evaluate_subexp_standard): Pass noside argument.
6444 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6445 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6446 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6447 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6448 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6450 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6452 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6453 points to a constant blob.
6455 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6457 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6458 property and store it as the high bound and flag the range accordingly.
6459 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6460 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6461 * gdbtypes.h (enum range_flags): New enum.
6462 (struct range_bounds): Add flags member.
6464 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6466 * c-typeprint.c (c_type_print_varspec_suffix): Added
6467 check for not yet resolved high bound. If unresolved, print
6468 "variable length" string to the console instead of random
6471 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6473 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6474 (ada_template_to_fixed_record_type_1): Likewise.
6475 (ada_to_fixed_type_1): Likewise.
6476 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6477 (cp_print_value): Likewise.
6478 * d-valprint.c (dynamic_array_type): Likewise.
6479 * eval.c (evaluate_subexp_with_coercion): Likewise.
6480 * findvar.c (address_of_variable): Likewise.
6481 * jv-valprint.c (java_value_print): Likewise.
6482 * valops.c (value_ind): Likewise.
6483 * value.c (coerce_ref): Likewise.
6485 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6487 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6488 value and retrieve the dynamic type size.
6490 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6492 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6493 passed to sizeof is dynamic evaluate the argument to compute the length.
6495 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6497 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6498 (dwarf2_evaluate_property): New function.
6499 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6500 * dwarf2read.c (attr_to_dynamic_prop): New function.
6501 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6503 * gdbtypes.c: Include dwarf2loc.h.
6504 (is_dynamic_type): New function.
6505 (resolve_dynamic_type): New function.
6506 (resolve_dynamic_bounds): New function.
6507 (get_type_length): New function.
6508 (check_typedef): Use get_type_length to compute type length.
6509 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6510 (TYPE_LOW_BOUND_KIND): New macro.
6511 (is_dynamic_type): New function prototype.
6512 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6513 to resolve dynamic properties of the type. Update comment.
6514 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6516 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6518 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6519 declaring high/low bounds and change uses accordingly. Call
6520 create_range_type instead of create_static_range_type.
6521 * gdbtypes.c (create_range_type): New function.
6522 (create_range_type): Convert bounds into struct bound_prop and pass
6523 them to create_range_type.
6524 * gdbtypes.h (struct bound_prop): New struct.
6525 (create_range_type): New function prototype.
6526 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6527 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6528 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6530 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6532 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6534 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6535 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6536 * ada-lang.c: All uses of create_range_type updated.
6537 * coffread.c: All uses of create_range_type updated.
6538 * dwarf2read.c: All uses of create_range_type updated.
6539 * f-exp.y: All uses of create_range_type updated.
6540 * m2-valprint.c: All uses of create_range_type updated.
6541 * mdebugread.c: All uses of create_range_type updated.
6542 * stabsread.c: All uses of create_range_type updated.
6543 * valops.c: All uses of create_range_type updated.
6544 * valprint.c: All uses of create_range_type updated.
6546 2014-04-10 Pedro Alves <palves@redhat.com>
6548 * breakpoint.c (single_step_breakpoints)
6549 (single_step_gdbarch): Move up in the file.
6550 (one_breakpoint_xfer_memory): New function, factored out from ...
6551 (breakpoint_xfer_memory): ... here. Also process single-step
6554 2014-04-09 Tristan Gingold <gingold@adacore.com>
6556 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6558 (darwin_decode_exception_message): Free port only after use.
6560 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6562 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6563 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6564 when setting the size of call_length.
6566 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6568 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6569 dereference TYPE_CODE_REF values.
6571 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6573 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6574 end of warning message.
6576 2014-04-03 Doug Evans <dje@google.com>
6578 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6579 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6581 2014-04-02 Alan Modra <amodra@gmail.com>
6583 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6584 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6585 (struct symbol_file_add_from_memory_args): Add size field.
6586 (find_vdso_size): New function.
6587 (add_vsyscall_page): Attempt to find vdso size.
6589 2014-04-01 Doug Evans <dje@google.com>
6591 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6593 2014-04-01 Tristan Gingold <gingold@adacore.com>
6595 * darwin-nat.c (darwin_encode_reply): Add prototype.
6596 (darwin_decode_exception_message): Reply to unknown inferiors.
6597 (darwin_decode_message): Handle message by id. Ignore message
6598 to unknown inferior.
6599 (darwin_wait): Discard unknown messages, add debug trace.
6601 2014-03-31 Doug Evans <dje@google.com>
6603 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6606 2014-03-31 Doug Evans <dje@google.com>
6608 New option "set print symbol-loading".
6610 * solib.c (solib_read_symbols): Only print symbol loading messages
6612 (solib_add): If symbol loading is in "brief" mode, notify user
6613 symbols are being loaded.
6614 (reload_shared_libraries_1): Ditto.
6615 * symfile.c (print_symbol_loading_off): New static global.
6616 (print_symbol_loading_brief): New static global.
6617 (print_symbol_loading_full): New static global.
6618 (print_symbol_loading_enums): New static global.
6619 (print_symbol_loading): New static global.
6620 (print_symbol_loading_p): New function.
6621 (symbol_file_add_with_addrs): Only print symbol loading messages
6623 (_initialize_symfile): Register "print symbol-loading" set/show
6625 * symfile.h (print_symbol_loading_p): Declare.
6627 2014-03-30 Doug Evans <xdje42@gmail.com>
6629 * infrun.c (set_last_target_status): New function.
6630 (handle_inferior_event): Call it.
6632 2014-03-30 Doug Evans <xdje42@gmail.com>
6634 * inferior.h (enum stop_kind): Improve comment.
6636 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6638 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6639 a reference, strip the reference layer before calling
6640 the lang_ops value_has_mutated callback.
6642 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6644 Remove some globals from our parser.
6645 * language.c (unk_lang_parser): Add "struct parser_state"
6647 * language.h (struct language_defn) <la_parser>: Likewise.
6648 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6649 (initialize_expout): Add "struct parser_state" argument.
6650 Rewrite function to use the parser state.
6651 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6652 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6653 write_exp_elt_longcst, write_exp_elt_dblcst,
6654 write_exp_elt_decfloatcst, write_exp_elt_type,
6655 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6656 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6657 write_dollar_variable): Likewise.
6658 (parse_exp_in_context_1): Use parser state.
6659 (insert_type_address_space): Add "struct parser_state" argument.
6661 (increase_expout_size): New function.
6662 * parser-defs.h: Forward declare "struct language_defn" and
6663 "struct parser_state".
6664 (expout, expout_size, expout_ptr): Remove extern declarations.
6665 (parse_gdbarch, parse_language): Rewrite macro declarations to
6666 accept the parser state.
6667 (struct parser_state): New struct.
6668 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6669 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6670 write_exp_elt_decfloatcst, write_exp_elt_type,
6671 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6672 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6673 write_exp_msymbol, write_dollar_variable,
6674 mark_struct_expression, insert_type_address_space): Add "struct
6675 parser_state" argument.
6676 (increase_expout_size): New function.
6677 * utils.c (do_clear_parser_state): New function.
6678 (make_cleanup_clear_parser_state): Likewise.
6679 * utils.h (make_cleanup_clear_parser_state): New function
6681 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6682 Update calls to write_exp* in order to pass the parser state.
6683 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6684 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6685 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6686 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6687 * stap-probe.c (stap_parse_register_operand): Likewise.
6688 (stap_parse_single_operand): Likewise.
6689 (stap_parse_argument_1): Likewise.
6690 (stap_parse_argument): Use parser state.
6691 * stap-probe.h: Include "parser-defs.h".
6692 (struct stap_parse_info) <pstate>: New field.
6693 * c-exp.y (parse_type): Rewrite to use parser state.
6694 (yyparse): Redefine to c_parse_internal.
6695 (pstate): New global variable.
6696 (parse_number): Add "struct parser_state" argument.
6697 (write_destructor_name): Likewise.
6698 (type_exp): Update calls to write_exp* and similars in order to
6700 (exp1, exp, variable, qualified_name, space_identifier,
6701 typename, typebase): Likewise.
6702 (write_destructor_name, parse_number, lex_one_token,
6703 classify_name, classify_inner_name, c_parse): Add "struct
6704 parser_state" argument. Update function to use parser state.
6705 * c-lang.h: Forward declare "struct parser_state".
6706 (c_parse): Add "struct parser_state" argument.
6707 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6708 (yyparse): Redefine macro to ada_parse_internal.
6709 (pstate): New variable.
6710 (write_int, write_object_renaming, write_var_or_type,
6711 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6712 type_int, type_long, type_long_long, type_float, type_double,
6713 type_long_double, type_char, type_boolean, type_system_address):
6714 Add "struct parser_state" argument.
6715 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6716 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6717 var_or_type, aggregate, aggregate_component_list,
6718 positional_list, others, component_group,
6719 component_associations): Update calls to write_exp* and similar
6720 functions in order to use parser state.
6721 (ada_parse, write_var_from_sym, write_int,
6722 write_exp_op_with_string, write_object_renaming,
6723 find_primitive_type, write_selectors, write_ambiguous_var,
6724 write_var_or_type, write_name_assoc, type_int, type_long,
6725 type_long_long, type_float, type_double, type_long_double,
6726 type_char, type_boolean, type_system_address): Add "struct
6727 parser_state" argument. Adjust function to use parser state.
6728 * ada-lang.c (parse): Likewise.
6729 * ada-lang.h: Forward declare "struct parser_state".
6730 (ada_parse): Add "struct parser_state" argument.
6731 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6732 calls to both functions.
6733 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6735 (yyparse): Redefine macro to f_parse_internal.
6736 (pstate): New variable.
6737 (parse_number): Add "struct parser_state" argument.
6738 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6739 and similars in order to use parser state.
6740 (parse_number): Adjust code to use parser state.
6742 (f_parse): New function.
6743 * f-lang.h: Forward declare "struct parser_state".
6744 (f_parse): Add "struct parser_state" argument.
6745 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6747 (yyparse): Redefine macro for java_parse_internal.
6748 (pstate): New variable.
6749 (push_expression_name, push_expression_name, insert_exp): Add
6750 "struct parser_state" argument.
6751 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6752 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6753 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6754 PostIncrementExpression, PostDecrementExpression,
6755 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6756 UnaryExpressionNotPlusMinus, CastExpression,
6757 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6758 RelationalExpression, EqualityExpression, AndExpression,
6759 ExclusiveOrExpression, InclusiveOrExpression,
6760 ConditionalAndExpression, ConditionalOrExpression,
6761 ConditionalExpression, Assignment, LeftHandSide): Update
6762 calls to write_exp* and similars in order to use parser state.
6763 (parse_number): Ajust code to use parser state.
6765 (java_parse): New function.
6766 (push_variable): Add "struct parser_state" argument. Adjust
6767 code to user parser state.
6768 (push_fieldnames, push_qualified_expression_name,
6769 push_expression_name, insert_exp): Likewise.
6770 * jv-lang.h: Forward declare "struct parser_state".
6771 (java_parse): Add "struct parser_state" argument.
6772 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6774 (yyparse): Redefine macro to m2_parse_internal.
6775 (pstate): New variable.
6776 (type_exp, exp, fblock, variable, type): Update calls to
6777 write_exp* and similars to use parser state.
6779 (m2_parse): New function.
6780 * m2-lang.h: Forward declare "struct parser_state".
6781 (m2_parse): Add "struct parser_state" argument.
6782 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6783 * objc-lang.h: Forward declare "struct parser_state".
6784 (end_msglist): Add "struct parser_state" argument.
6785 * p-exp.y (parse_type): Rewrite macro to use parser state.
6786 (yyparse): Redefine macro to pascal_parse_internal.
6787 (pstate): New variable.
6788 (parse_number): Add "struct parser_state" argument.
6789 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6790 write_exp* and similars in order to use parser state.
6791 (parse_number, yylex): Adjust code to use parser state.
6792 (pascal_parse): New function.
6793 * p-lang.h: Forward declare "struct parser_state".
6794 (pascal_parse): Add "struct parser_state" argument.
6795 * go-exp.y (parse_type): Rewrite macro to use parser state.
6796 (yyparse): Redefine macro to go_parse_internal.
6797 (pstate): New variable.
6798 (parse_number): Add "struct parser_state" argument.
6799 (type_exp, exp1, exp, variable, type): Update calls to
6800 write_exp* and similars in order to use parser state.
6801 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6802 to use parser state.
6803 (go_parse): Likewise.
6804 * go-lang.h: Forward declare "struct parser_state".
6805 (go_parse): Add "struct parser_state" argument.
6807 2014-03-27 Doug Evans <dje@google.com>
6809 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6811 2014-03-27 Doug Evans <dje@google.com>
6813 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6814 Remove argument abbrev_section. All callers updated.
6816 2014-03-27 Doug Evans <dje@google.com>
6818 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6819 addr_base, ranges_base.
6821 2014-03-26 Keith Seitz <keiths@redhat.com>
6823 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6824 types, not VAR_DOMAIN.
6826 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6828 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6830 * features/nios2-linux.c: Regenerated.
6831 * features/nios2.c: Regenerated.
6833 2014-03-25 Pedro Alves <palves@redhat.com>
6835 * cli/cli-script.c (script_from_file): Force the interpreter to
6838 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6840 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6841 small stack allocation.
6843 2014-03-24 Tristan Gingold <gingold@adacore.com>
6845 * darwin-nat.c (exc_server): Remove unused prototype.
6846 (darwin_dump_message): Correctly display data on x86_64.
6847 (darwin_encode_reply): Fix style.
6848 Add comments and fix indentation.
6850 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6852 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6854 2014-03-22 Doug Evans <xdje42@gmail.com>
6856 * infcmd.c: Whitespace fixes.
6857 (interrupt_command): Merge two function comments into one.
6859 2014-03-22 Doug Evans <xdje42@gmail.com>
6861 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6864 2014-03-22 Yao Qi <yao@codesourcery.com>
6866 * remote.c (target_read_live_memory): Remove.
6867 (memory_xfer_live_readonly_partial): Rename it to
6868 remote_xfer_live_readonly_partial. Remove argument 'object'.
6869 All callers updated. Call remote_read_bytes_1
6870 instead of target_read_live_memory.
6871 * tracepoint.c (set_traceframe_number): Remove.
6872 (make_cleanup_restore_traceframe_number): Likewise .
6873 * tracepoint.h (set_traceframe_number): Remove declaration.
6874 (make_cleanup_restore_traceframe_number): Likewise.
6876 2014-03-22 Yao Qi <yao@codesourcery.com>
6878 * remote.c (remote_read_bytes): Move code on reading from the
6880 (remote_read_bytes_1): ... here. New function.
6882 2014-03-22 Yao Qi <yao@codesourcery.com>
6884 * ctf.c (ctf_xfer_partial): Check the return value of
6885 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6886 return TARGET_XFER_UNAVAILABLE.
6887 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6888 * target.c (target_read_live_memory): Move it to remote.c.
6889 (memory_xfer_live_readonly_partial): Likewise.
6890 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6891 * remote.c (target_read_live_memory): Moved from target.c.
6892 (memory_xfer_live_readonly_partial): Likewise.
6893 (remote_read_bytes): Factored out from
6894 memory_xfer_partial_1.
6896 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6898 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6901 2014-03-21 Pedro Alves <palves@redhat.com>
6903 * infrun.c (normal_stop): Extend comment.
6905 2014-03-21 Hui Zhu <hui@codesourcery.com>
6906 Pedro Alves <palves@redhat.com>
6908 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6910 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6911 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6912 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6914 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6916 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6917 `z' formatted output modifier.
6919 2014-03-20 Tom Tromey <tromey@redhat.com>
6920 Sergio Durigan Junior <sergiodj@redhat.com>
6922 * probe.c (parse_probes): Turn assert into an ordinary error.
6923 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6924 exceptions when parsing probes. Rearrange the code for clarity.
6926 2014-03-20 Tom Tromey <tromey@redhat.com>
6929 * top.c (execute_command): Only dispatch events if the command
6932 2014-03-20 Tom Tromey <tromey@redhat.com>
6935 * infcall.c: Include event-top.h.
6936 (run_inferior_call): Call async_disable_stdin if needed.
6938 2014-03-20 Pedro Alves <palves@redhat.com>
6940 * infrun.c (prepare_to_proceed): Delete.
6941 (thread_still_needs_step_over): New function.
6942 (find_thread_needs_step_over): New function.
6943 (proceed): If the current thread needs a step-over, set its
6944 steping_over_breakpoint flag. Adjust to use
6945 find_thread_needs_step_over instead of prepare_to_proceed.
6946 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6947 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6949 (switch_back_to_stepped_thread): Step over breakpoints of all
6950 threads not the stepping thread, before switching back to the
6953 2014-03-20 Pedro Alves <palves@redhat.com>
6955 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6957 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6958 * infrun.c (saved_singlestep_ptid)
6959 (stepping_past_singlestep_breakpoint): Delete.
6960 (resume): Remove stepping_past_singlestep_breakpoint handling.
6961 (proceed): Store the prev_pc of the stepping thread too.
6962 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6964 (enum infwait_states): Delete infwait_thread_hop_state.
6965 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6967 (handle_inferior_event): Adjust.
6968 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6969 handling and the thread-hop code. Before removing single-step
6970 breakpoints, check whether the thread hit a single-step breakpoint
6971 of another thread. If it did, the trap is not a random signal.
6972 (switch_back_to_stepped_thread): If the event thread hit a
6973 single-step breakpoint, unblock it before switching to the
6974 stepping thread. Handle the case of the stepped thread having
6976 (keep_going): Handle the case of the current thread moving past a
6977 single-step breakpoint.
6979 2014-03-20 Pedro Alves <palves@redhat.com>
6982 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6983 are being stepped over.
6984 (breakpoint_address_match): Make extern.
6985 * breakpoint.h (breakpoint_address_match): New declaration.
6986 * inferior.h (stepping_past_instruction_at): New declaration.
6987 * infrun.c (struct step_over_info): New type.
6988 (step_over_info): New global.
6989 (set_step_over_info, clear_step_over_info)
6990 (stepping_past_instruction_at): New functions.
6991 (handle_inferior_event): Clear the step-over info when
6992 trap_expected is cleared.
6993 (resume): Remove now stale comment.
6994 (clear_proceed_status): Clear step-over info.
6995 (proceed): Adjust step-over handling to set or clear the step-over
6996 info instead of removing all breakpoints.
6997 (handle_signal_stop): When setting up a thread-hop, don't remove
6999 (stop_stepping): Clear step-over info.
7000 (keep_going): Adjust step-over handling to set or clear step-over
7001 info and then always inserting breakpoints, instead of removing
7002 all breakpoints when stepping over one.
7004 2014-03-20 Pedro Alves <palves@redhat.com>
7006 * infrun.c (previous_inferior_ptid): Adjust comment.
7007 (deferred_step_ptid): Delete.
7008 (infrun_thread_ptid_changed, prepare_to_proceed)
7009 (init_wait_for_inferior): Adjust.
7010 (handle_signal_stop): Delete deferred_step_ptid handling.
7012 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7015 * defs.h (sync_quit_force_run): New declaration.
7016 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7017 * event-top.c (async_sigterm_handler): New declaration.
7018 (async_sigterm_token): New variable.
7019 (async_init_signals): Create also async_sigterm_token.
7020 (async_sigterm_handler): New function.
7021 (sync_quit_force_run): New variable.
7022 (handle_sigterm): Replace quit_force call by other calls.
7023 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7025 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7027 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7028 offset into SPE pseudo registers.
7030 2014-03-18 Pedro Alves <palves@redhat.com>
7033 * inferior.h (print_stop_event): Declare.
7034 * infrun.c (print_stop_event): New, factored out from ...
7035 (normal_stop): ... this.
7036 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7037 of bpstat_print/print_stack_frame.
7039 2014-03-17 Tom Tromey <tromey@redhat.com>
7041 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7043 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7045 * ada-lang.c (decode_constrained_packed_array): Perform a
7046 minimal coercion for reference with coerce_ref instead of
7049 2014-03-17 Tristan Gingold <gingold@adacore.com>
7051 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7052 (darwin_solib_create_inferior_hook): Emit a warning if version
7055 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7057 * python/py-value.c (get_field_flag): Cast flag_name argument to
7058 PyObject_GetAttrString to support Python 2.4.
7060 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7062 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7063 (Global Maintainers): Remove Jan Kratochvil.
7065 2014-03-14 Pedro Alves <palves@redhat.com>
7067 * inferior.h (terminal_ours_for_output): Rename to ...
7068 (child_terminal_ours_for_output): ... this.
7069 (terminal_save_ours): Rename to ...
7070 (child_terminal_save_ours): ... this.
7071 (terminal_ours): Rename to ...
7072 (child_terminal_ours): ... this.
7073 (terminal_inferior): Rename to ...
7074 (child_terminal_inferior): ... this.
7075 (terminal_init_inferior): Rename to ...
7076 (child_terminal_init_inferior): ... this.
7077 (terminal_init_inferior_with_pgrp): Rename to ...
7078 (child_terminal_init_inferior_with_pgrp): ... this.
7079 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7080 (child_terminal_init_with_pgrp): ... this.
7081 (terminal_save_ours): Rename to ...
7082 (child_terminal_save_ours): ... this.
7083 (terminal_init_inferior): Rename to ...
7084 (child_terminal_init): ... this. Adjust.
7085 (terminal_inferior): Rename to ...
7086 (child_terminal_inferior): ... this.
7087 (terminal_ours_for_output): Rename to ...
7088 (child_terminal_ours_for_output): ... this. Adjust.
7089 (terminal_ours): Rename to ...
7090 (child_terminal_ours): ... this.
7091 (terminal_ours_1): Rename to ...
7092 (child_terminal_ours_1): ... this. Adjust.
7093 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7094 * windows-nat.c (do_initial_windows_stuff): Adjust.
7095 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7096 (gnu_terminal_init): ... this. Adjust.
7097 (gnu_target): Adjust.
7098 * inf-child.c (inf_child_target): Adjust.
7100 2014-03-13 Doug Evans <xdje42@gmail.com>
7103 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7106 2014-03-13 Doug Evans <xdje42@gmail.com>
7108 * value.c (record_latest_value): Call release_value_or_incref
7109 instead of release_value.
7111 2014-03-13 Pedro Alves <palves@redhat.com>
7113 * procfs.c (procfs_target): Don't override to_shortname,
7114 to_longname or to_doc.
7116 2014-03-13 Pedro Alves <palves@redhat.com>
7118 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7119 Unix in user visible strings.
7121 2014-03-12 Stan Shebs <stan@codesourcery.com>
7123 * gdbtypes.h: Annotate comments for Doxygen, add a page
7124 block comment with some general info.
7126 2014-03-12 Pedro Alves <palves@redhat.com>
7128 * infcmd.c (prepare_execution_command): New function, factored out
7129 from several execution commands.
7130 (run_command_1, continue_command, step_1, jump_command)
7131 (signal_command, until_command, advance_command, finish_command)
7132 (attach_command): Use prepare_execution_command.
7134 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7136 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7139 (struct arm_linux_thread_points): Removed.
7140 (struct arm_linux_process_info): New.
7141 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7142 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7143 (arm_linux_find_breakpoints_by_tid): Removed.
7144 (struct arch_lwp_info): New.
7145 (arm_linux_find_process_pid): New functions.
7146 (arm_linux_add_process): New functions.
7147 (arm_linux_process_info_get): New functions.
7148 (arm_linux_forget_process): New function.
7149 (arm_linux_get_debug_reg_state): New function.
7150 (struct update_registers_data): New.
7151 (update_registers_callback): New function.
7152 (arm_linux_insert_hw_breakpoint1): Updated.
7153 (arm_linux_remove_hw_breakpoint1): Updated.
7154 (arm_linux_insert_hw_breakpoint): Updated.
7155 (arm_linux_remove_hw_breakpoint): Updated.
7156 (arm_linux_insert_watchpoint): Updated.
7157 (arm_linux_remove_watchpoint): Updated.
7158 (arm_linux_new_thread): Updated.
7159 (arm_linux_prepare_to_resume): New function.
7160 (arm_linux_new_fork): New function.
7161 (_initialize_arm_linux_nat): Updated.
7163 2014-03-12 Pedro Alves <palves@redhat.com>
7165 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7167 2014-03-12 Tom Tromey <tromey@redhat.com>
7169 * inf-child.c (return_zero): New function.
7170 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7171 * aix-thread.c (aix_thread_inferior_created): New function.
7172 (aix_thread_attach): Remove.
7173 (init_aix_thread_ops): Don't set to_attach.
7174 (_initialize_aix_thread): Register inferior_created observer.
7175 * corelow.c (init_core_ops): Don't set to_attach or
7177 * exec.c (init_exec_ops): Don't set to_attach or
7179 * infcmd.c (run_command_1): Use find_run_target. Make direct
7181 (attach_command): Use find_attach_target. Make direct target
7183 * record-btrace.c (init_record_btrace_ops): Don't set
7185 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7187 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7188 set to_create_inferior.
7189 * target.c (complete_target_initialization): Add assertion.
7190 (target_create_inferior): Remove.
7191 (find_default_attach, find_default_create_inferior): Remove.
7192 (find_attach_target, find_run_target): New functions.
7193 (find_default_is_async_p, find_default_can_async_p)
7194 (target_supports_non_stop, target_attach): Remove.
7195 (init_dummy_target): Don't set to_create_inferior or
7196 to_supports_non_stop.
7197 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7198 TARGET_DEFAULT_FUNC.
7199 <to_create_inferior>: Add comment.
7200 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7201 TARGET_DEFAULT_RETURN.
7202 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7203 (find_attach_target, find_run_target): Declare.
7204 (target_create_inferior): Remove.
7205 (target_has_execution_1): Update comment.
7206 (target_supports_non_stop): Remove.
7207 * target-delegates.c: Rebuild.
7209 2014-03-12 Pedro Alves <palves@redhat.com>
7211 * inf-child.h: Update comment to not mention Unix.
7213 2014-03-12 Pedro Alves <palves@redhat.com>
7215 * inf-child.c: Update top comment to not mention Unix. Add
7216 generic comment describing how this target is meant to be used.
7217 (inf_child_post_attach, inf_child_post_startup_inferior)
7218 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7221 2014-03-12 Pedro Alves <palves@redhat.com>
7223 * nto-procfs.c: Include inf-child.h.
7224 (procfs_ops): Delete global.
7225 (procfs_can_run): Delete method.
7226 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7227 target pointer instead of referencing procfs_ops.
7228 (procfs_prepare_to_store): Delete.
7229 (init_procfs_ops): Delete function.
7230 (procfs_target): New function, based on init_procfs_ops, but
7231 inherit inf_child_target.
7232 (_initialize_procfs): Use procfs_target.
7234 2014-03-12 Pedro Alves <palves@redhat.com>
7236 * windows-nat.c: Include inf-child.h.
7237 (windows_ops): Delete global.
7238 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7240 (init_windows_ops): Delete function.
7241 (windows_target): New function, based on init_windows_ops, but
7242 inherit inf_child_target.
7243 (_initialize_windows_nat): Use windows_target. Install x86
7244 specific target methods here.
7246 2014-03-10 Doug Evans <xdje42@gmail.com>
7248 * guile/guile.c (call_initialize_gdb_module): New function.
7249 (initialize_guile): Replace call to scm_init_guile with call to
7252 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7254 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7255 in call to TYPE_CODE macro.
7257 2014-03-10 Jerome Guitton <guitton@adacore.com>
7259 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7260 Resolve tagged types to full view.
7262 2014-03-10 Hui Zhu <hui@codesourcery.com>
7264 * target.h (target_insert_breakpoint): Remove "hardware" from its
7267 2014-03-07 Doug Evans <dje@google.com>
7269 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7271 2014-03-07 Doug Evans <dje@google.com>
7273 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7274 Remove unused local comp_dir_attr. Assert exactly one of
7275 stub_comp_unit_die, stub_comp_dir is non-NULL.
7277 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7279 * target.h (complete_target_initialization, add_target):
7282 2014-03-07 Pedro Alves <palves@redhat.com>
7284 * go32-nat.c: Include inf-child.h.
7285 (go32_ops): Delete global.
7286 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7288 (go32_create_inferior): Push the passed in target pointer instead
7289 of referencing go32_ops.
7290 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7291 (go32_target): New function, based on init_go32_ops, but inherit
7293 (_initialize_go32_nat): Use go32_target. Move parts of
7296 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7298 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7299 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7300 SYMBOL_VALUE_ADDRESS.
7301 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7303 2014-03-06 Yao Qi <yao@codesourcery.com>
7305 * breakpoint.c (get_tracepoint_by_number): Remove argument
7306 optional_p. All callers updated. Adjust comments. Update
7308 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7310 2014-03-06 Yao Qi <yao@codesourcery.com>
7312 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7313 early if get_number returns zero. Use 'p' instead of 'args'.
7315 2014-03-06 Yao Qi <yao@codesourcery.com>
7317 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7320 2014-03-06 Yao Qi <yao@codesourcery.com>
7322 PR breakpoints/16508
7323 * tracepoint.c (check_trace_running): New function.
7324 (trace_find_command): Move code to check_trace_running and
7325 call check_trace_running.
7326 (trace_find_pc_command): Likewise.
7327 (trace_find_tracepoint_command): Likewise.
7328 (trace_find_line_command): Likewise.
7329 (trace_find_range_command): Likewise.
7330 * tracepoint.h (check_trace_running): Likewise.
7331 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7333 2014-03-06 Yao Qi <yao@codesourcery.com>
7335 * target.h (struct target_ops) <to_traceframe_info>: Use
7336 TARGET_DEFAULT_NORETURN (tcomplain ()).
7337 * target-delegates.c: Regenerated.
7339 2014-03-05 Pedro Alves <palves@redhat.com>
7342 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7343 void. Update comment.
7344 (dcache_xfer_memory): Delete.
7345 (dcache_read_memory_partial): New, based on the read bits of
7347 (dcache_update): Add status parameter. Use ULONGEST for len, and
7348 adjust. Discard cache lines if the reason for the update was
7350 * dcache.h (dcache_xfer_memory): Delete declaration.
7351 (dcache_read_memory_partial): New declaration.
7352 (dcache_update): Update prototype.
7353 * target.c (raw_memory_xfer_partial): Update the dcache here.
7354 (memory_xfer_partial_1): Don't handle dcache writes here.
7356 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7358 * remote-sim.c (gdbsim_load): Add const to prog.
7360 2014-03-03 Tom Tromey <tromey@redhat.com>
7362 * elfread.c (probe_key): Change to bfd_data.
7363 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7364 now per-BFD, not per-objfile.
7365 * stap-probe.c (stap_probe_destroy): Update comment.
7366 (handle_stap_probe): Allocate on the per-BFD obstack.
7368 2014-03-03 Tom Tromey <tromey@redhat.com>
7370 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7371 * breakpoint.c (create_longjmp_master_breakpoint): Use
7373 (add_location_to_breakpoint, bkpt_probe_insert_location)
7374 (bkpt_probe_remove_location): Update.
7375 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7376 * elfread.c (elf_symfile_relocate_probe): Remove.
7377 (elf_probe_fns): Update.
7378 (insert_exception_resume_breakpoint): Change type of "probe"
7379 parameter to bound_probe.
7380 (check_exception_resume): Update.
7381 * objfiles.c (objfile_relocate1): Don't relocate probes.
7382 * probe.c (bound_probe_s): New typedef.
7383 (parse_probes): Use get_probe_address. Set sal's objfile.
7384 (find_probe_by_pc): Return a bound_probe.
7385 (collect_probes): Return a VEC(bound_probe_s).
7386 (compare_probes): Update.
7387 (gen_ui_out_table_header_info): Change type of "probes"
7389 (info_probes_for_ops): Update.
7390 (get_probe_address): New function.
7391 (probe_safe_evaluate_at_pc): Update.
7392 * probe.h (struct probe_ops) <get_probe_address>: New field.
7393 <set_semaphore, clear_semaphore>: Add objfile parameter.
7394 (struct probe) <objfile>: Remove field.
7396 <address>: Update comment.
7397 (struct bound_probe): New.
7398 (find_probe_by_pc): Return a bound_probe.
7399 (get_probe_address): Declare.
7400 * solib-svr4.c (struct probe_and_action) <address>: New field.
7401 (hash_probe_and_action, equal_probe_and_action): Update.
7402 (register_solib_event_probe): Add address parameter.
7403 (solib_event_probe_at): Update.
7404 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7406 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7407 (stap_get_probe_address): New function.
7408 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7409 (compile_probe_arg): Update.
7410 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7412 (handle_stap_probe): Don't relocate the probe.
7413 (stap_relocate): Remove.
7414 (stap_gen_info_probes_table_values): Update.
7415 (stap_probe_ops): Remove stap_relocate.
7416 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7417 (debug_sym_probe_fns): Update.
7418 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7419 * symtab.c (init_sal): Use memset.
7420 * symtab.h (struct symtab_and_line) <objfile>: New field.
7421 * tracepoint.c (start_tracing, stop_tracing): Update.
7423 2014-03-03 Tom Tromey <tromey@redhat.com>
7425 * probe.h (parse_probes, find_probe_by_pc)
7426 (find_probes_in_objfile): Fix comments.
7428 2014-03-02 Doug Evans <xdje42@gmail.com>
7430 * infrun.c (handle_signal_stop): Replace test for
7431 TARGET_WAITKIND_STOPPED with an assert.
7433 2014-03-02 Doug Evans <xdje42@gmail.com>
7435 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7437 2014-03-02 Doug Evans <xdje42@gmail.com>
7439 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7441 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7443 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7445 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7447 * i386obsd-nat.c: Include "obsd-nat.h".
7448 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7450 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7452 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7454 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7456 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7458 * mips64obsd-nat.c: Include "obsd-nath".
7459 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7461 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7463 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7465 * amd64obsd-nat.c: Include "obsd-nat,h.
7466 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7468 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7470 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7472 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7473 (find_overload_match): Update call to find_oload_champ.
7474 (find_oload_champ_namespace_loop): Likewise
7476 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7478 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7480 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7481 * config/sparc/obsd64.mh: New file.
7482 * sparc64obsd-nat.c: New file.
7484 * obsd-nat.h: New file.
7485 * obsd-nat.c: New file.
7486 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7487 (ALLDEPFILES): Add obsd-nat.c.
7489 2014-02-28 Tom Tromey <tromey@redhat.com>
7491 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7492 * cli-out.h (cli_ui_out_impl): Now const.
7493 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7494 * ui-out.c (struct ui_out) <impl>: Now const.
7495 (default_ui_out_impl): Now const.
7496 (ui_out_new): Make 'impl' parameter const.
7497 * ui-out.h (ui_out_new): Update.
7499 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7501 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7503 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7505 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7507 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7509 Additional PR 8882 fix.
7510 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7512 2014-02-27 Pedro Alves <palves@redhat.com>
7514 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7517 2014-02-27 Pedro Alves <palves@redhat.com>
7520 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7521 * nat/linux-waitpid.c: Include string.h.
7522 (status_to_str): Moved here and made extern.
7523 * nat/linux-waitpid.h (status_to_str): New declaration.
7525 2014-02-27 Hui Zhu <hui@codesourcery.com>
7528 * infrun.c (ptid_match): Move ...
7529 * common/ptid.c (ptid_match): ... here.
7530 * inferior.h (ptid_match): Move ...
7531 * common/ptid.h (ptid_match): ... here.
7533 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7535 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7536 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7539 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7541 * obsd-tdep.c (obsd_auxv_parse): New function.
7542 (obsd_init_abi): Set auxv_parse.
7544 * gdbarch.sh (auxv_parse): New.
7545 * gdbarch.h: Regenerated.
7546 * gdbarch.c: Regenerated.
7547 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7549 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7551 * guile/scm-value.c (gdbscm_history_append_x): New function.
7552 (value_functions): Add it.
7554 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7556 * dwarf2read.c (attr_value_as_address): New function.
7557 (dwarf2_find_base_address, read_call_site_scope): Use
7558 attr_value_as_address in place of DW_ADDR.
7559 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7560 the low and high addresses. Slight rework of the handling
7561 of the high pc being a constant form, and limit it to
7562 DWARF verson 4 or higher.
7563 (dwarf2_record_block_ranges): Likewise.
7564 (read_partial_die): Likewise.
7565 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7567 2014-02-26 Tom Tromey <tromey@redhat.com>
7569 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7571 2014-02-26 Tom Tromey <tromey@redhat.com>
7573 * elfread.c (elf_read_minimal_symbols): Return early if
7574 minimal symbols have already been read. Add "ei" parameter.
7575 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7576 * minsyms.c (prim_record_minimal_symbol_full): Update.
7577 * objfiles.h (struct objstats) <n_minsyms>: Move...
7578 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7579 * symmisc.c (print_objfile_statistics): Update.
7581 2014-02-26 Tom Tromey <tromey@redhat.com>
7583 * elfread.c (elf_read_minimal_symbols): New function, from
7585 (elf_symfile_read): Call it.
7587 2014-02-26 Tom Tromey <tromey@redhat.com>
7589 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7590 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7591 (lookup_minimal_symbol_solib_trampoline)
7592 (lookup_minimal_symbol_by_pc_section_1)
7593 (lookup_minimal_symbol_and_objfile): Update.
7594 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7595 Don't allocate a minimal symbol if minsyms have already been read.
7596 (build_minimal_symbol_hash_tables): Update.
7597 (install_minimal_symbols): Do nothing if minsyms already read.
7598 Use the per-BFD obstack.
7599 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7600 * objfiles.c (allocate_objfile): Call
7601 terminate_minimal_symbol_table later.
7602 (have_minimal_symbols): Update.
7603 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7604 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7605 Move from struct objfile.
7606 <minsyms_read>: New field.
7607 (struct objfile) <msymbols, minimal_symbol_count,
7608 msymbol_hash, msymbol_demangled_hash>: Move.
7609 (ALL_OBJFILE_MSYMBOLS): Update.
7610 * symfile.c (read_symbols): Set minsyms_read.
7611 (reread_symbols): Update.
7612 * symmisc.c (dump_objfile, dump_msymbols): Update.
7614 2014-02-26 Tom Tromey <tromey@redhat.com>
7616 * minsyms.c (msymbols_sort): Remove.
7617 * minsyms.h (msymbols_sort): Remove.
7618 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7619 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7620 * elfread.c (elf_symtab_read): Don't add section offsets.
7621 * xcoffread.c (record_minimal_symbol): Don't add section offset
7622 to minimal symbol address.
7623 * somread.c (text_offset, data_offset): Remove.
7624 (som_symtab_read): Don't add section offsets to minimal symbol
7626 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7627 Don't add section offsets to minimal symbols.
7628 * coffread.c (coff_symtab_read): Don't add section offsets
7629 to minimal symbol addresses.
7630 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7631 to minimal symbol addresses.
7632 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7633 section offset to minimal symbol addresses.
7634 * mdebugread.c (parse_partial_symbols): Don't add section
7635 offset to minimal symbol addresses.
7636 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7637 offset to minimal symbol addresses.
7639 2014-02-26 Tom Tromey <tromey@redhat.com>
7641 * ada-lang.c (ada_main_name): Update.
7642 (ada_add_standard_exceptions): Update.
7643 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7644 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7645 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7646 * auxv.c (ld_so_xfer_auxv): Update.
7647 * avr-tdep.c (avr_scan_prologue): Update.
7648 * ax-gdb.c (gen_var_ref): Update.
7649 * blockframe.c (get_pc_function_start)
7650 (find_pc_partial_function_gnu_ifunc): Update.
7651 * breakpoint.c (create_overlay_event_breakpoint)
7652 (create_longjmp_master_breakpoint)
7653 (create_std_terminate_master_breakpoint)
7654 (create_exception_master_breakpoint): Update.
7655 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7656 * c-valprint.c (c_val_print): Update.
7657 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7658 * common/agent.c (agent_look_up_symbols): Update.
7659 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7660 * dwarf2loc.c (call_site_to_target_addr): Update.
7661 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7662 * elfread.c (elf_gnu_ifunc_record_cache)
7663 (elf_gnu_ifunc_resolve_by_got): Update.
7664 * findvar.c (default_read_var_value): Update.
7665 * frame.c (inside_main_func): Update.
7666 * frv-tdep.c (frv_frame_this_id): Update.
7667 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7668 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7670 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7671 (hppa_hpux_find_dummy_bpaddr): Update.
7672 * hppa-tdep.c (hppa_symbol_address): Update.
7673 * infcmd.c (until_next_command): Update.
7674 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7676 * linespec.c (minsym_found, add_minsym): Update.
7677 * linux-nat.c (get_signo): Update.
7678 * linux-thread-db.c (inferior_has_bug): Update.
7679 * m32c-tdep.c (m32c_return_value)
7680 (m32c_m16c_address_to_pointer): Update.
7681 * m32r-tdep.c (m32r_frame_this_id): Update.
7682 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7683 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7684 * maint.c (maintenance_translate_address): Update.
7685 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7686 (frob_address): New function.
7687 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7688 frob_address. Rename parameter to "pc_in".
7689 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7691 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7693 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7694 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7695 * objc-lang.c (find_objc_msgsend): Update.
7696 * objfiles.c (objfile_relocate1): Update.
7697 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7698 * p-valprint.c (pascal_val_print): Update.
7699 * parse.c (write_exp_msymbol): Update.
7700 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7701 (ppc_elfv2_skip_entrypoint): Update.
7702 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7703 * printcmd.c (build_address_symbolic, msym_info)
7704 (address_info): Update.
7705 * proc-service.c (ps_pglobal_lookup): Update.
7706 * psymtab.c (find_pc_sect_psymtab_closer)
7707 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7708 Change msymbol parameter to bound_minimal_symbol.
7709 * ravenscar-thread.c (get_running_thread_id): Update.
7710 * remote.c (remote_check_symbols): Update.
7711 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7713 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7714 * solib-dsbt.c (lm_base): Update.
7715 * solib-frv.c (lm_base, main_got): Update.
7716 * solib-irix.c (locate_base): Update.
7717 * solib-som.c (som_solib_create_inferior_hook)
7718 (link_map_start): Update.
7719 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7720 * solib-svr4.c (elf_locate_base, enable_break): Update.
7721 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7722 (flush_ea_cache): Update.
7723 * stabsread.c (define_symbol, scan_file_globals): Update.
7724 * stack.c (find_frame_funname): Update.
7725 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7726 (debug_qf_find_pc_sect_symtab): Update.
7727 * symfile.c (simple_read_overlay_table)
7728 (simple_overlay_update): Update.
7729 * symfile.h (struct quick_symbol_functions)
7730 <find_pc_sect_symtab>: Change type of msymbol to
7731 bound_minimal_symbol.
7732 * symmisc.c (dump_msymbols): Update.
7733 * symtab.c (find_pc_sect_symtab_via_partial)
7734 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7735 (search_symbols, print_msymbol_info): Update.
7736 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7737 (MSYMBOL_VALUE_ADDRESS): Redefine.
7738 (BMSYMBOL_VALUE_ADDRESS): New macro.
7739 * tracepoint.c (scope_info): Update.
7740 * tui/tui-disasm.c (tui_find_disassembly_address)
7741 (tui_get_begin_asm_address): Update.
7742 * valops.c (find_function_in_inferior): Update.
7743 * value.c (value_static_field, value_fn_field): Update.
7745 2014-02-26 Tom Tromey <tromey@redhat.com>
7747 * ada-lang.c (ada_update_initial_language): Update.
7748 (ada_main_name, ada_has_this_exception_support): Update.
7749 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7750 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7751 * arm-tdep.c (arm_skip_stub): Update.
7752 * auxv.c (ld_so_xfer_auxv): Update.
7753 * avr-tdep.c (avr_scan_prologue): Update.
7754 * ax-gdb.c (gen_var_ref): Update.
7755 * breakpoint.c (struct breakpoint_objfile_data)
7756 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7757 type to bound_minimal_symbol.
7758 (create_overlay_event_breakpoint)
7759 (create_longjmp_master_breakpoint)
7760 (create_std_terminate_master_breakpoint)
7761 (create_exception_master_breakpoint): Update.
7762 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7763 * c-exp.y (classify_name): Update.
7764 * coffread.c (coff_symfile_read): Update.
7765 * common/agent.c (agent_look_up_symbols): Update.
7766 * d-lang.c (d_main_name): Update.
7767 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7768 * dec-thread.c (enable_dec_thread): Update.
7769 * dwarf2loc.c (call_site_to_target_addr): Update.
7770 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7771 * eval.c (evaluate_subexp_standard): Update.
7772 * findvar.c (struct minsym_lookup_data) <result>: Change type
7773 to bound_minimal_symbol.
7775 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7776 * frame.c (inside_main_func): Update.
7777 * frv-tdep.c (frv_frame_this_id): Update.
7778 * gcore.c (call_target_sbrk): Update.
7779 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7780 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7782 * go-lang.c (go_main_name): Update.
7783 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7784 (hppa_hpux_find_import_stub_for_addr): Update.
7785 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7786 Update. Change return type.
7787 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7789 * jit.c (jit_breakpoint_re_set_internal): Update.
7790 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7792 * linux-nat.c (get_signo): Update.
7793 * linux-thread-db.c (inferior_has_bug): Update
7794 * m32c-tdep.c (m32c_return_value)
7795 (m32c_m16c_address_to_pointer): Update.
7796 * m32r-tdep.c (m32r_frame_this_id): Update.
7797 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7798 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7799 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7800 lookup_minimal_symbol. Change return type.
7801 (lookup_minimal_symbol): Remove.
7802 (lookup_bound_minimal_symbol): Update.
7803 (lookup_minimal_symbol_text): Change return type.
7804 (lookup_minimal_symbol_solib_trampoline): Change return type.
7805 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7806 (lookup_minimal_symbol_solib_trampoline): Change return type.
7807 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7808 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7809 (value_nsstring, find_imps): Update.
7810 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7811 * p-lang.c (pascal_main_name): Update.
7812 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7813 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7814 * proc-service.c (ps_pglobal_lookup): Update.
7815 * ravenscar-thread.c (get_running_thread_msymbol): Change
7817 (has_ravenscar_runtime, get_running_thread_id): Update.
7818 * remote.c (remote_check_symbols): Update.
7819 * sol-thread.c (ps_pglobal_lookup): Update.
7820 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7821 * solib-dsbt.c (lm_base): Update.
7822 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7824 * solib-irix.c (locate_base): Update.
7825 * solib-som.c (som_solib_create_inferior_hook)
7826 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7828 * solib-spu.c (spu_enable_break): Update.
7829 * solib-svr4.c (elf_locate_base, enable_break): Update.
7830 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7831 (flush_ea_cache): Update.
7832 * stabsread.c (define_symbol): Update.
7833 * symfile.c (simple_read_overlay_table): Update.
7834 * symtab.c (find_pc_sect_line): Update.
7835 * tracepoint.c (scope_info): Update.
7836 * tui-disasm.c (tui_get_begin_asm_address): Update.
7837 * value.c (value_static_field): Update.
7839 2014-02-26 Tom Tromey <tromey@redhat.com>
7841 * minsyms.c (prim_record_minimal_symbol_full): Use
7842 SET_MSYMBOL_VALUE_ADDRESS.
7843 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7844 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7845 SET_MSYMBOL_VALUE_ADDRESS.
7846 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7847 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7849 2014-02-26 Tom Tromey <tromey@redhat.com>
7851 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7852 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7853 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7854 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7855 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7856 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7857 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7858 * ada-lang.c (ada_main_name): Update.
7859 (ada_lookup_simple_minsym): Update.
7860 (ada_make_symbol_completion_list): Update.
7861 (ada_add_standard_exceptions): Update.
7862 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7863 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7864 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7865 * arm-tdep.c (skip_prologue_function): Update.
7866 (arm_skip_stack_protector, arm_skip_stub): Update.
7867 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7868 (arm_wince_skip_main_prologue): Update.
7869 * auxv.c (ld_so_xfer_auxv): Update.
7870 * avr-tdep.c (avr_scan_prologue): Update.
7871 * ax-gdb.c (gen_var_ref): Update.
7872 * block.c (call_site_for_pc): Update.
7873 * blockframe.c (get_pc_function_start): Update.
7874 (find_pc_partial_function_gnu_ifunc): Update.
7875 * breakpoint.c (create_overlay_event_breakpoint): Update.
7876 (create_longjmp_master_breakpoint): Update.
7877 (create_std_terminate_master_breakpoint): Update.
7878 (create_exception_master_breakpoint): Update.
7879 (resolve_sal_pc): Update.
7880 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7881 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7883 * c-valprint.c (c_val_print): Update.
7884 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7885 * coffread.c (coff_symfile_read): Update.
7886 * common/agent.c (agent_look_up_symbols): Update.
7887 * dbxread.c (find_stab_function_addr): Update.
7888 (end_psymtab): Update.
7889 * dwarf2loc.c (call_site_to_target_addr): Update.
7890 (func_verify_no_selftailcall): Update.
7891 (tailcall_dump): Update.
7892 (call_site_find_chain_1): Update.
7893 (dwarf_expr_reg_to_entry_parameter): Update.
7894 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7895 (elf_gnu_ifunc_resolve_by_got): Update.
7896 * f-valprint.c (info_common_command): Update.
7897 * findvar.c (read_var_value): Update.
7898 * frame.c (get_prev_frame_1): Update.
7899 (inside_main_func): Update.
7900 * frv-tdep.c (frv_skip_main_prologue): Update.
7901 (frv_frame_this_id): Update.
7902 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7903 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7904 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7905 (gnuv3_skip_trampoline): Update.
7906 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7907 (hppa64_hpux_in_solib_call_trampoline): Update.
7908 (hppa_hpux_skip_trampoline_code): Update.
7909 (hppa64_hpux_search_dummy_call_sequence): Update.
7910 (hppa_hpux_find_import_stub_for_addr): Update.
7911 (hppa_hpux_find_dummy_bpaddr): Update.
7912 * hppa-tdep.c (hppa_symbol_address)
7913 (hppa_lookup_stub_minimal_symbol): Update.
7914 * i386-tdep.c (i386_skip_main_prologue): Update.
7915 (i386_pe_skip_trampoline_code): Update.
7916 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7917 * infcall.c (get_function_name): Update.
7918 * infcmd.c (until_next_command): Update.
7919 * jit.c (jit_breakpoint_re_set_internal): Update.
7920 (jit_inferior_init): Update.
7921 * linespec.c (minsym_found): Update.
7922 (add_minsym): Update.
7923 * linux-fork.c (info_checkpoints_command): Update.
7924 * linux-nat.c (get_signo): Update.
7925 * linux-thread-db.c (inferior_has_bug): Update.
7926 * m32c-tdep.c (m32c_return_value): Update.
7927 (m32c_m16c_address_to_pointer): Update.
7928 (m32c_m16c_pointer_to_address): Update.
7929 * m32r-tdep.c (m32r_frame_this_id): Update.
7930 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7931 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7932 * maint.c (maintenance_translate_address): Update.
7933 * minsyms.c (add_minsym_to_hash_table): Update.
7934 (add_minsym_to_demangled_hash_table): Update.
7935 (msymbol_objfile): Update.
7936 (lookup_minimal_symbol): Update.
7937 (iterate_over_minimal_symbols): Update.
7938 (lookup_minimal_symbol_text): Update.
7939 (lookup_minimal_symbol_by_pc_name): Update.
7940 (lookup_minimal_symbol_solib_trampoline): Update.
7941 (lookup_minimal_symbol_by_pc_section_1): Update.
7942 (lookup_minimal_symbol_and_objfile): Update.
7943 (prim_record_minimal_symbol_full): Update.
7944 (compare_minimal_symbols): Update.
7945 (compact_minimal_symbols): Update.
7946 (build_minimal_symbol_hash_tables): Update.
7947 (install_minimal_symbols): Update.
7948 (terminate_minimal_symbol_table): Update.
7949 (find_solib_trampoline_target): Update.
7950 (minimal_symbol_upper_bound): Update.
7951 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7952 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7953 (mips_skip_pic_trampoline_code): Update.
7954 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7955 * objc-lang.c (selectors_info): Update.
7956 (classes_info): Update.
7957 (find_methods): Update.
7958 (find_imps): Update.
7959 (find_objc_msgsend): Update.
7960 * objfiles.c (objfile_relocate1): Update.
7961 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7962 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7963 * p-valprint.c (pascal_val_print): Update.
7964 * parse.c (write_exp_msymbol): Update.
7965 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7966 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7967 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7968 * printcmd.c (build_address_symbolic): Update.
7970 (address_info): Update.
7971 * proc-service.c (ps_pglobal_lookup): Update.
7972 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7973 (find_pc_sect_psymtab): Update.
7974 * python/py-framefilter.c (py_print_frame): Update.
7975 * ravenscar-thread.c (get_running_thread_id): Update.
7976 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7978 * remote.c (remote_check_symbols): Update.
7979 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7980 (rs6000_skip_trampoline_code): Update.
7981 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7982 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7983 * solib-dsbt.c (lm_base): Update.
7984 * solib-frv.c (lm_base): Update.
7986 * solib-irix.c (locate_base): Update.
7987 * solib-som.c (som_solib_create_inferior_hook): Update.
7988 (som_solib_desire_dynamic_linker_symbols): Update.
7989 (link_map_start): Update.
7990 * solib-spu.c (spu_enable_break): Update.
7991 (ocl_enable_break): Update.
7992 * solib-svr4.c (elf_locate_base): Update.
7993 (enable_break): Update.
7994 * spu-tdep.c (spu_get_overlay_table): Update.
7995 (spu_catch_start): Update.
7996 (flush_ea_cache): Update.
7997 * stabsread.c (define_symbol): Update.
7998 (scan_file_globals): Update.
7999 * stack.c (find_frame_funname): Update.
8000 (frame_info): Update.
8001 * symfile.c (simple_read_overlay_table): Update.
8002 (simple_overlay_update): Update.
8003 * symmisc.c (dump_msymbols): Update.
8004 * symtab.c (fixup_section): Update.
8005 (find_pc_sect_line): Update.
8006 (skip_prologue_sal): Update.
8007 (search_symbols): Update.
8008 (print_msymbol_info): Update.
8009 (rbreak_command): Update.
8010 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8011 (completion_list_objc_symbol): Update.
8012 (default_make_symbol_completion_list_break_on): Update.
8013 * tracepoint.c (scope_info): Update.
8014 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8015 (tui_get_begin_asm_address): Update.
8016 * valops.c (find_function_in_inferior): Update.
8017 * value.c (value_static_field): Update.
8018 (value_fn_field): Update.
8020 2014-02-26 Tom Tromey <tromey@redhat.com>
8022 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8023 bound minimal symbols. Move code that knows about minsym
8025 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8027 * minsyms.h (minimal_symbol_upper_bound): Declare.
8028 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8029 minimal_symbol_upper_bound.
8031 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8033 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8034 Use the type's name if its basic type does not have a tag.
8036 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8038 * dwarf2read.c (read_subrange_type): Add comment.
8040 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8042 * dwarf2read.c (update_enumeration_type_from_children): New
8043 function, mostly extracted from process_structure_scope.
8044 (read_enumeration_type): Call update_enumeration_type_from_children.
8045 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8046 and flag_flag_enum fields.
8048 2014-02-26 Pedro Alves <palves@redhat.com>
8050 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8051 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8052 to_xfer_partial method.
8054 2014-02-26 Pedro Alves <palves@redhat.com>
8056 * target.c (complete_target_initialization): Don't install
8057 default_xfer_partial as to_xfer_partial hook.
8059 (update_current_target): Don't INHERIT nor de_fault
8060 deprecated_xfer_memory. Delete de_fault macro.
8061 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8062 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8063 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8066 2014-02-26 Pedro Alves <palves@redhat.com>
8068 * go32-nat.c (my_write_child): New function.
8069 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8070 (go32_xfer_partial): New function.
8071 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8072 Instead install a to_xfer_partial hook.
8074 2014-02-26 Pedro Alves <palves@redhat.com>
8076 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8077 to_xfer_partial helper. Rewrite.
8078 (procfs_xfer_partial): New function.
8079 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8080 Install a to_xfer_partial hook.
8082 2014-02-26 Pedro Alves <palves@redhat.com>
8084 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8085 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8086 (m32r_xfer_partial): New function.
8087 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8088 Install a to_xfer_partial hook.
8090 2014-02-26 Pedro Alves <palves@redhat.com>
8092 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8094 (mips_xfer_partial): New function.
8095 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8096 hook. Install a to_xfer_partial hook.
8098 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8100 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8101 * gdbtypes.c (create_array_type_with_stride): New function,
8102 renaming create_array_type, but with an added parameter
8103 called "bit_stride".
8104 (create_array_type): Re-implement using
8105 create_array_type_with_stride.
8106 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8107 and DW_AT_bit_stride attributes.
8109 2014-02-26 Pedro Alves <palves@redhat.com>
8111 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8112 task-specific breakpoints.
8114 2014-02-25 Pedro Alves <palves@redhat.com>
8116 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8117 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8119 2014-02-25 Stan Shebs <stan@codesourcery.com>
8121 * defs.h: Annotate comments for Doxygen.
8123 2014-02-25 Tom Tromey <tromey@redhat.com>
8125 * target.h (target_ignore): Don't declare.
8126 * target.c (target_ignore): Remove.
8128 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8131 * auto-load.c (auto_load_objfile_script_1): Change filename to
8134 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8136 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8137 documentation. Adjust prototype to match the target_ops
8138 to_xfer_partial method. Adjust implementation accordingly.
8140 2014-02-25 Hui Zhu <hui@codesourcery.com>
8142 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8145 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8147 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8148 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8149 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8150 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8151 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8152 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8153 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8154 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8156 (rl78_register_type): Use a data pointer type for SP and
8157 new pseudo registers mentioned above. Use a 16 bit integer
8158 type for all other register pairs.
8159 (rl78_register_name, rl78_g10_register_name): Update for
8160 new pseudo registers.
8161 (rl78_pseudo_register_read): Likewise.
8162 (rl78_pseudo_register_write): Likewise.
8163 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8164 to the newly added pseudo registers.
8166 2014-02-24 Doug Evans <dje@google.com>
8168 * value.c (record_latest_value): Fix comment.
8169 * printcmd.c (print_command_1): Remove code to handle -1 return from
8170 record_latest_value.
8172 2014-02-24 Pedro Alves <palves@redhat.com>
8174 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8175 deprecated_xfer_memory hook.
8176 (procfs_xfer_partial): Call procfs_xfer_memory instead
8177 of the deprecated_xfer_memory target hook.
8178 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8181 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8183 * windows-nat.c (windows_xfer_shared_libraries): Return
8184 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8185 requested object is TARGET_OBJECT_LIBRARIES.
8187 2014-02-24 Yao Qi <yao@codesourcery.com>
8189 * target.h (enum target_xfer_status)
8190 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8191 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8193 * corefile.c (memory_error_message): User updated.
8194 * exec.c (section_table_read_available_memory): Likewise.
8195 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8196 * target.c (target_xfer_status_to_string): Likewise.
8197 (raw_memory_xfer_partial): Likewise.
8198 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8199 * valops.c (read_value_memory): Likewise.
8200 * exec.h: Update comments.
8202 2014-02-24 Yao Qi <yao@codesourcery.com>
8204 * target.c (target_xfer_status_to_string): Rename argument err
8206 * target.h (target_xfer_status_to_string): Update declaration.
8207 Replace target_xfer_error_to_string with
8208 target_xfer_status_to_string in comment.
8210 2014-02-24 Yao Qi <yao@codesourcery.com>
8212 * mips-linux-nat.c (super_close): Update its type.
8213 (mips_linux_close): Pass 'self' to super_close.
8215 2014-02-24 Yao Qi <yao@codesourcery.com>
8217 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8218 * corefile.c (read_memory): Adjusted.
8219 * target.c (target_write_with_progress): Adjusted.
8221 2014-02-23 Yao Qi <yao@codesourcery.com>
8225 2013-10-25 Yao Qi <yao@codesourcery.com>
8227 * remote.c (remote_traceframe_info): Return early if
8228 traceframe is not selected.
8230 2013-07-19 Yao Qi <yao@codesourcery.com>
8232 * target.c (update_current_target): Change the default action
8233 of 'to_traceframe_info' from tcomplain to return_zero.
8234 * target.h (struct target_ops) <to_traceframe_info>: Add more
8237 2014-02-23 Yao Qi <yao@codesourcery.com>
8239 * valops.c (read_value_memory): Rewrite it. Call
8240 target_xfer_partial in a loop.
8241 * exec.h (section_table_available_memory): Remove declaration.
8242 Move comments to ...
8243 * exec.c (section_table_available_memory): ... here. Make it
8246 2014-02-23 Yao Qi <yao@codesourcery.com>
8248 * exec.c (section_table_read_available_memory): New function.
8249 * exec.h (section_table_read_available_memory): Declare.
8250 * ctf.c (ctf_xfer_partial): Call
8251 section_table_read_available_memory.
8252 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8254 2014-02-23 Yao Qi <yao@codesourcery.com>
8256 * ctf.c (ctf_xfer_partial): Move code to ...
8257 * exec.c (exec_read_partial_read_only): ... it. New function.
8258 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8259 * tracefile.c: Include "exec.h".
8260 * exec.h (exec_read_partial_read_only): Declare.
8262 2014-02-23 Yao Qi <yao@codesourcery.com>
8264 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8265 (tfile_has_memory): Remove.
8266 (init_tfile_ops): Don't set fields to_has_all_memory and
8267 to_has_memory of tfile_ops.
8268 * tracefile.c (tracefile_has_all_memory): New function.
8269 (tracefile_has_memory): New function.
8270 (init_tracefile_ops): Initialize fields to_has_all_memory and
8271 to_has_memory of 'ops'.
8273 2014-02-23 Yao Qi <yao@codesourcery.com>
8275 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8276 (ctf_thread_alive, ctf_get_trace_status): Remove.
8277 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8279 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8280 (tfile_has_stack, tfile_has_registers): Remove.
8281 (tfile_thread_alive): Remove.
8282 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8284 * tracefile.c (tracefile_has_stack): New function.
8285 (tracefile_has_registers): New function.
8286 (tracefile_thread_alive): New function.
8287 (tracefile_get_trace_status): New function.
8288 (init_tracefile_ops): New function.
8289 * tracefile.h (init_tracefile_ops): Declare.
8291 2014-02-23 Yao Qi <yao@codesourcery.com>
8293 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8294 (O_LARGEFILE): Likewise.
8295 (tfile_ops): Likewise.
8296 (TRACE_HEADER_SIZE): Likewise.
8297 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8298 (cur_data_size): Likewise.
8299 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8300 (tfile_close, tfile_files_info): Likewise.
8301 (tfile_get_trace_status): Likewise.
8302 (tfile_get_tracepoint_status): Likewise.
8303 (tfile_get_traceframe_address): Likewise.
8304 (tfile_trace_find, match_blocktype): Likewise.
8305 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8306 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8307 (tfile_get_trace_state_variable_value): Likewise.
8308 (tfile_has_all_memory, tfile_has_memory): Likewise.
8309 (tfile_has_stack, tfile_has_registers): Likewise.
8310 (tfile_thread_alive, build_traceframe_info): Likewise.
8311 (tfile_traceframe_info, init_tfile_ops): Likewise.
8312 (_initialize_tracepoint): Don't call init_tfile_ops
8313 and add_target_with_completer.
8314 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8315 exec.h, completer.h and filenames.h.
8316 (_initialize_tracefile_tfile): New function.
8318 2014-02-23 Yao Qi <yao@codesourcery.com>
8320 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8322 (HFILES_NO_SRCDIR): Add tracefile.h.
8323 * ctf.c: Include "tracefile.h".
8324 * tracefile.h: New file.
8325 * tracefile.c: New file
8326 * tracefile-tfile.c: New file.
8327 * tracepoint.c: Include "tracefile.h".
8328 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8329 (stop_reason_names): Add const.
8330 (trace_file_writer_xfree): Move it to tracefile.c.
8331 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8332 (trace_save_ctf): Likewise.
8333 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8334 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8335 (tfile_write_header, tfile_write_regblock_type): Likewise.
8336 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8337 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8338 (tfile_write_raw_data, tfile_end): Likewise.
8339 (tfile_trace_file_writer_new): Likewise.
8340 (free_uploaded_tp): Make it extern.
8341 (free_uploaded_tsv): Make it extern.
8342 (_initialize_tracepoint): Move code to register command 'tsave'
8344 * tracepoint.h (stop_reason_names): Declare.
8345 (struct trace_frame_write_ops): Move it to tracefile.h.
8346 (struct trace_file_write_ops): Likewise.
8347 (struct trace_file_writer): Likewise.
8348 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8350 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8353 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8355 (get_cores_used_by_process): New parameter num_cores, use it.
8356 (linux_xfer_osdata_processes): Pass num_cores to it.
8357 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8360 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8362 * target.c (memory_xfer_partial): Fix length arg in call to
8363 breakpoint_xfer_memory.
8365 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8368 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8369 number comes after the + or - signs. Adjust length of register
8370 name to be extracted.
8372 2014-02-20 Tom Tromey <tromey@redhat.com>
8374 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8375 (ada_varobj_ops): Mark "extern".
8377 2014-02-20 Tom Tromey <tromey@redhat.com>
8379 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8381 2014-02-20 Doug Evans <xdje42@gmail.com>
8383 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8384 All callers updated.
8385 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8386 All callers updated.
8387 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8388 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8390 2014-02-20 lin zuojian <manjian2006@gmail.com>
8391 Joel Brobecker <brobecker@adacore.com>
8392 Doug Evans <xdje42@gmail.com>
8395 * dwarf2read.c (struct die_info): New member in_process.
8396 (reset_die_in_process): New function.
8397 (process_die): Set it at the start, reset when returning.
8398 (inherit_abstract_dies): Only call process_die if origin_child_die
8399 not already being processed.
8401 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8403 * windows-nat.c (handle_unload_dll): Add function documentation.
8404 (do_initial_windows_stuff): Add comment explaining why we wait
8405 until after inferior initialization has finished before
8406 processing all DLLs.
8408 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8410 * windows-nat.c (get_module_name): Delete.
8411 (windows_get_exec_module_filename): New function, mostly
8412 inspired from get_module_name.
8413 (windows_pid_to_exec_file): Replace call to get_module_name
8414 by call to windows_get_exec_module_filename.
8416 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8418 * windows-nat.c (handle_load_dll): Rewrite this function's
8419 introductory comment. Remove code using get_module_name
8420 to get the DLL's name.
8422 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8424 * windows-nat.c (get_windows_debug_event): Ignore
8425 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8426 if windows_initialization_done == 0.
8427 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8428 Adjust implementation to always load all DLLs.
8429 (do_initial_windows_stuff): Replace call to
8430 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8432 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8434 * windows-nat.c (_initialize_windows_nat): Deprecate the
8435 "dll-symbols" command. Turn the "add-shared-symbol-files"
8436 and "assf" aliases into commands, and deprecate them as well.
8437 * NEWS: Add entry explaining that "dll-symbols" and its two
8438 aliases are now deprecated.
8440 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8442 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8443 new-line in debug string. Remove trailing spaces.
8445 2014-02-19 Stan Shebs <stan@codesourcery.com>
8447 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8449 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8451 * NEWS: Add entry for the new feature
8452 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8455 2014-02-19 Stan Shebs <stan@codesourcery.com>
8457 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8459 2014-02-19 Pedro Alves <palves@redhat.com>
8461 * common/ptid.h (struct ptid): Mention that process_stratum
8462 targets should prefer ptid.lwp.
8464 2014-02-19 Pedro Alves <palves@redhat.com>
8466 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8467 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8468 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8469 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8470 store remote thread ids rather than ptid.tid.
8471 (_initialize_remote): Adjust.
8473 2014-02-19 Tom Tromey <tromey@redhat.com>
8475 * target.c (target_get_unwinder): Rewrite.
8476 (target_get_tailcall_unwinder): Rewrite.
8477 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8478 (record_btrace_to_get_tailcall_unwinder): New function.
8479 (init_record_btrace_ops): Update.
8480 * target.h (struct target_ops) <to_get_unwinder,
8481 to_get_tailcall_unwinder>: Now function pointers. Use
8482 TARGET_DEFAULT_RETURN.
8484 2014-02-19 Tom Tromey <tromey@redhat.com>
8486 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8488 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8490 2014-02-19 Tom Tromey <tromey@redhat.com>
8492 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8494 * target-delegates.c: Rebuild.
8495 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8496 TARGET_DEFAULT_FUNC.
8497 * target.c (default_target_decr_pc_after_break): Rename from
8498 forward_target_decr_pc_after_break. Simplify.
8499 (target_decr_pc_after_break): Rely on delegation.
8501 2014-02-19 Tom Tromey <tromey@redhat.com>
8503 * target.c (update_current_target): Do not INHERIT to_doc or
8504 to_magic. Do not de_fault to_open or to_close.
8506 2014-02-19 Tom Tromey <tromey@redhat.com>
8508 * gcore.h (objfile_find_memory_regions): Declare.
8509 * gcore.c (objfile_find_memory_regions): No longer static. Add
8511 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8512 * exec.c: Include gcore.h.
8513 (exec_set_find_memory_regions): Remove.
8514 (exec_find_memory_regions): Remove.
8515 (exec_do_find_memory_regions): Remove.
8516 (init_exec_ops): Update.
8517 * defs.h (exec_set_find_memory_regions): Remove.
8519 2014-02-19 Tom Tromey <tromey@redhat.com>
8521 * target-delegates.c: Rebuild.
8522 * target.h (struct target_ops) <to_extra_thread_info,
8523 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8524 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8525 not 0, in TARGET_DEFAULT_RETURN.
8527 2014-02-19 Tom Tromey <tromey@redhat.com>
8529 * target.c (complete_target_initialization): Remove casts. Use
8530 return_zero_has_execution.
8531 (return_zero): Add "ignore" argument.
8532 (return_zero_has_execution): New function.
8533 (init_dummy_target): Remove casts. Use
8534 return_zero_has_execution.
8536 2014-02-19 Tom Tromey <tromey@redhat.com>
8538 * target.c (update_current_target): Update comments. Do not
8541 2014-02-19 Tom Tromey <tromey@redhat.com>
8543 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8545 * corelow.c (core_read_description): Delegate when needed.
8546 * remote.c (remote_read_description): Delegate when needed.
8547 * target-delegates.c: Rebuild.
8548 * target.c (target_read_description): Rewrite.
8549 * target.h (struct target_ops) <to_read_description>: Update
8550 comment. Use TARGET_DEFAULT_RETURN.
8552 2014-02-19 Tom Tromey <tromey@redhat.com>
8554 * target-delegates.c: Rebuild.
8555 * target.c (update_current_target): Don't inherit or default
8557 (find_default_run_target): Check against delegate_can_run.
8558 * target.h (struct target_ops) <to_can_run>: Use
8559 TARGET_DEFAULT_RETURN.
8561 2014-02-19 Tom Tromey <tromey@redhat.com>
8563 * target-delegates.c: Rebuild.
8564 * target.c (target_disconnect): Unconditionally delegate.
8565 * target.h (struct target_ops) <to_disconnect>: Use
8566 TARGET_DEFAULT_NORETURN.
8568 2014-02-19 Tom Tromey <tromey@redhat.com>
8570 * record.c (record_stop): Unconditionally delegate.
8571 * target-delegates.c: Rebuild.
8572 * target.c (target_stop_recording): Unconditionally delegate.
8573 * target.h (struct target_ops) <to_stop_recording>: Use
8574 TARGET_DEFAULT_IGNORE.
8576 2014-02-19 Tom Tromey <tromey@redhat.com>
8578 * target-delegates.c: Rebuild.
8579 * target.c (target_enable_btrace): Unconditionally delegate.
8580 * target.h (struct target_ops) <to_enable_btrace>: Use
8581 TARGET_DEFAULT_NORETURN.
8583 2014-02-19 Tom Tromey <tromey@redhat.com>
8585 * target-delegates.c: Rebuild.
8586 * target.c (target_read_btrace): Unconditionally delegate.
8587 * target.h (struct target_ops) <to_read_btrace>: Use
8588 TARGET_DEFAULT_NORETURN.
8590 2014-02-19 Tom Tromey <tromey@redhat.com>
8592 * target-delegates.c: Rebuild.
8593 * target.c (target_teardown_btrace): Unconditionally delegate.
8594 * target.h (struct target_ops) <to_teardown_btrace>: Use
8595 TARGET_DEFAULT_NORETURN.
8597 2014-02-19 Tom Tromey <tromey@redhat.com>
8599 * target-delegates.c: Rebuild.
8600 * target.c (target_disable_btrace): Unconditionally delegate.
8601 * target.h (struct target_ops) <to_disable_btrace>: Use
8602 TARGET_DEFAULT_NORETURN.
8604 2014-02-19 Tom Tromey <tromey@redhat.com>
8606 * target-delegates.c: Rebuild.
8607 * target.c (default_search_memory): New function.
8608 (simple_search_memory): Update comment.
8609 (target_search_memory): Unconditionally delegate.
8610 * target.h (struct target_ops) <to_search_memory>: Use
8611 TARGET_DEFAULT_FUNC.
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8615 * auxv.c (default_auxv_parse): No longer static.
8616 (target_auxv_parse): Unconditionally delegate.
8617 * auxv.h (default_auxv_parse): Declare.
8618 * target-delegates.c: Rebuild.
8619 * target.c: Include auxv.h.
8620 * target.h (struct target_ops) <to_auxv_parse>: Use
8621 TARGET_DEFAULT_FUNC.
8623 2014-02-19 Tom Tromey <tromey@redhat.com>
8625 * target-delegates.c: Rebuild.
8626 * target.c (target_memory_map): Unconditionally delegate.
8627 * target.h (struct target_ops) <to_memory_map>: Use
8628 TARGET_DEFAULT_RETURN.
8630 2014-02-19 Tom Tromey <tromey@redhat.com>
8632 * target-delegates.c: Rebuild.
8633 * target.c (target_thread_alive): Unconditionally delegate.
8634 * target.h (struct target_ops) <to_thread_alive>: Use
8635 TARGET_DEFAULT_RETURN.
8637 2014-02-19 Tom Tromey <tromey@redhat.com>
8639 * target-delegates.c: Rebuild.
8640 * target.c (target_save_record): Unconditionally delegate.
8641 * target.h (struct target_ops) <to_save_record>: Use
8642 TARGET_DEFAULT_NORETURN.
8644 2014-02-19 Tom Tromey <tromey@redhat.com>
8646 * target-delegates.c: Rebuild.
8647 * target.c (target_delete_record): Unconditionally delegate.
8648 * target.h (struct target_ops) <to_delete_record>: Use
8649 TARGET_DEFAULT_NORETURN.
8651 2014-02-19 Tom Tromey <tromey@redhat.com>
8653 * target-delegates.c: Rebuild.
8654 * target.c (target_record_is_replaying): Unconditionally
8656 * target.h (struct target_ops) <to_record_is_replaying>: Use
8657 TARGET_DEFAULT_RETURN.
8659 2014-02-19 Tom Tromey <tromey@redhat.com>
8661 * target-delegates.c: Rebuild.
8662 * target.c (target_goto_record_begin): Unconditionally delegate.
8663 * target.h (struct target_ops) <to_goto_record_begin>: Use
8664 TARGET_DEFAULT_NORETURN.
8666 2014-02-19 Tom Tromey <tromey@redhat.com>
8668 * target-delegates.c: Rebuild.
8669 * target.c (target_goto_record_end): Unconditionally delegate.
8670 * target.h (struct target_ops) <to_goto_record_end>: Use
8671 TARGET_DEFAULT_NORETURN.
8673 2014-02-19 Tom Tromey <tromey@redhat.com>
8675 * target-delegates.c: Rebuild.
8676 * target.c (target_goto_record): Unconditionally delegate.
8677 * target.h (struct target_ops) <to_goto_record>: Use
8678 TARGET_DEFAULT_NORETURN.
8680 2014-02-19 Tom Tromey <tromey@redhat.com>
8682 * target-delegates.c: Rebuild.
8683 * target.c (target_insn_history): Unconditionally delegate.
8684 * target.h (struct target_ops) <to_insn_history>: Use
8685 TARGET_DEFAULT_NORETURN.
8687 2014-02-19 Tom Tromey <tromey@redhat.com>
8689 * target-delegates.c: Rebuild.
8690 * target.c (target_insn_history_from): Unconditionally delegate.
8691 * target.h (struct target_ops) <to_insn_history_from>: Use
8692 TARGET_DEFAULT_NORETURN.
8694 2014-02-19 Tom Tromey <tromey@redhat.com>
8696 * target-delegates.c: Rebuild.
8697 * target.c (target_insn_history_range): Unconditionally delegate.
8698 * target.h (struct target_ops) <to_insn_history_range>: Use
8699 TARGET_DEFAULT_NORETURN.
8701 2014-02-19 Tom Tromey <tromey@redhat.com>
8703 * target-delegates.c: Rebuild.
8704 * target.c (target_call_history): Unconditionally delegate.
8705 * target.h (struct target_ops) <to_call_history>: Use
8706 TARGET_DEFAULT_NORETURN.
8708 2014-02-19 Tom Tromey <tromey@redhat.com>
8710 * target-delegates.c: Rebuild.
8711 * target.c (target_call_history_from): Unconditionally delegate.
8712 * target.h (struct target_ops) <to_call_history_from>: Use
8713 TARGET_DEFAULT_NORETURN.
8715 2014-02-19 Tom Tromey <tromey@redhat.com>
8717 * target-delegates.c: Rebuild.
8718 * target.c (target_call_history_range): Unconditionally delegate.
8719 * target.h (struct target_ops) <to_call_history_range>: Use
8720 TARGET_DEFAULT_NORETURN.
8722 2014-02-19 Tom Tromey <tromey@redhat.com>
8724 * target-delegates.c: Rebuild.
8725 * target.c (target_verify_memory): Unconditionally delegate.
8726 * target.h (struct target_ops) <to_verify_memory>: Use
8727 TARGET_DEFAULT_NORETURN.
8729 2014-02-19 Tom Tromey <tromey@redhat.com>
8731 * target-delegates.c: Rebuild.
8732 * target.c (target_core_of_thread): Unconditionally delegate.
8733 * target.h (struct target_ops) <to_core_of_thread>: Use
8734 TARGET_DEFAULT_RETURN.
8736 2014-02-19 Tom Tromey <tromey@redhat.com>
8738 * target-delegates.c: Rebuild.
8739 * target.c (target_flash_done): Unconditionally delegate.
8740 * target.h (struct target_ops) <to_flash_done>: Use
8741 TARGET_DEFAULT_NORETURN.
8743 2014-02-19 Tom Tromey <tromey@redhat.com>
8745 * target-delegates.c: Rebuild.
8746 * target.c (target_flash_erase): Unconditionally delegate.
8747 * target.h (struct target_ops) <to_flash_erase>: Use
8748 TARGET_DEFAULT_NORETURN.
8750 2014-02-19 Tom Tromey <tromey@redhat.com>
8752 * target-delegates.c: Rebuild.
8753 * target.c (target_get_section_table): Unconditionally delegate.
8754 * target.h (struct target_ops) <to_get_section_table>: Use
8755 TARGET_DEFAULT_RETURN.
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8759 * target-delegates.c: Rebuild.
8760 * target.c (target_pid_to_str): Unconditionally delegate.
8761 (init_dummy_target): Don't initialize to_pid_to_str.
8762 (default_pid_to_str): Rename from dummy_pid_to_str.
8763 * target.h (struct target_ops) <to_pid_to_str>: Use
8764 TARGET_DEFAULT_FUNC.
8766 2014-02-19 Tom Tromey <tromey@redhat.com>
8768 * target-delegates.c: Rebuild.
8769 * target.c (target_find_new_threads): Unconditionally delegate.
8770 * target.h (struct target_ops) <to_find_new_threads>: Use
8771 TARGET_DEFAULT_RETURN.
8773 2014-02-19 Tom Tromey <tromey@redhat.com>
8775 * target-delegates.c: Rebuild.
8776 * target.c (target_program_signals): Unconditionally delegate.
8777 * target.h (struct target_ops) <to_program_signals>: Use
8778 TARGET_DEFAULT_IGNORE.
8780 2014-02-19 Tom Tromey <tromey@redhat.com>
8782 * target-delegates.c: Rebuild.
8783 * target.c (target_pass_signals): Unconditionally delegate.
8784 * target.h (struct target_ops) <to_pass_signals>: Use
8785 TARGET_DEFAULT_IGNORE.
8787 2014-02-19 Tom Tromey <tromey@redhat.com>
8789 * target-delegates.c: Rebuild.
8790 * target.c (default_mourn_inferior): New function.
8791 (target_mourn_inferior): Unconditionally delegate.
8792 * target.h (struct target_ops) <to_mourn_inferior>: Use
8793 TARGET_DEFAULT_FUNC.
8795 2014-02-19 Tom Tromey <tromey@redhat.com>
8797 * target-delegates.c: Rebuild.
8798 * target.c (default_follow_fork): New function.
8799 (target_follow_fork): Unconditionally delegate.
8800 * target.h (struct target_ops) <to_follow_fork>: Use
8801 TARGET_DEFAULT_FUNC.
8803 2014-02-19 Tom Tromey <tromey@redhat.com>
8805 * target-delegates.c: Rebuild.
8806 * target.c (target_kill): Unconditionally delegate.
8807 * target.h (struct target_ops) <to_kill>: Use
8808 TARGET_DEFAULT_NORETURN.
8810 2014-02-19 Tom Tromey <tromey@redhat.com>
8812 * target-delegates.c: Rebuild.
8813 * target.c (target_masked_watch_num_registers): Unconditionally
8815 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8816 Use TARGET_DEFAULT_RETURN.
8818 2014-02-19 Tom Tromey <tromey@redhat.com>
8820 * target-delegates.c: Rebuild.
8821 * target.c (target_remove_mask_watchpoint): Unconditionally
8823 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8824 TARGET_DEFAULT_RETURN.
8826 2014-02-19 Tom Tromey <tromey@redhat.com>
8828 * target-delegates.c: Rebuild.
8829 * target.c (target_insert_mask_watchpoint): Unconditionally
8831 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8832 TARGET_DEFAULT_RETURN.
8834 2014-02-19 Tom Tromey <tromey@redhat.com>
8836 * target-delegates.c: Rebuild.
8837 * target.c (target_ranged_break_num_registers): Unconditionally
8839 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8840 Use TARGET_DEFAULT_RETURN.
8842 2014-02-19 Tom Tromey <tromey@redhat.com>
8844 * target-delegates.c: Rebuild.
8845 * target.c (target_fetch_registers): Unconditionally delegate.
8846 * target.h (struct target_ops) <to_fetch_registers>: Use
8847 TARGET_DEFAULT_NORETURN.
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
8854 * target.h (struct target_ops) <to_stop>: Use
8855 TARGET_DEFAULT_IGNORE.
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
8861 to_can_run_breakpoint_commands.
8862 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8863 Use 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
8869 to_supports_evaluation_of_breakpoint_conditions.
8870 * target.h (struct target_ops)
8871 <to_supports_evaluation_of_breakpoint_conditions>: Use
8872 TARGET_DEFAULT_RETURN.
8874 2014-02-19 Tom Tromey <tromey@redhat.com>
8876 * target-delegates.c: Rebuild.
8877 * target.c (update_current_target): Don't inherit or default
8878 to_augmented_libraries_svr4_read.
8879 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8880 Use 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
8887 * target.h (struct target_ops) <to_can_use_agent>: Use
8888 TARGET_DEFAULT_RETURN.
8890 2014-02-19 Tom Tromey <tromey@redhat.com>
8892 * target-delegates.c: Rebuild.
8893 * target.c (update_current_target): Don't inherit or default
8895 * target.h (struct target_ops) <to_use_agent>: Use
8896 TARGET_DEFAULT_NORETURN.
8898 2014-02-19 Tom Tromey <tromey@redhat.com>
8900 * target-delegates.c: Rebuild.
8901 * target.c (update_current_target): Don't inherit or default
8903 (return_null): Remove.
8904 * target.h (struct target_ops) <to_traceframe_info>: Use
8905 TARGET_DEFAULT_RETURN.
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
8911 to_static_tracepoint_markers_by_strid.
8912 * target.h (struct target_ops)
8913 <to_static_tracepoint_markers_by_strid>: Use
8914 TARGET_DEFAULT_NORETURN.
8916 2014-02-19 Tom Tromey <tromey@redhat.com>
8918 * target-delegates.c: Rebuild.
8919 * target.c (update_current_target): Don't inherit or default
8920 to_static_tracepoint_marker_at.
8921 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8922 Use TARGET_DEFAULT_RETURN.
8924 2014-02-19 Tom Tromey <tromey@redhat.com>
8926 * target-delegates.c: Rebuild.
8927 * target.c (update_current_target): Don't inherit or default
8929 * target.h (struct target_ops) <to_set_permissions>: Use
8930 TARGET_DEFAULT_IGNORE.
8932 2014-02-19 Tom Tromey <tromey@redhat.com>
8934 * target-delegates.c: Rebuild.
8935 * target.c (update_current_target): Don't inherit or default
8937 * target.h (struct target_ops) <to_get_tib_address>: Use
8938 TARGET_DEFAULT_NORETURN.
8940 2014-02-19 Tom Tromey <tromey@redhat.com>
8942 * target-delegates.c: Rebuild.
8943 * target.c (update_current_target): Don't inherit or default
8945 * target.h (struct target_ops) <to_set_trace_notes>: Use
8946 TARGET_DEFAULT_RETURN.
8948 2014-02-19 Tom Tromey <tromey@redhat.com>
8950 * target-delegates.c: Rebuild.
8951 * target.c (update_current_target): Don't initialize
8952 to_set_trace_buffer_size.
8953 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8954 TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
8961 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8962 TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
8969 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8970 TARGET_DEFAULT_IGNORE.
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_get_min_fast_tracepoint_insn_len.
8977 (return_minus_one): Remove.
8978 * target.h (struct target_ops)
8979 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8981 2014-02-19 Tom Tromey <tromey@redhat.com>
8983 * target-delegates.c: Rebuild.
8984 * target.c (update_current_target): Don't inherit or default
8985 to_get_raw_trace_data.
8986 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8987 TARGET_DEFAULT_NORETURN.
8989 2014-02-19 Tom Tromey <tromey@redhat.com>
8991 * target-delegates.c: Rebuild.
8992 * target.c (update_current_target): Don't inherit or default
8993 to_upload_trace_state_variables.
8994 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8995 Use TARGET_DEFAULT_RETURN.
8997 2014-02-19 Tom Tromey <tromey@redhat.com>
8999 * target-delegates.c: Rebuild.
9000 * target.c (update_current_target): Don't inherit or default
9001 to_upload_tracepoints.
9002 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9003 TARGET_DEFAULT_RETURN.
9005 2014-02-19 Tom Tromey <tromey@redhat.com>
9007 * target-delegates.c: Rebuild.
9008 * target.c (update_current_target): Don't inherit or default
9010 * target.h (struct target_ops) <to_save_trace_data>: Use
9011 TARGET_DEFAULT_NORETURN.
9013 2014-02-19 Tom Tromey <tromey@redhat.com>
9015 * target-delegates.c: Rebuild.
9016 * target.c (update_current_target): Don't inherit or default
9017 to_get_trace_state_variable_value.
9018 * target.h (struct target_ops)
9019 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9021 2014-02-19 Tom Tromey <tromey@redhat.com>
9023 * target-delegates.c: Rebuild.
9024 * target.c (update_current_target): Don't inherit or default
9026 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9028 2014-02-19 Tom Tromey <tromey@redhat.com>
9030 * target-delegates.c: Rebuild.
9031 * target.c (update_current_target): Don't inherit or default
9033 * target.h (struct target_ops) <to_trace_stop>: Use
9034 TARGET_DEFAULT_NORETURN.
9036 2014-02-19 Tom Tromey <tromey@redhat.com>
9038 * target-delegates.c: Rebuild.
9039 * target.c (update_current_target): Don't inherit or default
9040 to_get_tracepoint_status.
9041 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9042 TARGET_DEFAULT_NORETURN.
9044 2014-02-19 Tom Tromey <tromey@redhat.com>
9046 * target-delegates.c: Rebuild.
9047 * target.c (update_current_target): Don't inherit or default
9048 to_get_trace_status.
9049 * target.h (struct target_ops) <to_get_trace_status>: Use
9050 TARGET_DEFAULT_RETURN.
9052 2014-02-19 Tom Tromey <tromey@redhat.com>
9054 * target-delegates.c: Rebuild.
9055 * target.c (update_current_target): Don't inherit or default
9057 * target.h (struct target_ops) <to_trace_start>: Use
9058 TARGET_DEFAULT_NORETURN.
9060 2014-02-19 Tom Tromey <tromey@redhat.com>
9062 * target-delegates.c: Rebuild.
9063 * target.c (update_current_target): Don't inherit or default
9064 to_trace_set_readonly_regions.
9065 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9066 Use TARGET_DEFAULT_NORETURN.
9068 2014-02-19 Tom Tromey <tromey@redhat.com>
9070 * target-delegates.c: Rebuild.
9071 * target.c (update_current_target): Don't inherit or default
9072 to_disable_tracepoint.
9073 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9074 TARGET_DEFAULT_NORETURN.
9076 2014-02-19 Tom Tromey <tromey@redhat.com>
9078 * target-delegates.c: Rebuild.
9079 * target.c (update_current_target): Don't inherit or default
9080 to_enable_tracepoint.
9081 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9082 TARGET_DEFAULT_NORETURN.
9084 2014-02-19 Tom Tromey <tromey@redhat.com>
9086 * target-delegates.c: Rebuild.
9087 * target.c (update_current_target): Don't inherit or default
9088 to_download_trace_state_variable.
9089 * target.h (struct target_ops) <to_download_trace_state_variable>:
9090 Use TARGET_DEFAULT_NORETURN.
9092 2014-02-19 Tom Tromey <tromey@redhat.com>
9094 * target-delegates.c: Rebuild.
9095 * target.c (update_current_target): Don't inherit or default
9096 to_can_download_tracepoint.
9097 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9098 TARGET_DEFAULT_RETURN.
9100 2014-02-19 Tom Tromey <tromey@redhat.com>
9102 * target-delegates.c: Rebuild.
9103 * target.c (update_current_target): Don't inherit or default
9104 to_download_tracepoint.
9105 * target.h (struct target_ops) <to_download_tracepoint>: Use
9106 TARGET_DEFAULT_NORETURN.
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
9113 * target.h (struct target_ops) <to_trace_init>: 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_supports_string_tracing.
9121 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9122 TARGET_DEFAULT_RETURN.
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_supports_enable_disable_tracepoint.
9129 * target.h (struct target_ops)
9130 <to_supports_enable_disable_tracepoint>: Use
9131 TARGET_DEFAULT_RETURN.
9133 2014-02-19 Tom Tromey <tromey@redhat.com>
9135 * target-delegates.c: Rebuild.
9136 * target.c (update_current_target): Don't inherit or default
9137 to_supports_multi_process.
9138 * target.h (struct target_ops) <to_supports_multi_process>: Use
9139 TARGET_DEFAULT_RETURN.
9141 2014-02-19 Tom Tromey <tromey@redhat.com>
9143 * target-delegates.c: Rebuild.
9144 * target.c (update_current_target): Don't inherit or default
9145 to_get_ada_task_ptid.
9146 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9147 TARGET_DEFAULT_FUNC.
9149 2014-02-19 Tom Tromey <tromey@redhat.com>
9151 * target-delegates.c: Rebuild.
9152 * target.c (update_current_target): Don't inherit or default
9153 to_thread_architecture.
9154 * target.h (struct target_ops) <to_thread_architecture>: Use
9155 TARGET_DEFAULT_FUNC.
9157 2014-02-19 Tom Tromey <tromey@redhat.com>
9159 * target-delegates.c: Rebuild.
9160 * target.c (update_current_target): Don't inherit or default
9161 to_execution_direction.
9162 * target.h (struct target_ops) <to_execution_direction>: Use
9163 TARGET_DEFAULT_FUNC.
9165 2014-02-19 Tom Tromey <tromey@redhat.com>
9167 * target-delegates.c: Rebuild.
9168 * target.c (update_current_target): Don't inherit or default
9169 to_can_execute_reverse.
9170 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9171 TARGET_DEFAULT_RETURN.
9172 (target_can_execute_reverse): Unconditionally delegate.
9174 2014-02-19 Tom Tromey <tromey@redhat.com>
9176 * target-delegates.c: Rebuild.
9177 * target.c (update_current_target): Don't inherit or default
9179 (dummy_goto_bookmark): Remove.
9180 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9181 * target.h (struct target_ops) <to_goto_bookmark>: Use
9182 TARGET_DEFAULT_NORETURN.
9184 2014-02-19 Tom Tromey <tromey@redhat.com>
9186 * target-delegates.c: Rebuild.
9187 * target.c (update_current_target): Don't inherit or default
9189 (dummy_get_bookmark): Remove.
9190 (init_dummy_target): Don't inherit or default to_get_bookmark.
9191 * target.h (struct target_ops) <to_get_bookmark>: Use
9192 TARGET_DEFAULT_NORETURN
9194 2014-02-19 Tom Tromey <tromey@redhat.com>
9196 * target-delegates.c: Rebuild.
9197 * target.c (update_current_target): Don't inherit or default
9198 to_make_corefile_notes.
9199 (init_dummy_target): Don't initialize to_make_corefile_notes.
9200 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9201 TARGET_DEFAULT_FUNC.
9203 2014-02-19 Tom Tromey <tromey@redhat.com>
9205 * target-delegates.c: Rebuild.
9206 * target.c (update_current_target): Don't inherit or default
9207 to_find_memory_regions.
9208 (init_dummy_target): Don't initialize to_find_memory_regions.
9209 * target.h (struct target_ops) <to_find_memory_regions>: Use
9210 TARGET_DEFAULT_FUNC.
9212 2014-02-19 Tom Tromey <tromey@redhat.com>
9214 * target-delegates.c: Rebuild.
9215 * target.c (update_current_target): Don't inherit or default
9217 * target.h (struct target_ops) <to_log_command>: Use
9218 TARGET_DEFAULT_IGNORE.
9219 (target_log_command): Unconditionally delegate.
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
9225 to_pid_to_exec_file.
9226 * target.h (struct target_ops) <to_pid_to_exec_file>: 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
9234 (target_thread_name): Unconditionally delegate.
9235 * target.h (struct target_ops) <to_thread_name>: 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_extra_thread_info.
9243 * target.h (struct target_ops) <to_extra_thread_info>: Use
9244 TARGET_DEFAULT_RETURN.
9246 2014-02-19 Tom Tromey <tromey@redhat.com>
9248 * target-delegates.c: Rebuild.
9249 * target.c (update_current_target): Don't inherit or default
9251 * target.h (struct target_ops) <to_has_exited>: 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_set_syscall_catchpoint.
9259 (return_one): Remove.
9260 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9261 TARGET_DEFAULT_RETURN.
9263 2014-02-19 Tom Tromey <tromey@redhat.com>
9265 * target-delegates.c: Rebuild.
9266 * target.c (update_current_target): Don't inherit or default
9267 to_insert_exec_catchpoint.
9268 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9269 TARGET_DEFAULT_RETURN.
9271 2014-01-08 Tom Tromey <tromey@redhat.com>
9273 * target-delegates.c: Rebuild.
9274 * target.c (update_current_target): Don't inherit or default
9275 to_insert_exec_catchpoint.
9276 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9277 TARGET_DEFAULT_RETURN.
9279 2014-02-19 Tom Tromey <tromey@redhat.com>
9281 * target-delegates.c: Rebuild.
9282 * target.c (update_current_target): Don't inherit or default
9283 to_remove_vfork_catchpoint.
9284 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9285 TARGET_DEFAULT_RETURN.
9287 2014-02-19 Tom Tromey <tromey@redhat.com>
9289 * target-delegates.c: Rebuild.
9290 * target.c (update_current_target): Don't inherit or default
9291 to_insert_vfork_catchpoint.
9292 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9293 TARGET_DEFAULT_RETURN.
9295 2014-02-19 Tom Tromey <tromey@redhat.com>
9297 * target-delegates.c: Rebuild.
9298 * target.c (update_current_target): Don't inherit or default
9299 to_remove_fork_catchpoint.
9300 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9301 TARGET_DEFAULT_RETURN.
9303 2014-02-19 Tom Tromey <tromey@redhat.com>
9305 * target-delegates.c: Rebuild.
9306 * target.c (update_current_target): Don't inherit or default
9307 to_insert_fork_catchpoint.
9308 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9309 TARGET_DEFAULT_RETURN.
9311 2014-02-19 Tom Tromey <tromey@redhat.com>
9313 * target-delegates.c: Rebuild.
9314 * target.c (update_current_target): Don't inherit or default
9315 to_post_startup_inferior.
9316 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9317 TARGET_DEFAULT_IGNORE.
9319 2014-02-19 Tom Tromey <tromey@redhat.com>
9321 * target-delegates.c: Rebuild.
9322 * target.c (update_current_target): Don't inherit or default
9324 * target.h (struct target_ops) <to_load>: Use
9325 TARGET_DEFAULT_NORETURN.
9327 2014-02-19 Tom Tromey <tromey@redhat.com>
9329 * target-delegates.c: Rebuild.
9330 * target.c (update_current_target): Don't inherit or default
9332 * target.h (struct target_ops) <to_terminal_info>: Use
9333 TARGET_DEFAULT_FUNC.
9335 2014-02-19 Tom Tromey <tromey@redhat.com>
9337 * target-delegates.c: Rebuild.
9338 * target.c (update_current_target): Don't inherit or default
9339 to_terminal_save_ours.
9340 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9341 TARGET_DEFAULT_IGNORE.
9343 2014-02-19 Tom Tromey <tromey@redhat.com>
9345 * target-delegates.c: Rebuild.
9346 * target.c (update_current_target): Don't inherit or default
9348 * target.h (struct target_ops) <to_terminal_ours>: Use
9349 TARGET_DEFAULT_IGNORE.
9351 2014-02-19 Tom Tromey <tromey@redhat.com>
9353 * target-delegates.c: Rebuild.
9354 * target.c (update_current_target): Don't inherit or default
9355 to_terminal_ours_for_output.
9356 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9357 TARGET_DEFAULT_IGNORE.
9359 2014-02-19 Tom Tromey <tromey@redhat.com>
9361 * target-delegates.c: Rebuild.
9362 * target.c (update_current_target): Don't inherit or default
9363 to_terminal_inferior.
9364 * target.h (struct target_ops) <to_terminal_inferior>: Use
9365 TARGET_DEFAULT_IGNORE.
9367 2014-02-19 Tom Tromey <tromey@redhat.com>
9369 * target-delegates.c: Rebuild.
9370 * target.c (update_current_target): Don't inherit or default
9372 * target.h (struct target_ops) <to_terminal_init>: Use
9373 TARGET_DEFAULT_IGNORE.
9375 2014-02-19 Tom Tromey <tromey@redhat.com>
9377 * target-delegates.c: Rebuild.
9378 * target.c (update_current_target): Don't inherit or default
9379 to_can_accel_watchpoint_condition.
9380 * target.h (struct target_ops)
9381 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9383 2014-02-19 Tom Tromey <tromey@redhat.com>
9385 * target-delegates.c: Rebuild.
9386 * target.c (update_current_target): Don't inherit or default
9387 to_region_ok_for_hw_watchpoint.
9388 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9389 Use TARGET_DEFAULT_FUNC.
9391 2014-02-19 Tom Tromey <tromey@redhat.com>
9393 * target-delegates.c: Rebuild.
9394 * target.c (update_current_target): Don't inherit or default
9395 to_watchpoint_addr_within_range.
9396 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9397 Use TARGET_DEFAULT_FUNC.
9399 2014-02-19 Tom Tromey <tromey@redhat.com>
9401 * target-delegates.c: Rebuild.
9402 * target.c (update_current_target): Don't inherit or default
9403 to_remove_watchpoint.
9404 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9405 TARGET_DEFAULT_NORETURN.
9407 2014-02-19 Tom Tromey <tromey@redhat.com>
9409 * target-delegates.c: Rebuild.
9410 * target.c (update_current_target): Don't inherit or default
9411 to_insert_watchpoint.
9412 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9413 TARGET_DEFAULT_RETURN.
9415 2014-02-19 Tom Tromey <tromey@redhat.com>
9417 * target-delegates.c: Rebuild.
9418 * target.c (update_current_target): Don't inherit or default
9419 to_remove_hw_breakpoint.
9420 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9421 TARGET_DEFAULT_RETURN.
9423 2014-02-19 Tom Tromey <tromey@redhat.com>
9425 * target-delegates.c: Rebuild.
9426 * target.c (update_current_target): Don't inherit or default
9427 to_insert_hw_breakpoint.
9428 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9429 TARGET_DEFAULT_RETURN.
9431 2014-02-19 Tom Tromey <tromey@redhat.com>
9433 * target-delegates.c: Rebuild.
9434 * target.c (update_current_target): Don't inherit or default
9435 to_can_use_hw_breakpoint.
9436 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9437 TARGET_DEFAULT_RETURN.
9439 2014-02-19 Tom Tromey <tromey@redhat.com>
9441 * target-delegates.c: Rebuild.
9442 * target.c (update_current_target): Don't inherit or default
9444 * target.h (struct target_ops) <to_files_info>: Use
9445 TARGET_DEFAULT_IGNORE.
9447 2014-02-19 Tom Tromey <tromey@redhat.com>
9449 * target-delegates.c: Rebuild.
9450 * target.c (update_current_target): Don't inherit or default
9452 * target.h (struct target_ops) <to_store>: Use
9453 TARGET_DEFAULT_NORETURN.
9455 2014-02-19 Tom Tromey <tromey@redhat.com>
9457 * target-delegates.c: Rebuild.
9458 * target.c (update_current_target): Don't inherit or default
9460 * target.h (struct target_ops) <to_post_attach>: Use
9461 TARGET_DEFAULT_IGNORE.
9463 2014-02-19 Tom Tromey <tromey@redhat.com>
9465 * target-delegates.c: Rebuild.
9466 * target.c (update_current_target): Don't inherit or default
9468 (default_rcmd): New function.
9469 (do_monitor_command): Unconditionally delegate.
9470 * target.h (struct target_ops) <to_rmcd>: Use
9471 TARGET_DEFAULT_FUNC.
9473 2014-02-19 Tom Tromey <tromey@redhat.com>
9475 * target-delegates.c: Rebuild.
9476 * target.c (init_dummy_target): Don't initialize to_attach.
9477 (target_attach): Unconditionally delegate.
9478 * target.h (struct target_ops) <to_attach>: Use
9479 TARGET_DEFAULT_FUNC.
9481 2014-02-19 Tom Tromey <tromey@redhat.com>
9483 * target-delegates.c: Rebuild.
9484 * target.c (target_detach): Unconditionally delegate.
9485 (init_dummy_target): Don't initialize to_detach.
9486 * target.h (struct target_ops) <to_detach>: Use
9487 TARGET_DEFAULT_IGNORE.
9489 2014-02-19 Tom Tromey <tromey@redhat.com>
9491 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9493 (target_augmented_libraries_svr4_read): Add argument.
9494 * target.c (update_current_target): Update.
9495 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9498 2014-02-19 Tom Tromey <tromey@redhat.com>
9500 * target.h (struct target_ops) <to_call_history_range>: Add
9502 * target.c (target_call_history_range): Add argument.
9503 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9505 (record_btrace_call_history_from): Update.
9507 2014-02-19 Tom Tromey <tromey@redhat.com>
9509 * target.h (struct target_ops) <to_call_history_from>: Add
9511 * target.c (target_call_history_from): Add argument.
9512 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9515 2014-02-19 Tom Tromey <tromey@redhat.com>
9517 * target.h (struct target_ops) <to_call_history>: Add argument.
9518 * target.c (target_call_history): Add argument.
9519 * record-btrace.c (record_btrace_call_history): Add 'self'
9522 2014-02-19 Tom Tromey <tromey@redhat.com>
9524 * target.h (struct target_ops) <to_insn_history_range>: Add
9526 * target.c (target_insn_history_range): Add argument.
9527 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9529 (record_btrace_insn_history_from): Update.
9531 2014-02-19 Tom Tromey <tromey@redhat.com>
9533 * target.h (struct target_ops) <to_insn_history_from>: Add
9535 * target.c (target_insn_history_from): Add argument.
9536 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9539 2014-02-19 Tom Tromey <tromey@redhat.com>
9541 * target.h (struct target_ops) <to_insn_history>: Add argument.
9542 * target.c (target_insn_history): Add argument.
9543 * record-btrace.c (record_btrace_insn_history): Add 'self'
9546 2014-02-19 Tom Tromey <tromey@redhat.com>
9548 * target.h (struct target_ops) <to_goto_record>: Add argument.
9549 * target.c (target_goto_record): Add argument.
9550 * record-full.c (record_full_goto): Add 'self' argument.
9551 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9553 2014-02-19 Tom Tromey <tromey@redhat.com>
9555 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9556 * target.c (target_goto_record_end): Add argument.
9557 * record-full.c (record_full_goto_end): Add 'self' argument.
9558 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9560 2014-02-19 Tom Tromey <tromey@redhat.com>
9562 * target.h (struct target_ops) <to_goto_record_begin>: Add
9564 * target.c (target_goto_record_begin): Add argument.
9565 * record-full.c (record_full_goto_begin): Add 'self' argument.
9566 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9569 2014-02-19 Tom Tromey <tromey@redhat.com>
9571 * target.h (struct target_ops) <to_record_is_replaying>: Add
9573 * target.c (target_record_is_replaying): Add argument.
9574 * record-full.c (record_full_is_replaying): Add 'self' argument.
9575 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9577 (record_btrace_xfer_partial, record_btrace_store_registers)
9578 (record_btrace_prepare_to_store, record_btrace_resume)
9579 (record_btrace_wait, record_btrace_decr_pc_after_break)
9580 (record_btrace_find_new_threads, record_btrace_thread_alive):
9583 2014-02-19 Tom Tromey <tromey@redhat.com>
9585 * target.h (struct target_ops) <to_delete_record>: Add argument.
9586 * target.c (target_delete_record): Add argument.
9587 * record-full.c (record_full_delete): Add 'self' argument.
9589 2014-02-19 Tom Tromey <tromey@redhat.com>
9591 * target.h (struct target_ops) <to_save_record>: Add argument.
9592 * target.c (target_save_record): Add argument.
9593 * record-full.c (record_full_save): Add 'self' argument.
9594 (record_full_save): Add 'self' argument.
9596 2014-02-19 Tom Tromey <tromey@redhat.com>
9598 * target.h (struct target_ops) <to_info_record>: Add argument.
9599 * target.c (target_info_record): Add argument.
9600 * record.c (info_record_command): Add argument.
9601 * record-full.c (record_full_info): Add 'self' argument.
9602 * record-btrace.c (record_btrace_info): Add 'self' argument.
9604 2014-02-19 Tom Tromey <tromey@redhat.com>
9606 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9607 * target.c (target_stop_recording): Add argument.
9608 * record.c (record_stop): Add argument.
9609 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9612 2014-02-19 Tom Tromey <tromey@redhat.com>
9614 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9615 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9616 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9618 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9619 (_initialize_amd64_linux_nat): Use it.
9620 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9621 (_initialize_i386_linux_nat): Use it.
9623 2014-02-19 Tom Tromey <tromey@redhat.com>
9625 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9626 * target.c (target_teardown_btrace): Add argument.
9627 * remote.c (remote_teardown_btrace): Add 'self' argument.
9628 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9630 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9633 2014-02-19 Tom Tromey <tromey@redhat.com>
9635 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9636 * target.c (target_disable_btrace): Add argument.
9637 * remote.c (remote_disable_btrace): Add 'self' argument.
9638 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9640 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9643 2014-02-19 Tom Tromey <tromey@redhat.com>
9645 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9646 * target.c (target_enable_btrace): Add argument.
9647 * remote.c (remote_enable_btrace): Add 'self' argument.
9648 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9650 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9653 2014-02-19 Tom Tromey <tromey@redhat.com>
9655 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9656 (target_can_use_agent): Add argument.
9657 * target.c (update_current_target): Update.
9658 * remote.c (remote_can_use_agent): Add 'self' argument.
9659 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9661 2014-02-19 Tom Tromey <tromey@redhat.com>
9663 * target.h (struct target_ops) <to_use_agent>: Add argument.
9664 (target_use_agent): Add argument.
9665 * target.c (update_current_target): Update.
9666 * remote.c (remote_use_agent): Add 'self' argument.
9667 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9669 2014-02-19 Tom Tromey <tromey@redhat.com>
9671 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9672 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9673 (target_traceframe_info): Add argument.
9674 * target.c (update_current_target): Update.
9675 * remote.c (remote_traceframe_info): Add 'self' argument.
9676 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9678 2014-02-19 Tom Tromey <tromey@redhat.com>
9680 * target.h (target_static_tracepoint_markers_by_strid): Add
9682 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9684 * target.c (update_current_target): Update.
9685 * remote.c (struct target_ops)
9686 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9687 * linux-nat.c (struct target_ops)
9688 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9690 2014-02-19 Tom Tromey <tromey@redhat.com>
9692 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9694 (target_static_tracepoint_marker_at): Add argument.
9695 * target.c (update_current_target): Update.
9696 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9699 2014-02-19 Tom Tromey <tromey@redhat.com>
9701 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9702 (target_set_permissions): Add argument.
9703 * target.c (update_current_target): Update.
9704 * remote.c (remote_set_permissions): Add 'self' argument.
9705 (remote_start_remote): Update.
9707 2014-02-19 Tom Tromey <tromey@redhat.com>
9709 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9710 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9711 (target_get_tib_address): Add argument.
9712 * target.c (update_current_target): Update.
9713 * remote.c (remote_get_tib_address): Add 'self' argument.
9715 2014-02-19 Tom Tromey <tromey@redhat.com>
9717 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9718 (target_set_trace_notes): Add argument.
9719 * target.c (update_current_target): Update.
9720 * remote.c (remote_set_trace_notes): Add 'self' argument.
9722 2014-02-19 Tom Tromey <tromey@redhat.com>
9724 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9726 (target_set_trace_buffer_size): Add argument.
9727 * target.c (update_current_target): Update.
9728 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9730 2014-02-19 Tom Tromey <tromey@redhat.com>
9732 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9734 (target_set_circular_trace_buffer): Add argument.
9735 * target.c (update_current_target): Update.
9736 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9739 2014-02-19 Tom Tromey <tromey@redhat.com>
9741 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9743 (target_set_disconnected_tracing): Add argument.
9744 * target.c (update_current_target): Update.
9745 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9747 2014-02-19 Tom Tromey <tromey@redhat.com>
9749 * target.h (struct target_ops)
9750 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9751 (target_get_min_fast_tracepoint_insn_len): Add argument.
9752 * target.c (update_current_target): Update.
9753 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9756 2014-02-19 Tom Tromey <tromey@redhat.com>
9758 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9760 (target_get_raw_trace_data): Add argument.
9761 * target.c (update_current_target): Update.
9762 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9764 2014-02-19 Tom Tromey <tromey@redhat.com>
9766 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9768 (target_upload_trace_state_variables): Add argument.
9769 * target.c (update_current_target): Update.
9770 * remote.c (remote_upload_trace_state_variables): Add 'self'
9772 (remote_start_remote): Update.
9774 2014-02-19 Tom Tromey <tromey@redhat.com>
9776 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9778 (target_upload_tracepoints): Add argument.
9779 * target.c (update_current_target): Update.
9780 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9781 (remote_start_remote): Update.
9783 2014-02-19 Tom Tromey <tromey@redhat.com>
9785 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9786 (target_save_trace_data): Add argument.
9787 * target.c (update_current_target): Update.
9788 * remote.c (remote_save_trace_data): Add 'self' argument.
9790 2014-02-19 Tom Tromey <tromey@redhat.com>
9792 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9794 * target.h (struct target_ops)
9795 <to_get_trace_state_variable_value>: Add argument.
9796 (target_get_trace_state_variable_value): Add argument.
9797 * target.c (update_current_target): Update.
9798 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9800 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9802 2014-02-19 Tom Tromey <tromey@redhat.com>
9804 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9805 * target.h (struct target_ops) <to_trace_find>: Add argument.
9806 (target_trace_find): Add argument.
9807 * target.c (update_current_target): Update.
9808 * remote.c (remote_trace_find): Add 'self' argument.
9809 * ctf.c (ctf_trace_find): Add 'self' argument.
9811 2014-02-19 Tom Tromey <tromey@redhat.com>
9813 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9814 (target_trace_stop): Add argument.
9815 * target.c (update_current_target): Update.
9816 * remote.c (remote_trace_stop): Add 'self' argument.
9818 2014-02-19 Tom Tromey <tromey@redhat.com>
9820 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9821 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9823 (target_get_tracepoint_status): Add argument.
9824 * target.c (update_current_target): Update.
9825 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9827 2014-02-19 Tom Tromey <tromey@redhat.com>
9829 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9830 * target.h (struct target_ops) <to_get_trace_status>: Add
9832 (target_get_trace_status): Add argument.
9833 * target.c (update_current_target): Update.
9834 * remote.c (remote_get_trace_status): Add 'self' argument.
9835 (remote_start_remote, remote_can_download_tracepoint): Update.
9836 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9838 2014-02-19 Tom Tromey <tromey@redhat.com>
9840 * target.h (struct target_ops) <to_trace_start>: Add argument.
9841 (target_trace_start): Add argument.
9842 * target.c (update_current_target): Update.
9843 * remote.c (remote_trace_start): Add 'self' argument.
9845 2014-02-19 Tom Tromey <tromey@redhat.com>
9847 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9849 (target_trace_set_readonly_regions): Add argument.
9850 * target.c (update_current_target): Update.
9851 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9854 2014-02-19 Tom Tromey <tromey@redhat.com>
9856 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9858 (target_disable_tracepoint): Add argument.
9859 * target.c (update_current_target): Update.
9860 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9862 2014-02-19 Tom Tromey <tromey@redhat.com>
9864 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9866 (target_enable_tracepoint): Add argument.
9867 * target.c (update_current_target): Update.
9868 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9870 2014-02-19 Tom Tromey <tromey@redhat.com>
9872 * target.h (struct target_ops) <to_download_trace_state_variable>:
9874 (target_download_trace_state_variable): Add argument.
9875 * target.c (update_current_target): Update.
9876 * remote.c (remote_download_trace_state_variable): Add 'self'
9879 2014-02-19 Tom Tromey <tromey@redhat.com>
9881 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9883 (target_can_download_tracepoint): Add argument.
9884 * target.c (update_current_target): Update.
9885 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9887 2014-02-19 Tom Tromey <tromey@redhat.com>
9889 * target.h (struct target_ops) <to_download_tracepoint>: Add
9891 (target_download_tracepoint): Add argument.
9892 * target.c (update_current_target): Update.
9893 * remote.c (remote_download_tracepoint): Add 'self' argument.
9895 2014-02-19 Tom Tromey <tromey@redhat.com>
9897 * target.h (struct target_ops) <to_trace_init>: Add argument.
9898 (target_trace_init): Add argument.
9899 * target.c (update_current_target): Update.
9900 * remote.c (remote_trace_init): Add 'self' argument.
9902 2014-02-19 Tom Tromey <tromey@redhat.com>
9904 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9905 * target.c (target_fileio_readlink): Add argument.
9906 * remote.c (remote_hostio_readlink): Add 'self' argument.
9907 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9909 2014-02-19 Tom Tromey <tromey@redhat.com>
9911 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9912 * target.c (target_fileio_unlink): Add argument.
9913 * remote.c (remote_hostio_unlink): Add 'self' argument.
9914 (remote_file_delete): Update.
9915 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9917 2014-02-19 Tom Tromey <tromey@redhat.com>
9919 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9920 * target.c (target_fileio_close): Add argument.
9921 * remote.c (remote_hostio_close): Add 'self' argument.
9922 (remote_hostio_close_cleanup): Update.
9923 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9925 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9927 2014-02-19 Tom Tromey <tromey@redhat.com>
9929 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9930 * target.c (target_fileio_pread): Add argument.
9931 * remote.c (remote_hostio_pread): Add 'self' argument.
9932 (remote_bfd_iovec_pread, remote_file_get): Update.
9933 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9935 2014-02-19 Tom Tromey <tromey@redhat.com>
9937 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9938 * target.c (target_fileio_pwrite): Add argument.
9939 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9940 (remote_file_put): Update.
9941 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9943 2014-02-19 Tom Tromey <tromey@redhat.com>
9945 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9946 * target.c (target_fileio_open): Add argument.
9947 * remote.c (remote_hostio_open): Add 'self' argument.
9948 (remote_bfd_iovec_open): Add 'self' argument.
9949 (remote_file_put): Add 'self' argument.
9950 (remote_file_get): Add 'self' argument.
9951 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9953 2014-02-19 Tom Tromey <tromey@redhat.com>
9955 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9957 (target_can_run_breakpoint_commands): Add argument.
9958 * target.c (update_current_target): Update.
9959 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9961 (remote_insert_breakpoint): Add 'self' argument.
9962 (remote_insert_hw_breakpoint): Add 'self' argument.
9963 (remote_can_run_breakpoint_commands): Add 'self' argument.
9965 2014-02-19 Tom Tromey <tromey@redhat.com>
9967 * target.h (struct target_ops)
9968 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9969 (target_supports_evaluation_of_breakpoint_conditions): Add
9971 * target.c (update_current_target): Update.
9972 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9974 (remote_insert_breakpoint): Add 'self' argument.
9975 (remote_insert_hw_breakpoint): Add 'self' argument.
9976 (remote_supports_cond_breakpoints): Add 'self' argument.
9978 2014-02-19 Tom Tromey <tromey@redhat.com>
9980 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9982 (target_supports_string_tracing): Add argument.
9983 * target.c (update_current_target): Update.
9984 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9986 2014-02-19 Tom Tromey <tromey@redhat.com>
9988 * target.h (struct target_ops)
9989 <to_supports_disable_randomization>: Add argument.
9990 * target.c (find_default_supports_disable_randomization): Add
9992 (target_supports_disable_randomization): Add argument.
9993 (find_default_supports_disable_randomization): Add 'self'
9995 * remote.c (extended_remote_supports_disable_randomization): Add
9997 (remote_supports_disable_randomization): Add 'self' argument.
9998 (extended_remote_create_inferior): Update.
9999 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10002 2014-02-19 Tom Tromey <tromey@redhat.com>
10004 * target.h (struct target_ops)
10005 <to_supports_enable_disable_tracepoint>: Add argument.
10006 (target_supports_enable_disable_tracepoint): Add argument.
10007 * target.c (update_current_target): Update.
10008 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10011 2014-02-19 Tom Tromey <tromey@redhat.com>
10013 * target.h (struct target_ops) <to_supports_multi_process>: Add
10015 (target_supports_multi_process): Add argument.
10016 * target.c (update_current_target): Update.
10017 * remote.c (remote_supports_multi_process): Add 'self' argument.
10018 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10020 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10023 2014-02-19 Tom Tromey <tromey@redhat.com>
10025 * target.h (struct target_ops) <to_execution_direction>: Add
10027 (target_execution_direction): Add argument.
10028 * target.c (default_execution_direction): Add 'self' argument.
10029 * record-full.c (record_full_execution_direction): Add 'self'
10032 2014-02-19 Tom Tromey <tromey@redhat.com>
10034 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10036 (target_can_execute_reverse): Add argument.
10037 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10038 * record-full.c (record_full_can_execute_reverse): Add 'self'
10040 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10043 2014-02-19 Tom Tromey <tromey@redhat.com>
10045 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10046 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10048 (target_get_ada_task_ptid): Add argument.
10049 * target.c (update_current_target): Update.
10050 (default_get_ada_task_ptid): Add 'self' argument.
10051 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10052 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10053 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10055 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10057 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10059 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10061 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10062 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10065 2014-02-19 Tom Tromey <tromey@redhat.com>
10067 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10068 (target_goto_bookmark): Add argument.
10069 * target.c (dummy_goto_bookmark): Add 'self' argument.
10070 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10072 2014-02-19 Tom Tromey <tromey@redhat.com>
10074 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10075 (target_get_bookmark): Add argument.
10076 * target.c (dummy_get_bookmark): Add 'self' argument.
10077 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10079 2014-02-19 Tom Tromey <tromey@redhat.com>
10081 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10083 (target_make_corefile_notes): Add argument.
10084 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10085 * procfs.c (procfs_make_note_section): Add 'self' argument.
10086 (procfs_make_note_section): Add 'self' argument.
10087 (procfs_make_note_section): Add 'self' argument.
10088 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10090 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10091 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10092 * exec.c (exec_make_note_section): Add 'self' argument.
10093 (exec_make_note_section): Add 'self' argument.
10095 2014-02-19 Tom Tromey <tromey@redhat.com>
10097 * target.h (struct target_ops) <to_find_memory_regions>: Add
10099 (target_find_memory_regions): Add argument.
10100 * target.c (dummy_find_memory_regions): Add 'self' argument.
10101 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10102 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10103 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10104 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10105 * exec. (exec_do_find_memory_regions): New global.
10106 (exec_set_find_memory_regions): Rewrite.
10107 (exec_find_memory_regions): New function.
10108 (init_exec_ops): Use exec_find_memory_regions.
10110 2014-02-19 Tom Tromey <tromey@redhat.com>
10112 * target.h (struct target_ops) <to_supports_non_stop>: Add
10114 * target.c (find_default_supports_non_stop): Add argument.
10115 (target_supports_non_stop): Add argument.
10116 (find_default_supports_non_stop): Add 'self' argument.
10117 * remote.c (remote_supports_non_stop): Add 'self' argument.
10118 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10120 2014-02-19 Tom Tromey <tromey@redhat.com>
10122 * target.h (struct target_ops) <to_log_command>: Add argument.
10123 (target_log_command): Add argument.
10124 * serial.h (serial_log_command): Add 'self' argument.
10125 * serial.c (serial_log_command): Add 'self' argument.
10127 2014-02-19 Tom Tromey <tromey@redhat.com>
10129 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10130 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10132 (target_pid_to_exec_file): Add argument.
10133 * target.c (debug_to_pid_to_exec_file): Add argument.
10134 (update_current_target): Update.
10135 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10136 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10137 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10138 (linux_handle_extended_wait): Update.
10139 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10140 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10141 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10142 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10144 2014-02-19 Tom Tromey <tromey@redhat.com>
10146 * target.h (struct target_ops) <to_rcmd>: Add argument.
10147 (target_rcmd): Add argument.
10148 * target.c (debug_to_rcmd): Add argument.
10149 (update_current_target, do_monitor_command): Update.
10150 * remote.c (remote_rcmd): Add 'self' argument.
10151 * monitor.c (monitor_rcmd): Add 'self' argument.
10153 2014-02-19 Tom Tromey <tromey@redhat.com>
10155 * windows-nat.c (windows_stop): Add 'self' argument.
10156 * target.h (struct target_ops) <to_stop>: Add argument.
10157 * target.c (target_stop): Add argument.
10158 (debug_to_stop): Add argument.
10159 (update_current_target): Update.
10160 * remote.c (remote_stop): Add 'self' argument.
10161 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10162 (gdbsim_cntrl_c): Update.
10163 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10164 * procfs.c (procfs_stop): Add 'self' argument.
10165 * nto-procfs.c (procfs_stop): Add 'self' argument.
10166 * monitor.c (monitor_stop): Add 'self' argument.
10167 (monitor_open): Update.
10168 * linux-nat.c (linux_nat_stop): Add argument.
10169 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10170 * gnu-nat.c (gnu_stop): Add 'self' argument.
10171 * darwin-nat.c (darwin_stop): Add 'self' argument.
10173 2014-02-19 Tom Tromey <tromey@redhat.com>
10175 * target.h (struct target_ops) <to_thread_name>: Add argument.
10176 * target.c (target_thread_name): Add argument.
10177 (update_current_target): Update.
10178 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10180 2014-02-19 Tom Tromey <tromey@redhat.com>
10182 * target.h (struct target_ops) <to_extra_thread_info>: Add
10184 (target_extra_thread_info): Add argument.
10185 * target.c (update_current_target): Update.
10186 * remote.c (remote_threads_extra_info): Add 'self' argument.
10187 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10189 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10190 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10191 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10193 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10195 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10197 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10200 2014-02-19 Tom Tromey <tromey@redhat.com>
10202 * target.h (struct target_ops) <to_program_signals>: Add argument.
10203 * target.c (target_program_signals): Add argument.
10204 * remote.c (remote_program_signals): Add 'self' argument.
10206 2014-02-19 Tom Tromey <tromey@redhat.com>
10208 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10209 * target.c (target_pass_signals): Add argument.
10210 * remote.c (remote_pass_signals): Add 'self' argument.
10211 (remote_start_remote): Update.
10212 * procfs.c (procfs_pass_signals): Add 'self' argument.
10213 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10214 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10215 (linux_nat_create_inferior, linux_nat_attach): Update.
10217 2014-02-19 Tom Tromey <tromey@redhat.com>
10219 * windows-nat.c (windows_can_run): Add 'self' argument.
10220 * target.h (struct target_ops) <to_can_run>: Add argument.
10221 (target_can_run): Add argument.
10222 * target.c (debug_to_can_run): Add argument.
10223 (update_current_target): Update.
10224 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10225 * inf-child.c (inf_child_can_run): Add 'self' argument.
10226 * go32-nat.c (go32_can_run): Add 'self' argument.
10228 2014-02-19 Tom Tromey <tromey@redhat.com>
10230 * target.h (struct target_ops) <to_has_exited>: Add argument.
10231 (target_has_exited): Add argument.
10232 * target.c (debug_to_has_exited): Add argument.
10233 (update_current_target): Update.
10235 2014-02-19 Tom Tromey <tromey@redhat.com>
10237 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10239 (target_set_syscall_catchpoint): Add argument.
10240 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10242 * target.c (update_current_target): Update.
10244 2014-02-19 Tom Tromey <tromey@redhat.com>
10246 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10248 (target_remove_exec_catchpoint): Add argument.
10249 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10250 (update_current_target): Update.
10251 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10254 2014-02-19 Tom Tromey <tromey@redhat.com>
10256 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10258 (target_insert_exec_catchpoint): Add argument.
10259 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10260 (update_current_target): Update.
10261 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10264 2014-02-19 Tom Tromey <tromey@redhat.com>
10266 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10268 (target_remove_vfork_catchpoint): Add argument.
10269 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10270 (update_current_target): Update.
10271 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10274 2014-02-19 Tom Tromey <tromey@redhat.com>
10276 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10278 (target_insert_vfork_catchpoint): Add argument.
10279 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10280 (update_current_target): Update.
10281 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10284 2014-02-19 Tom Tromey <tromey@redhat.com>
10286 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10288 (target_remove_fork_catchpoint): Add argument.
10289 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10290 (update_current_target): Update.
10291 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10294 2014-02-19 Tom Tromey <tromey@redhat.com>
10296 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10298 (target_insert_fork_catchpoint): Add argument.
10299 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10300 (update_current_target): Update.
10301 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10304 2014-02-19 Tom Tromey <tromey@redhat.com>
10306 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10308 (target_post_startup_inferior): Add argument.
10309 * target.c (debug_to_post_startup_inferior): Add argument.
10310 (update_current_target): Update.
10311 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10313 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10315 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10317 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10319 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10321 (super_post_startup_inferior): Likewise.
10322 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10324 (super_post_startup_inferior): Likewise.
10325 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10326 Add 'self' argument.
10327 (super_post_startup_inferior): Likewise.
10329 2014-02-19 Tom Tromey <tromey@redhat.com>
10331 * target.h (struct target_ops) <to_load>: Add argument.
10332 * target.c (target_load): Add argument.
10333 (debug_to_load): Add argument.
10334 (update_current_target): Update.
10335 * remote.c (remote_load): Add 'self' argument.
10336 * remote-sim.c (gdbsim_load): Add 'self' argument.
10337 * remote-mips.c (mips_load): Add 'self' argument.
10338 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10339 * monitor.c (monitor_load): Add 'self' argument.
10340 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10342 2014-02-19 Tom Tromey <tromey@redhat.com>
10344 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10345 (target_terminal_info): Add argument.
10346 * target.c (debug_to_terminal_info): Add argument.
10347 (default_terminal_info): Likewise.
10348 * inflow.c (child_terminal_info): Add 'self' argument.
10349 * inferior.h (child_terminal_info): Add 'self' argument.
10350 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10352 2014-02-19 Tom Tromey <tromey@redhat.com>
10354 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10356 (target_terminal_save_ours): Add argument.
10357 * target.c (debug_to_terminal_save_ours): Add argument.
10358 (update_current_target): Update.
10359 * inflow.c (terminal_save_ours): Add 'self' argument.
10360 * inferior.h (terminal_save_ours): Add 'self' argument.
10362 2014-02-19 Tom Tromey <tromey@redhat.com>
10364 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10365 (target_terminal_ours): Add argument.
10366 * target.c (debug_to_terminal_ours): Add argument.
10367 (update_current_target): Update.
10368 * remote.c (remote_terminal_ours): Add 'self' argument.
10369 (remote_close): Update.
10370 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10371 * inflow.c (terminal_ours): Add 'self' argument.
10372 * inferior.h (terminal_ours): Add 'self' argument.
10373 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10375 2014-02-19 Pedro Alves <palves@redhat.com>
10376 Tom Tromey <tromey@redhat.com>
10378 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10380 (target_terminal_ours_for_output): Add argument.
10381 * target.c (debug_to_terminal_ours_for_output): Add argument.
10382 (update_current_target): Update.
10383 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10384 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10385 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10387 2014-02-19 Tom Tromey <tromey@redhat.com>
10389 * target.h (struct target_ops) <to_terminal_inferior>: Add
10391 * target.c (target_terminal_inferior): Add argument.
10392 (update_current_target): Update.
10393 * remote.c (remote_terminal_inferior): Add 'self' argument.
10394 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10395 * inflow.c (terminal_inferior): Add 'self' argument.
10396 * inferior.h (terminal_inferior): Add 'self' argument.
10397 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10398 (go32_terminal_inferior): Add 'self' argument.
10400 2014-02-19 Tom Tromey <tromey@redhat.com>
10402 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10403 (target_terminal_init): Add argument.
10404 * target.c (debug_to_terminal_init): Add argument.
10405 (update_current_target): Update.
10406 * inflow.c (terminal_init_inferior): Add 'self' argument.
10407 * inferior.h (terminal_init_inferior): Add 'self' argument.
10408 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10409 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10411 2014-02-19 Tom Tromey <tromey@redhat.com>
10413 * target.h (struct target_ops)
10414 <to_can_accel_watchpoint_condition>: Add argument.
10415 (target_can_accel_watchpoint_condition): Add argument.
10416 * target.c (debug_to_can_accel_watchpoint_condition): Add
10418 (update_current_target): Update.
10419 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10422 2014-02-19 Tom Tromey <tromey@redhat.com>
10424 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10426 (target_region_ok_for_hw_watchpoint): Add argument.
10427 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10428 (default_region_ok_for_hw_watchpoint): Add argument.
10429 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10430 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10432 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10434 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10436 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10438 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10440 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10442 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10443 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10445 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10446 Add 'self' argument.
10448 2014-02-19 Tom Tromey <tromey@redhat.com>
10450 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10452 (target_insert_watchpoint): Add argument.
10453 * target.c (debug_to_insert_watchpoint): Add argument.
10454 (update_current_target): Update.
10455 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10456 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10457 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10458 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10459 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10460 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10462 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10463 (procfs_insert_hw_watchpoint): Add 'self' argument.
10464 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10466 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10468 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10470 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10471 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10473 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10476 2014-02-19 Tom Tromey <tromey@redhat.com>
10478 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10480 (target_remove_watchpoint): Add argument.
10481 * target.c (debug_to_remove_watchpoint): Add argument.
10482 (update_current_target): Update.
10483 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10484 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10485 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10486 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10487 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10488 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10490 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10491 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10493 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10495 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10497 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10498 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10500 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10503 2014-02-19 Tom Tromey <tromey@redhat.com>
10505 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10507 (target_remove_hw_breakpoint): Add argument.
10508 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10509 (update_current_target): Update.
10510 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10511 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10513 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10514 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10516 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10519 2014-02-19 Tom Tromey <tromey@redhat.com>
10521 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10523 (target_insert_hw_breakpoint): Add argument.
10524 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10525 (update_current_target): Update.
10526 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10527 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10529 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10530 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10531 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10533 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10536 2014-02-19 Tom Tromey <tromey@redhat.com>
10538 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10540 (target_can_use_hardware_watchpoint): Add argument.
10541 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10542 (update_current_target): Update.
10543 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10545 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10547 * remote.c (remote_check_watch_resources): Add 'self' argument.
10548 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10549 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10551 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10552 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10554 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10556 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10558 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10560 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10562 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10564 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10565 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10567 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10570 2014-02-19 Tom Tromey <tromey@redhat.com>
10572 * target.h (struct target_ops) <to_post_attach>: Add argument.
10573 (target_post_attach): Add argument.
10574 * target.c (debug_to_post_attach): Add argument.
10575 (update_current_target): Update.
10576 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10577 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10578 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10579 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10580 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10582 2014-02-19 Tom Tromey <tromey@redhat.com>
10584 * windows-nat.c (windows_close): Add 'self' argument.
10585 * tracepoint.c (tfile_close): Add 'self' argument.
10586 * target.h (struct target_ops) <to_close>: Add argument.
10587 * target.c (target_close): Add argument.
10588 (update_current_target): Update.
10589 * remote.c (remote_close): Add 'self' argument.
10590 * remote-sim.c (gdbsim_close): Add 'self' argument.
10591 * remote-mips.c (mips_close): Add 'self' argument.
10592 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10593 * record-full.c (record_full_close): Add 'self' argument.
10594 * record-btrace.c (record_btrace_close): Add 'self' argument.
10595 * monitor.h (monitor_close): Add 'self' argument.
10596 * monitor.c (monitor_close): Add 'self' argument.
10597 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10598 * linux-nat.c (linux_nat_close): Add argument.
10599 * go32-nat.c (go32_close): Add 'self' argument.
10600 * exec.c (exec_close_1): Add 'self' argument.
10601 * ctf.c (ctf_close): Add 'self' argument.
10602 * corelow.c (core_close): Add 'self' argument.
10603 (core_close_cleanup): Update.
10604 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10605 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10607 2014-02-19 Tom Tromey <tromey@redhat.com>
10609 * remote.c (remote_load): New function.
10610 (init_remote_ops): Use it.
10612 2014-02-19 Tom Tromey <tromey@redhat.com>
10614 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10616 * common/linux-btrace.h (linux_supports_btrace): Update.
10617 * remote.c (remote_supports_btrace): Add "self" argument.
10618 * target-delegates.c: Rebuild.
10619 * target.c (target_supports_btrace): Remove.
10620 * target.h (struct target_ops) <to_supports_btrace>: Add
10621 target_ops argument.
10622 (target_supports_btrace): New define.
10624 2014-02-19 Tom Tromey <tromey@redhat.com>
10626 * record-full.c (record_full_beneath_to_resume_ops)
10627 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10628 (record_full_beneath_to_wait)
10629 (record_full_beneath_to_store_registers_ops)
10630 (record_full_beneath_to_store_registers)
10631 (record_full_beneath_to_xfer_partial_ops)
10632 (record_full_beneath_to_xfer_partial)
10633 (record_full_beneath_to_insert_breakpoint_ops)
10634 (record_full_beneath_to_insert_breakpoint)
10635 (record_full_beneath_to_remove_breakpoint_ops)
10636 (record_full_beneath_to_remove_breakpoint)
10637 (record_full_beneath_to_stopped_by_watchpoint)
10638 (record_full_beneath_to_stopped_data_address)
10639 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10640 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10641 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10642 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10643 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10644 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10645 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10646 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10647 (record_full_resume, record_full_wait_1)
10648 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10649 (record_full_store_registers, record_full_xfer_partial)
10650 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10651 (record_full_async, record_full_core_xfer_partial): Use target
10653 * target-delegates.c: Rebuild.
10654 * target.c (current_xfer_partial): Remove.
10655 (update_current_target): Do not INHERIT or de_fault
10656 to_insert_breakpoint, to_remove_breakpoint,
10657 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10658 to_is_async_p, to_async. Do not set to_xfer_partial field.
10659 (default_xfer_partial): Simplify.
10660 (current_xfer_partial): Remove.
10661 (target_wait, target_resume): Simplify.
10662 (find_default_can_async_p, find_default_is_async_p): Update.
10663 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10664 to_xfer_partial, to_stopped_by_watchpoint,
10665 to_stopped_data_address.
10666 (target_store_registers): Simplify.
10667 (forward_target_remove_breakpoint)
10668 (forward_target_insert_breakpoint): Remove.
10669 (target_remove_breakpoint, target_insert_breakpoint)
10670 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10671 * target.h (struct target_ops) <to_resume, to_wait,
10672 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10673 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10674 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10676 (forward_target_remove_breakpoint)
10677 (forward_target_insert_breakpoint): Remove.
10678 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10680 (record_btrace_insert_breakpoint): Delegate directly.
10682 2014-02-19 Tom Tromey <tromey@redhat.com>
10685 * target-delegates.c: New file.
10686 * target.c: Include target-delegates.c.
10687 (init_dummy_target): Call install_dummy_methods.
10688 (complete_target_initialization): Call install_delegators.
10689 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10690 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10691 * make-target-delegates: New file.
10693 2014-02-19 Tom Tromey <tromey@redhat.com>
10695 * record.c (find_record_target): Use find_target_at.
10696 * target.c (find_target_at): New function.
10697 * target.h (find_target_at): Declare.
10699 2014-02-19 Tom Tromey <tromey@redhat.com>
10701 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10702 Add 'ops' argument.
10703 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10705 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10706 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10708 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10710 * linux-nat.c (save_sigtrap): Update.
10711 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10712 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10713 (linux_nat_close): Update.
10714 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10716 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10718 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10719 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10720 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10721 (tmp_to_async): Add 'ops' argument.
10722 (record_full_stopped_by_watchpoint, record_full_async)
10723 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10725 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10726 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10727 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10728 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10729 (remote_is_async_p, remote_async): Add 'ops' argument.
10730 (remote_stopped_data_address): Update.
10731 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10732 * target.c (update_current_target)
10733 (find_default_can_async_p, find_default_is_async_p): Update.
10734 (init_dummy_target): Update.
10735 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10736 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10737 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10738 (target_can_async_p, target_is_async_p, target_async)
10739 (target_stopped_by_watchpoint): Update.
10741 2014-02-19 Yao Qi <yao@codesourcery.com>
10744 * gdbarch.sh: Remove startup_gdbarch.
10745 * gdbarch.c: Regenerated.
10746 * gdbarch.h: Likewise.
10748 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10750 * rl78-tdep.c (rl78_g10_register_name): New function.
10751 (rl78_return_value): Add g10 support.
10752 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10755 2014-02-17 Doug Evans <xdje42@gmail.com>
10757 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10758 (SUBDIR_GUILE_SRCS): Ditto.
10759 (scm-gsmob.o): Ditto.
10761 2014-02-17 Yao Qi <yao@codesourcery.com>
10763 * gnu-nat.c (ILL_RPC): Declare defined function.
10765 2014-02-17 Yao Qi <yao@codesourcery.com>
10767 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10768 mach_msg_type_number_t.
10769 (gnu_write_inferior): Likewise.
10771 2014-02-17 Yao Qi <yao@codesourcery.com>
10773 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10775 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10776 (inf_validate_procs, inf_signal): Likewise.
10777 (S_exception_raise_request): Likewise.
10778 (do_mach_notify_dead_name): Likewise.
10779 (steal_exc_port): Likewise.
10780 (gnu_read_inferior): Change 'copy_count''s type to
10781 mach_msg_type_number_t.
10782 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10785 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10787 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10788 flag. Adjust all users; in particular...
10789 (gnu_wait): ..., don't decrement its value in here...
10790 (gnu_create_inferior): ..., and instead set the flag in here,
10791 around the startup_inferior call, and call that one with
10792 START_INFERIOR_TRAPS_EXPECTED.
10794 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10795 (ILL_RPC): ... new macro.
10796 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10797 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10798 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10799 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10800 functions with ILL_RPC macro.
10801 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10802 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10803 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10804 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10805 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10806 (S_proc_getlogin_reply, S_proc_getsid_reply)
10807 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10808 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10809 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10810 (S_proc_getnports_reply, S_proc_is_important_reply)
10811 (S_proc_get_code_reply): New stub functions, generated with
10814 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10815 collected the type check structures.
10817 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10819 2014-02-14 Doug Evans <dje@google.com>
10821 * target.c (target_write_partial): Fix result type.
10823 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10825 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10826 the proper offsets to access fpregset_t.
10828 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10830 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10831 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10832 * h8300-tdep.c (setmachinelist): Remove global.
10833 * hppa-tdep.c (hppa_sigtramp): Remove global.
10834 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10835 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10836 * ravenscar-thread.c (update_target_observer): Remove global.
10837 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10839 2014-02-12 Tom Tromey <tromey@redhat.com>
10841 * common/rsp-low.c: Update comments.
10842 * common/rsp-low.h: Update comments.
10844 2014-02-12 Tom Tromey <tromey@redhat.com>
10846 * common/rsp-low.c (convert_ascii_to_int): Remove.
10847 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10849 2014-02-12 Tom Tromey <tromey@redhat.com>
10851 * common/rsp-low.h (unhexify): Don't declare.
10852 * common/rsp-low.c (unhexify): Remove.
10854 2014-02-12 Tom Tromey <tromey@redhat.com>
10856 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10857 * common/rsp-low.c (convert_int_to_ascii): Remove.
10859 2014-02-12 Tom Tromey <tromey@redhat.com>
10861 * common/rsp-low.h (hexify): Don't declare.
10862 * common/rsp-low.c (hexify): Remove.
10864 2014-02-12 Tom Tromey <tromey@redhat.com>
10866 * common/rsp-low.c (hexify): Never take strlen of argument.
10868 2014-02-12 Tom Tromey <tromey@redhat.com>
10870 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10871 * remote.c (extended_remote_run, remote_rcmd)
10872 (remote_download_trace_state_variable, remote_save_trace_data)
10873 (remote_set_trace_notes): Update.
10874 * tracepoint.c (encode_source_string, tfile_write_status)
10875 (tfile_write_uploaded_tsv): Update.
10877 2014-02-12 Tom Tromey <tromey@redhat.com>
10879 * tracepoint.c: Include rsp-low.h.
10880 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10881 * remote.c: Include rsp-low.h.
10882 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10883 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10884 (remote_unescape_input): Move to common/rsp-low.c.
10885 * common/rsp-low.h: New file.
10886 * common/rsp-low.c: New file.
10887 * Makefile.in (SFILES): Add common/rsp-low.c.
10888 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10889 (COMMON_OBS): Add rsp-low.o.
10890 (rsp-low.o): New target.
10892 2014-02-12 Tom Tromey <tromey@redhat.com>
10894 * utils.h: Include print-utils.h.
10895 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10896 (int_string, core_addr_to_string, core_addr_to_string_nz)
10897 (hex_string, hex_string_custom): Don't declare.
10898 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10899 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10900 (hex_string_custom, int_string, core_addr_to_string)
10901 (core_addr_to_string_nz, host_address_to_string): Move to
10902 common/print-utils.c.
10903 * common/print-utils.h: New file.
10904 * common/print-utils.c: New file
10905 * Makefile.in (SFILES): Add common/print-utils.c.
10906 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10907 (COMMON_OBS): Add print-utils.o.
10908 (print-utils.o): New target.
10910 2014-02-12 Tom Tromey <tromey@redhat.com>
10912 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10914 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10916 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10918 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10920 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10921 if a PT_IO ptrace request returns sucessfully but indicates that 0
10922 bytes were transferred.
10924 2014-02-12 Pedro Alves <palves@redhat.com>
10925 Kevin Buettner <kevinb@redhat.com>
10927 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10928 TYPE_INSTANCE_FLAG_CODE_SPACE.
10930 2014-02-12 Pedro Alves <palves@redhat.com>
10932 * h8300-tdep.c (pseudo_from_raw_register)
10933 (raw_from_pseudo_register): New functions.
10934 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10937 2014-02-12 Pedro Alves <palves@redhat.com>
10939 * h8300-tdep.c (h8300_register_sim_regno): New function.
10940 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10941 gdbarch_register_sim_regno hook.
10943 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10945 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10947 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10949 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10951 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10953 * obsd-tdep.h (obsd_init_abi): New prototype.
10954 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10955 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10956 (obsd_init_abi): New functions.
10957 * i386obsd-tdep.c: Include "obsd-tdep.h".
10958 (i386obsd_init_abi): Call obsd_init_abi.
10959 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10960 (amd64obsd_init_abi): Call obsd_init_abi.
10961 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10962 obsd-tdep.c to gdb_target_obs.
10964 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10966 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10967 double float arguments to 16-byte in the argument slots.
10969 2014-02-11 Doug Evans <xdje42@gmail.com>
10971 * configure.ac: Don't crash if pkg-config is not found and guile
10972 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10974 * configure: Regenerate.
10976 2014-02-11 Yao Qi <yao@codesourcery.com>
10978 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10979 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10980 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10981 * gnu-nat.c (gnu_xfer_memory): Likewise.
10982 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10983 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10984 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10985 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10987 2014-02-11 Yao Qi <yao@codesourcery.com>
10989 * target.h (enum target_xfer_error): Rename to ...
10990 (enum target_xfer_status): ... it. New. All users updated.
10991 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10993 (TARGET_XFER_STATUS_ERROR_P): New macro.
10994 (target_xfer_error_to_string): Remove declaration.
10995 (target_xfer_status_to_string): Declare.
10996 (target_xfer_partial_ftype): Adjust it.
10997 (struct target_ops) <to_xfer_partial>: Return
10998 target_xfer_status. Add argument xfered_len. Update
11000 * target.c (target_xfer_error_to_string): Rename to ...
11001 (target_xfer_status_to_string): ... it. New. All callers
11003 (target_read_live_memory): Likewise. Call target_xfer_partial
11004 instead of target_read.
11005 (memory_xfer_live_readonly_partial): Return
11006 target_xfer_status. Add argument xfered_len.
11007 (raw_memory_xfer_partial): Likewise.
11008 (memory_xfer_partial_1): Likewise.
11009 (memory_xfer_partial): Likewise.
11010 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11011 properly. Update debug message.
11012 (default_xfer_partial, current_xfer_partial): Likewise.
11013 (target_write_partial): Likewise.
11014 (target_read_partial): Likewise. All callers updated.
11015 (read_whatever_is_readable): Likewise.
11016 (target_write_with_progress): Likewise.
11017 (target_read_alloc_1): Likewise.
11019 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11020 * auxv.c (procfs_xfer_auxv): Likewise.
11021 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11022 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11023 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11024 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11025 * corefile.c (read_memory): Adjust.
11026 * corelow.c (core_xfer_partial): Likewise.
11027 * ctf.c (ctf_xfer_partial): Likewise.
11028 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11030 (darwin_xfer_partial): Likewise.
11031 * exec.c (section_table_xfer_memory_partial): Likewise. All
11033 (exec_xfer_partial): Likewise.
11034 * exec.h (section_table_xfer_memory_partial): Update
11036 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11038 (gnu_xfer_partial): Likewise.
11039 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11040 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11041 (ia64_hpux_xfer_solib_got): Likewise.
11042 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11043 type of 'partial_len' to ULONGEST.
11044 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11045 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11046 (linux_nat_xfer_partial): Likewise.
11047 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11048 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11049 * monitor.c (monitor_xfer_memory): Likewise.
11050 (monitor_xfer_partial): Likewise.
11051 * procfs.c (procfs_xfer_partial): Likewise.
11052 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11053 * record-full.c (record_full_xfer_partial): Likewise.
11054 (record_full_core_xfer_partial): Likewise.
11055 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11056 (gdbsim_xfer_partial): Likewise.
11057 * remote.c (remote_write_bytes_aux): Likewise. All callers
11059 (remote_write_bytes, remote_read_bytes): Likewise. All
11061 (remote_flash_erase): Likewise. All callers updated.
11062 (remote_write_qxfer): Likewise. All callers updated.
11063 (remote_read_qxfer): Likewise. All callers updated.
11064 (remote_xfer_partial): Likewise.
11065 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11066 (rs6000_xfer_shared_libraries): Likewise.
11067 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11068 (sol_thread_xfer_partial): Likewise.
11069 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11070 (sparc_xfer_partial): Likewise.
11071 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11073 (spu_xfer_partial): Likewise.
11074 * spu-multiarch.c (spu_xfer_partial): Likewise.
11075 * tracepoint.c (tfile_xfer_partial): Likewise.
11076 * windows-nat.c (windows_xfer_memory): Likewise.
11077 (windows_xfer_shared_libraries): Likewise.
11078 (windows_xfer_partial): Likewise.
11079 * valprint.c: Replace 'target_xfer_error' with
11080 'target_xfer_status' in comments.
11082 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11084 Checked in by Joel Brobecker <brobecker@adacore.com>.
11085 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11087 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11089 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11090 function parameters.
11092 2014-02-10 Will Newton <will.newton@linaro.org>
11094 * elfread.c (elf_rel_plt_read): Look for a .got section if
11095 looking up .got.plt fails.
11096 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11097 on address passed to elf_gnu_ifunc_record_cache.
11098 (elf_gnu_ifunc_resolve_addr): Likewise.
11099 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11101 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11103 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11104 (X_RETTURN): New macro.
11105 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11107 * sparc64-tdep.c (sparc64_init_abi): Hook
11108 sparc_in_function_epilogue_p.
11110 2014-02-10 Gary Benson <gbenson@redhat.com>
11112 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11113 Rename name_matcher to symbol_matcher.
11115 2014-02-10 Gary Benson <gbenson@redhat.com>
11117 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11118 Use expand_symtabs_file_matcher_ftype and
11119 expand_symtabs_symbol_matcher_ftype.
11121 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11123 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11124 (struct ada_symbol_cache): New.
11125 (ada_free_symbol_cache): Forward declare.
11126 (struct ada_pspace_data): New.
11127 (ada_pspace_data_handle): New static global.
11128 (get_ada_pspace_data, ada_pspace_data_cleanup)
11129 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11130 (cache_space, cache): Delete, now folded inside struct
11132 (ada_get_symbol_cache): New function.
11133 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11135 (_initialize_ada_language): Remove initialization of cache_space.
11136 Move call to observer_attach_inferior_exit up, grouping it
11137 with the other observer registrations inside this function.
11138 Rename command to be more general. Add call to
11139 register_program_space_data_with_cleanup.
11141 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11143 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11144 ada_new_objfile_observer.
11145 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11146 (_initialize_tasks): Update uses of ada_new_objfile_observer
11147 and ada_tasks_normal_stop_observer.
11149 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11151 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11152 returned by the 'Length attribute to integer.
11154 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11156 * ada-lang.c (_initialize_ada_language): Initialize
11157 cache_space obstack.
11159 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11161 * ada-lang.c (HASH_SIZE): New macro.
11162 (struct cache_entry): New type.
11163 (cache_space, cache): New static globals.
11164 (ada_clear_symbol_cache, find_entry): New functions.
11165 (lookup_cached_symbol, cache_symbol): Implement.
11166 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11167 (_initialize_ada_language): Attach ada_new_objfile_observer
11168 and ada_free_objfile_observer.
11170 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11172 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11173 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11174 struct block * parameter.
11175 (ada_lookup_symbol_list_worker): Constify local variable "block".
11176 Remove cast which is no longer necessary.
11178 2014-02-10 Doug Evans <xdje42@gmail.com>
11180 Add Guile as an extension language.
11181 * NEWS: Mention Guile scripting.
11182 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11183 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11184 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11185 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11186 (CLIBS): Add GUILE_LIBS.
11187 (install-guile): New rule.
11188 (guile.o): New rule.
11189 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11190 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11191 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11192 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11193 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11194 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11195 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11196 * configure.ac: New option --with-guile.
11197 * configure: Regenerate.
11198 * config.in: Regenerate.
11199 * auto-load.c: Remove #include "python/python.h". Add #include
11200 "gdb/section-scripts.h".
11201 (source_section_scripts): Handle Guile scripts.
11202 (_initialize_auto_load): Add name of Guile objfile script to
11203 scripts-directory help text.
11204 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11205 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11206 (struct breakpoint): New member scm_bp_object.
11207 * defs.h (enum command_control_type): New value guile_control.
11208 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11210 (show_user): Update comment.
11211 (_initialize_cli_cmds): Update help text for "show user". Update help
11212 text for max-user-call-depth.
11213 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11215 (multi_line_command_p): Add guile_control.
11216 (print_command_lines): Handle guile_control.
11217 (execute_control_command, recurse_read_control_structure): Ditto.
11218 (process_next_line): Recognize "guile" commands.
11219 * disasm.c (gdb_disassemble_info): Make non-static.
11220 * disasm.h: #include "dis-asm.h".
11221 (struct gdbarch): Add forward decl.
11222 (gdb_disassemble_info): Declare.
11223 * extension.c: #include "guile/guile.h".
11224 (extension_languages): Add guile.
11225 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11226 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11227 * gdbtypes.c (get_unsigned_type_max): New function.
11228 (get_signed_type_minmax): New function.
11229 * gdbtypes.h (get_unsigned_type_max): Declare.
11230 (get_signed_type_minmax): Declare.
11231 * guile/README: New file.
11232 * guile/guile-internal.h: New file.
11233 * guile/guile.c: New file.
11234 * guile/guile.h: New file.
11235 * guile/scm-arch.c: New file.
11236 * guile/scm-auto-load.c: New file.
11237 * guile/scm-block.c: New file.
11238 * guile/scm-breakpoint.c: New file.
11239 * guile/scm-disasm.c: New file.
11240 * guile/scm-exception.c: New file.
11241 * guile/scm-frame.c: New file.
11242 * guile/scm-gsmob.c: New file.
11243 * guile/scm-iterator.c: New file.
11244 * guile/scm-lazy-string.c: New file.
11245 * guile/scm-math.c: New file.
11246 * guile/scm-objfile.c: New file.
11247 * guile/scm-ports.c: New file.
11248 * guile/scm-pretty-print.c: New file.
11249 * guile/scm-safe-call.c: New file.
11250 * guile/scm-string.c: New file.
11251 * guile/scm-symbol.c: New file.
11252 * guile/scm-symtab.c: New file.
11253 * guile/scm-type.c: New file.
11254 * guile/scm-utils.c: New file.
11255 * guile/scm-value.c: New file.
11256 * guile/lib/gdb.scm: New file.
11257 * guile/lib/gdb/boot.scm: New file.
11258 * guile/lib/gdb/experimental.scm: New file.
11259 * guile/lib/gdb/init.scm: New file.
11260 * guile/lib/gdb/iterator.scm: New file.
11261 * guile/lib/gdb/printing.scm: New file.
11262 * guile/lib/gdb/types.scm: New file.
11263 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11264 (VPATH): Add $(GUILE_SRCDIR).
11265 (GUILE_DIR): New variable.
11266 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11267 (all): Add stamp-guile dependency.
11268 (stamp-guile): New rule.
11269 (clean-guile, install-guile, uninstall-guile): New rules.
11270 (install-only): Add install-guile dependency.
11271 (uninstall): Add uninstall-guile dependency.
11272 (clean): Add clean-guile dependency.
11274 2014-02-09 Doug Evans <xdje42@gmail.com>
11276 Revert this patch (which I approved, mea culpa).
11278 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11280 * Makefile.in (all-lib): Remove.
11281 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11283 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11285 Fix Python stack corruption.
11286 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11289 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11291 * Makefile.in (all-lib): Remove.
11292 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11294 2014-02-07 Doug Evans <dje@google.com>
11296 * extension-priv.h (extension_language_script_ops): Add comment.
11297 (extension_language_ops): Add comment.
11298 (active_ext_lang_state): Fix typo in comment.
11300 2014-02-07 Pedro Alves <palves@redhat.com>
11302 PR breakpoints/16292
11303 * infrun.c (handle_signal_stop) <signal arrives while stepping
11304 over a breakpoint>: Switch back to the stepping thread.
11306 2014-02-07 Yao Qi <yao@codesourcery.com>
11308 * target.c (target_xfer_partial): Return zero if LEN is zero.
11310 2014-02-07 Yao Qi <yao@codesourcery.com>
11312 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11313 (ld_so_xfer_auxv): Likewise.
11314 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11315 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11316 * corelow.c (core_xfer_partial): Likewise.
11317 * ctf.c (ctf_xfer_partial): Likewise.
11318 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11319 (darwin_xfer_partial): Likewise.
11320 * exec.c (exec_xfer_partial): Likewise.
11321 * gnu-nat.c (gnu_xfer_partial): Likewise.
11322 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11323 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11324 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11325 * linux-nat.c (linux_xfer_siginfo): Likewise.
11326 (linux_proc_xfer_spu): Likewise.
11327 * procfs.c (procfs_xfer_partial): Likewise.
11328 * record-full.c (record_full_xfer_partial): Likewise.
11329 (record_full_core_xfer_partial): Likewise.
11330 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11331 * remote.c (remote_write_qxfer): Likewise.
11332 (remote_write_qxfer, remote_read_qxfer): Likewise.
11333 (remote_xfer_partial): Likewise.
11334 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11335 (rs6000_xfer_shared_libraries): Likewise.
11336 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11337 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11338 (spu_xfer_partial): Likewise.
11339 * target.c (memory_xfer_partial_1): Likewise.
11340 * tracepoint.c (tfile_xfer_partial): Likewise.
11341 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11342 (windows_xfer_partial): Likewise.
11344 2014-02-07 Yao Qi <yao@codesourcery.com>
11346 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11348 (core_xfer_shared_libraries_aix): Likewise.
11349 * gdbarch.c, gdbarch.h: Regenerated.
11350 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11351 ULONGEST. Change 'len_avail' type to ULONGEST.
11352 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11353 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11355 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11357 2014-02-07 Yao Qi <yao@codesourcery.com>
11359 * corefile.c (memory_error): Get 'exception' from ERR and pass
11360 'exception' to throw_error.
11362 2014-02-06 Doug Evans <xdje42@gmail.com>
11364 * configure.ac (libpython checking): Remove all but python.o from
11365 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11366 * configure: Regenerate.
11368 * Makefile.in (SFILES): Add extension.c.
11369 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11370 (COMMON_OBS): Add extension.o.
11371 * extension.h: New file.
11372 * extension-priv.h: New file.
11373 * extension.c: New file.
11375 * python/python-internal.h: #include "extension.h".
11376 (gdbpy_auto_load_enabled): Declare.
11377 (gdbpy_apply_val_pretty_printer): Declare.
11378 (gdbpy_apply_frame_filter): Declare.
11379 (gdbpy_preserve_values): Declare.
11380 (gdbpy_breakpoint_cond_says_stop): Declare.
11381 (gdbpy_breakpoint_has_cond): Declare.
11382 (void source_python_script_for_objfile): Delete.
11383 * python/python.c: #include "extension-priv.h".
11384 Delete inclusion of "observer.h".
11385 (extension_language_python): Moved here and renamed from
11386 script_language_python in py-auto-load.c.
11387 Redefined to be of type extension_language_defn.
11388 (python_extension_script_ops): New global.
11389 (python_extension_ops): New global.
11390 (struct python_env): New member previous_active.
11391 (restore_python_env): Call restore_active_ext_lang.
11392 (ensure_python_env): Call set_active_ext_lang.
11393 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11395 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11397 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11399 (gdbpy_eval_from_control_command): Renamed from
11400 eval_python_from_control_command, made static. New arg extlang.
11401 (gdbpy_source_script) Renamed from source_python_script, made static.
11403 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11404 result to int. New arg extlang.
11405 (gdbpy_source_objfile_script): Renamed from
11406 source_python_script_for_objfile, made static. New arg extlang.
11407 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11408 static. New args extlang, extlang_printers. Change result type to
11410 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11411 static. New arg extlang. Rename arg printers to extlang_printers
11412 and change type to ext_lang_type_printers *.
11413 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11414 static. Replace argument arg with extlang, extlang_printers.
11415 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11416 (!HAVE_PYTHON, source_python_script): Delete.
11417 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11418 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11419 (!HAVE_PYTHON, start_type_printers): Delete.
11420 (!HAVE_PYTHON, apply_type_printers): Delete.
11421 (!HAVE_PYTHON, free_type_printers): Delete.
11422 (_initialize_python): Delete call to observer_attach_before_prompt.
11423 (finalize_python): Set/restore active extension language.
11424 (gdbpy_finish_initialization) Renamed from
11425 finish_python_initialization, made static. New arg extlang.
11426 (gdbpy_initialized): New function.
11427 * python/python.h: #include "extension.h". Delete #include
11428 "value.h", "mi/mi-cmds.h".
11429 (extension_language_python): Declare.
11430 (GDBPY_AUTO_FILE_NAME): Delete.
11431 (enum py_bt_status): Moved to extension.h and renamed to
11432 ext_lang_bt_status.
11433 (enum frame_filter_flags): Moved to extension.h.
11434 (enum py_frame_args): Moved to extension.h and renamed to
11435 ext_lang_frame_args.
11436 (finish_python_initialization): Delete.
11437 (eval_python_from_control_command): Delete.
11438 (source_python_script): Delete.
11439 (apply_val_pretty_printer): Delete.
11440 (apply_frame_filter): Delete.
11441 (preserve_python_values): Delete.
11442 (gdbpy_script_language_defn): Delete.
11443 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11444 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11446 * auto-load.c: #include "extension.h".
11447 (GDB_AUTO_FILE_NAME): Delete.
11448 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11449 (script_language_gdb): Delete, moved to extension.c and renamed to
11450 extension_language_gdb.
11451 (source_gdb_script_for_objfile): Delete.
11452 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11453 (loaded_script): Change type of language member to
11454 struct extension_language_defn *.
11455 (init_loaded_scripts_info): Initialize
11456 unsupported_script_warning_printed.
11457 (maybe_add_script): Make static. Change type of language arg to
11458 struct extension_language_defn *.
11459 (clear_section_scripts): Reset unsupported_script_warning_printed.
11460 (auto_load_objfile_script_1): Rewrite to use extension language API.
11461 (auto_load_objfile_script): Make public. Remove support-compiled-in
11462 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11463 (source_section_scripts): Rewrite to use extension language API.
11464 (load_auto_scripts_for_objfile): Rewrite to use
11465 auto_load_scripts_for_objfile.
11466 (collect_matching_scripts_data): Change type of language member to
11467 struct extension_language_defn *.
11468 (auto_load_info_scripts): Change type of language arg to
11469 struct extension_language_defn *.
11470 (unsupported_script_warning_print): New function.
11471 (script_not_found_warning_print): Make static.
11472 (_initialize_auto_load): Rewrite construction of scripts-directory
11474 * auto-load.h (struct objfile): Add forward decl.
11475 (struct script_language): Delete.
11476 (struct auto_load_pspace_info): Add forward decl.
11477 (struct extension_language_defn): Add forward decl.
11478 (maybe_add_script): Delete.
11479 (auto_load_objfile_script): Declare.
11480 (script_not_found_warning_print): Delete.
11481 (auto_load_info_scripts): Update prototype.
11482 (auto_load_gdb_scripts_enabled): Declare.
11483 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11484 auto_load_python_scripts_enabled and made public.
11485 (script_language_python): Delete, moved to python.c.
11486 (gdbpy_script_language_defn): Delete.
11487 (info_auto_load_python_scripts): Update to use
11488 extension_language_python.
11490 * breakpoint.c (condition_command): Replace call to
11491 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11492 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11493 with call to breakpoint_ext_lang_cond_says_stop.
11494 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11495 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11496 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11497 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11499 (local_setattro): Print name of extension language with existing
11502 * valprint.c (val_print, value_print): Update to call
11503 apply_ext_lang_val_pretty_printer.
11504 * cp-valprint.c (cp_print_value): Update call to
11505 apply_ext_lang_val_pretty_printer.
11506 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11507 (gdbpy_apply_val_pretty_printer): Renamed from
11508 apply_val_pretty_printer. New arg extlang.
11509 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11511 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11512 extension language API.
11513 * cli/cli-script.c (execute_control_command): Update to call
11514 eval_ext_lang_from_control_command.
11516 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11517 enum ext_lang_bt_status values. Update call to
11518 apply_ext_lang_frame_filter.
11519 (mi_cmd_stack_list_locals): Ditto.
11520 (mi_cmd_stack_list_args): Ditto.
11521 (mi_cmd_stack_list_variables): Ditto.
11522 * mi/mi-main.c: Delete #include "python/python-internal.h".
11523 Add #include "extension.h".
11524 (mi_cmd_list_features): Replace reference to python internal variable
11525 gdb_python_initialized with call to ext_lang_initialized_p.
11527 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11528 Update to use enum ext_lang_frame_args. Update to call
11529 apply_ext_lang_frame_filter.
11530 * python/py-framefilter.c (extract_sym): Update to use enum
11531 ext_lang_bt_status.
11532 (extract_value, py_print_type, py_print_value): Ditto.
11533 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11534 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11535 (py_print_frame): Ditto.
11536 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11537 New arg extlang. Update to use enum ext_lang_bt_status.
11539 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11540 finish_python_initialization. Replace with call to
11541 finish_ext_lang_initialization.
11543 * typeprint.c (do_free_global_table): Update to call
11544 free_ext_lang_type_printers.
11545 (create_global_typedef_table): Update to call
11546 start_ext_lang_type_printers.
11547 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11548 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11549 (type_print_options): Change type of global_printers from "void *"
11550 to "struct ext_lang_type_printers *".
11552 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11553 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11554 (gdbpy_preserve_values): Renamed from preserve_python_values.
11556 (!HAVE_PYTHON, preserve_python_values): Delete.
11558 * utils.c (quit_flag): Delete, moved to extension.c.
11559 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11562 * eval.c: Delete #include "python/python.h".
11563 * main.c: Delete #include "python/python.h".
11565 * defs.h: Update comment.
11567 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11571 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11573 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11576 2014-02-05 Yao Qi <yao@codesourcery.com>
11578 * remote.c (remote_pass_signals): Remove local 'buf' and use
11580 (remote_program_signals): Likewise.
11582 2014-02-05 Yao Qi <yao@codesourcery.com>
11584 * ctf.c: Include "inferior.h" and "gdbthread.h".
11585 (CTF_PID): A new macro.
11586 (ctf_open): Call inferior_appeared and add_thread_silent.
11587 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11588 (ctf_thread_alive): New function.
11589 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11591 2014-02-05 Yao Qi <yao@codesourcery.com>
11595 2013-05-24 Yao Qi <yao@codesourcery.com>
11597 * tracepoint.c (TFILE_PID): Remove.
11598 (tfile_open): Don't add thread and inferior.
11599 (tfile_close): Don't set 'inferior_ptid'. Don't call
11600 exit_inferior_silent.
11601 (tfile_thread_alive): Remove.
11602 (init_tfile_ops): Don't set field 'to_thread_alive' of
11605 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11607 * remote.c (remote_start_remote): Call remote_check_symbols even
11608 if only symbol-file (not file) has been given.
11610 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11612 * gdbarch.sh (skip_entrypoint): New callback.
11613 * gdbarch.c, gdbarch.h: Regenerate.
11614 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11615 * infrun.c (fill_in_stop_func): Likewise.
11616 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11617 (ppc_elfv2_elf_make_msymbol_special): New function.
11618 (ppc_elfv2_skip_entrypoint): Likewise.
11619 (ppc_linux_init_abi): Install them for ELFv2.
11621 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11623 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11624 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11625 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11626 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11627 structures returned in GPRs.
11629 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11631 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11632 offset to the stack parameter list for the ELFv2 ABI.
11634 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11636 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11637 set_gdbarch_convert_from_func_ptr_addr and
11638 set_gdbarch_elf_make_msymbol_special for ELFv1.
11639 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11640 function descriptors on ELFv1.
11641 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11642 set up r12 at function entry.
11644 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11646 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11647 (struct gdbarch_tdep): New member elf_abi.
11649 * rs6000-tdep.c: Include "elf/ppc64.h".
11650 (rs6000_gdbarch_init): Detect ELF ABI version.
11652 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11654 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11655 within a register pair holding a DFP 128-bit value on little-endian.
11656 (ppc64_sysv_abi_return_value_base): Likewise.
11657 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11658 (dfp_pseudo_register_write): Likewise.
11660 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11662 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11663 offset on little-endian when passing _Decimal32.
11664 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11666 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11668 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11669 of the overlapped FP register within the VSX register on little-
11671 (efpr_pseudo_register_write): Likewise.
11673 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11675 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11676 offset on little-endian when passing small structures.
11678 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11680 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11681 (struct ppc64_sysv_argpos): New data structure.
11682 (ppc64_sysv_abi_push_float): Remove.
11683 (ppc64_sysv_abi_push_val): New function.
11684 (ppc64_sysv_abi_push_integer): Likewise.
11685 (ppc64_sysv_abi_push_freg): Likewise.
11686 (ppc64_sysv_abi_push_vreg): Likewise.
11687 (ppc64_sysv_abi_push_param): Likewise.
11688 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11689 (ppc64_sysv_abi_return_value_base): New function.
11690 (ppc64_sysv_abi_return_value): Refactor to use it.
11692 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11694 * NEWS: Document new target powerpc64le-*-linux*.
11696 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11698 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11699 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11701 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11702 register set used in ELF core dumps. Add floating-point register set.
11704 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11706 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11707 dwarf2_to_gdb[] table using symbolic constants. Adjust
11708 penultimate entry from number representing the PC register
11709 to symbolic constant representing the MDR register. Add
11710 constant for the PC register to the end of the table.
11712 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11714 * bsd-kvm.c: Include <sys/param.h>
11716 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11718 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11720 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11722 * ada-lang.h (clear_ada_sym_cache): Delete.
11724 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11726 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11728 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11730 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11731 the sigreturn register save area only if the syscall is
11734 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11736 * valops.c (value_slice): Minor reformatting.
11738 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11740 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11742 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11744 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11745 New static globals.
11746 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11747 (ada_ignore_descriptive_types_p): New static global.
11748 (find_parallel_type_by_descriptive_type): Return immediately
11749 if ada_ignore_descriptive_types_p is set.
11750 (_initialize_ada_language): Register new commands "maintenance
11751 set ada", "maintenance show ada", "maintenance set ada
11752 ignore-descriptive-types" and "maintenance show ada
11753 ignore-descriptive-types".
11754 * NEWS: Add entry for new "maint ada set/show
11755 ignore-descriptive-types" commands.
11757 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11759 * record-btrace.c (record_btrace_close): Call btrace_teardown
11762 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11764 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11767 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11769 * ada-typeprint (type_is_full_subrange_of_target_type):
11771 (print_range): Add parameter bounds_prefered_p. If not set,
11772 try printing range types using the name of their base type.
11773 (print_range_type): Add parameter bounds_prefered_p.
11774 Use it in call to print_range.
11775 (print_array_type, ada_print_type): Update calls to print_range
11776 and print_range_type.
11778 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11780 * ada-typeprint.c (print_array_type, print_choices, print_range)
11781 (print_range_bound, print_dynamic_range_bound, print_range_type):
11782 Remove declaration.
11784 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11786 * ada-typeprint.c (print_range): Add missing empty line
11787 after local declaration.
11789 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11791 * ada-valprint.c (print_optional_low_bound): Get index_type's
11792 target type for as long as it is a TYPE_CODE_RANGE.
11794 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11796 * procfs.c (procfs_make_note_section): Remove assertion and
11797 associated comment.
11799 2014-01-24 Yao Qi <yao@codesourcery.com>
11801 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11802 * corelow.c (get_core_siginfo): Likewise.
11804 2014-01-24 Yao Qi <yao@codesourcery.com>
11806 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11807 ULONGEST. Don't check 'len' is negative.
11808 (remote_write_bytes): Change type of 'len' to ULONGEST.
11810 2014-01-23 Tom Tromey <tromey@redhat.com>
11813 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11814 Handle exception from frame.block.
11815 (FrameVars.fetch_frame_locals): Likewise.
11817 2014-01-23 Tom Tromey <tromey@redhat.com>
11820 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11821 on a NULL pointer. Move "goto error" to correct place.
11823 2014-01-23 Tom Tromey <tromey@redhat.com>
11826 * python/py-framefilter.c (apply_frame_filter): Call
11827 ensure_python_env after computing gdbarch.
11829 2014-01-23 Yao Qi <yao@codesourcery.com>
11831 * target.c (raw_memory_xfer_partial): Change argument type
11832 from void * to gdb_byte *.
11833 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11835 2014-01-22 Doug Evans <dje@google.com>
11837 New gdbserver option --debug-format=timestamp.
11838 * NEWS: Mention it.
11840 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11842 * syscalls/s390x-linux.xml: New file.
11843 * syscalls/s390-linux.xml: New file.
11844 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11845 (XML_SYSCALL_FILENAME_S390X): Likewise.
11846 (op_svc): New enum value for SVC opcode.
11847 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11848 (s390_linux_get_syscall_number): New function.
11849 (s390_gdbarch_init): Register '*get_syscall_number' and the
11850 syscall xml file name.
11851 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11852 "s390-linux.xml" and "s390x-linux.xml".
11853 * NEWS: Announce new feature.
11855 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11857 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11859 2014-01-22 Pedro Alves <palves@redhat.com>
11861 * xtensa-config.c: Include defs.h.
11863 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11865 * common/common-utils.h: Add "ARI:" comment beside __func__
11868 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11870 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11871 documentation a bit.
11873 2014-01-21 Roland McGrath <mcgrathr@google.com>
11875 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11876 * configure: Regenerate.
11877 * aclocal.m4: Regenerate.
11878 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11879 New substituted variables.
11880 (install-strip): New target.
11881 (INSTALL_SCRIPT): New substituted variable.
11882 (FLAGS_TO_PASS): Add it.
11883 (install-only): Use $(INSTALL_SCRIPT) rather than
11884 $(INSTALL_PROGRAM) for gcore.
11886 2014-01-20 Tom Tromey <tromey@redhat.com>
11888 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11891 2014-01-20 Tom Tromey <tromey@redhat.com>
11893 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11894 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11895 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11896 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11897 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11898 (struct cmd_list_element) <flags>: Remove.
11899 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11900 doc_allocated>: New fields.
11901 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11903 * maint.c (maintenance_do_deprecate): Update.
11904 * top.c (execute_command): Update.
11906 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11908 * xtensa-linux-nat.c: Include asm/ptrace.h.
11910 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11912 * Makefile.in (SFILES): Add d-support.c.
11913 (COMMON_OBS): Add d-support.o.
11914 * d-lang.h (d_parse_symbol): Add comment, now defined in
11916 * d-lang.c (parse_call_convention)
11917 (parse_attributes, parse_function_types)
11918 (parse_function_args, parse_type, parse_identifier)
11919 (call_convention_p, d_parse_symbol): Move functions to ...
11920 * d-support.c: ... New file.
11922 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11924 * d-lang.h (d_parse_symbol): Add declaration.
11925 * d-lang.c (extract_identifiers)
11926 (extract_type_info): Remove functions.
11927 (parse_call_convention, parse_attributes)
11928 (parse_function_types, parse_function_args)
11929 (parse_type, parse_identifier, call_convention_p)
11930 (d_parse_symbol): New functions.
11931 (d_demangle): Use d_parse_symbol to demangle D symbols.
11933 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11935 * d-lang.h (struct builtin_d_type): New data type.
11936 (builtin_d_type): Add declaration.
11937 * d-lang.c (d_language_arch_info, build_d_types)
11938 (builtin_d_type): New functions.
11939 (enum d_primitive_types): New data type.
11940 (d_language_defn): Change c_language_arch_info to
11941 d_language_arch_info.
11942 (d_type_data): New static variable.
11943 (_initialize_d_language): Initialize d_type_data.
11945 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11947 * d-lang.h (d_main_name): Add declaration.
11948 * d-lang.c (d_main_name): New function.
11949 * symtab.c (find_main_name): Add call to d_main_name.
11951 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11953 * d-lang.c (d_language_defn): Change macro_expansion_c to
11954 macro_expansion_no.
11956 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11958 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11960 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11962 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11963 gdb_exception" declaration.
11964 * remote.c (getpkt_or_notif_sane): Likewise.
11966 2014-01-17 Doug Evans <dje@google.com>
11968 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11969 function, contents of dirnames_to_char_ptr_vec_append moved here.
11970 (delim_string_to_char_ptr_vec): New function.
11971 (dirnames_to_char_ptr_vec_append): Rewrite.
11972 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11974 2014-01-17 Doug Evans <dje@google.com>
11976 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11978 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11979 #include "common-utils.h".
11980 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11981 * common/vec.h (VEC_ASSERT_PASS): Update.
11982 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11983 (MACH_CHECK_ERROR): Update.
11985 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11987 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11989 * gdbarch.h: Regenerate.
11991 2014-01-16 Tom Tromey <tromey@redhat.com>
11993 * value.c (struct value) <regnum>: Move earlier.
11995 2014-01-16 Tom Tromey <tromey@redhat.com>
11997 * remote.c (extended_remote_create_inferior): Rename from
11998 extended_remote_create_inferior_1. Add "ops" argument. Remove
11999 old implementation.
12001 2014-01-16 Pedro Alves <palves@redhat.com>
12003 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12004 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12007 2014-01-16 Doug Evans <dje@google.com>
12009 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12011 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12013 * btrace.h (btrace_thread_flag): New.
12014 (struct btrace_thread_info) <flags>: New.
12015 * record-btrace.c (record_btrace_resume_thread)
12016 (record_btrace_find_thread_to_move, btrace_step_no_history)
12017 (btrace_step_stopped, record_btrace_start_replaying)
12018 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12019 (record_btrace_find_resume_thread): New.
12020 (record_btrace_resume, record_btrace_wait): Extend.
12021 (record_btrace_can_execute_reverse): New.
12022 (record_btrace_open): Fail in non-stop mode.
12023 (record_btrace_set_replay): Split into this, ...
12024 (record_btrace_stop_replaying): ... this, ...
12025 (record_btrace_clear_histories): ... and this.
12026 (init_record_btrace_ops): Init to_can_execute_reverse.
12027 * NEWS: Announce it.
12029 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12031 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12032 (forward_target_decr_pc_after_break)
12033 (target_decr_pc_after_break): New.
12034 * target.c (forward_target_decr_pc_after_break)
12035 (target_decr_pc_after_break): New.
12036 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12037 instead of gdbarch_decr_pc_after_break.
12038 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12039 instead of gdbarch_decr_pc_after_break.
12040 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12041 instead of gdbarch_decr_pc_after_break.
12042 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12043 instead of gdbarch_decr_pc_after_break.
12044 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12045 instead of gdbarch_decr_pc_after_break.
12046 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12047 instead of gdbarch_decr_pc_after_break.
12049 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12051 * btrace.c: Include regcache.h.
12052 (btrace_add_pc): New.
12053 (btrace_enable): Call btrace_add_pc.
12054 (btrace_is_empty): New.
12055 * btrace.h (btrace_is_empty): New.
12056 * record-btrace.c (require_btrace, record_btrace_info): Call
12059 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12061 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12062 Support delta reads.
12063 (linux_disable_btrace): Change return type.
12064 * common/linux-btrace.h (linux_read_btrace): Change parameters
12065 and return type to allow error reporting. Update users.
12066 (linux_disable_btrace): Change return type. Update users.
12067 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12069 (btrace_error): New.
12070 (btrace_block) <begin>: Comment on BEGIN == 0.
12071 * btrace.c (btrace_compute_ftrace): Start from the end of
12073 (btrace_stitch_trace, btrace_clear_history): New.
12074 (btrace_fetch): Read delta trace, return if replaying.
12075 (btrace_clear): Move clear history code to btrace_clear_history.
12076 (parse_xml_btrace): Throw an error if parsing failed.
12077 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12078 and return type to allow error reporting.
12079 (target_read_btrace): Change parameters and return type to allow
12081 * target.c (target_read_btrace): Update.
12082 * remote.c (remote_read_btrace): Support delta reads. Pass
12084 * NEWS: Announce it.
12086 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12088 * record.h (record_btrace_frame_unwind)
12089 (record_btrace_tailcall_frame_unwind): New declarations.
12090 * dwarf2-frame: Include record.h
12091 (dwarf2_frame_cfa): Throw an error for btrace frames.
12092 * record-btrace.c: Include hashtab.h.
12093 (btrace_get_bfun_name): New.
12094 (btrace_call_history): Call btrace_get_bfun_name.
12095 (struct btrace_frame_cache): New.
12097 (bfcache_hash, bfcache_eq, bfcache_new): New.
12098 (btrace_get_frame_function): New.
12099 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12100 (record_btrace_frame_this_id): Compute own id.
12101 (record_btrace_frame_prev_register): Provide PC, throw_error
12102 for all other registers.
12103 (record_btrace_frame_sniffer): Detect btrace frames.
12104 (record_btrace_tailcall_frame_sniffer): New.
12105 (record_btrace_frame_dealloc_cache): New.
12106 (record_btrace_frame_unwind): Add new functions.
12107 (record_btrace_tailcall_frame_unwind): New.
12108 (_initialize_record_btrace): Allocate cache.
12109 * btrace.c (btrace_clear): Call reinit_frame_cache.
12110 * NEWS: Announce it.
12112 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12114 * record-btrace.c (record_btrace_set_replay)
12115 (record_btrace_goto_begin, record_btrace_goto_end)
12116 (record_btrace_goto): New.
12117 (init_record_btrace_ops): Initialize them.
12118 * NEWS: Announce it.
12120 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12122 * record-btrace.c (record_btrace_find_new_threads)
12123 (record_btrace_thread_alive): New.
12124 (init_record_btrace_ops): Initialize to_find_new_threads and
12127 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12129 * record-btrace.c (record_btrace_resume): New.
12130 (record_btrace_wait): New.
12131 (init_record_btrace_ops): Initialize to_wait and to_resume.
12133 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12135 * record-btrace.c (record_btrace_xfer_partial)
12136 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12137 (record_btrace_allow_memory_access): New.
12138 (init_record_btrace_ops): Initialize new methods.
12139 * target.c (raw_memory_xfer_partial): Bail out if target reports
12140 that this memory is not available.
12142 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12144 * target.h (target_ops) <to_insert_breakpoint>
12145 <to_remove_breakpoint>: Add target_ops parameter.
12146 (forward_target_insert_breakpoint): New.
12147 (forward_target_remove_breakpoint): New.
12148 (memory_remove_breakpoint, memory_insert_breakpoint):
12149 Add target_ops parameter.
12150 * target.c (target_insert_breakpoint): Split into this and ...
12151 (forward_target_insert_breakpoint): ... this.
12152 (target_remove_breakpoint): Split into this and ...
12153 (forward_target_remove_breakpoint): ... this.
12154 (debug_to_insert_breakpoint): Add target_ops parameter.
12155 Call forward_target_insert_breakpoint.
12156 (debug_to_remove_breakpoint): Add target_ops parameter.
12157 Call forward_target_remove_breakpoint.
12158 (update_current_target): Do not inherit or default to_insert_breakpoint
12159 and to_remove_breakpoint.
12160 * corelow.c (ignore): Add target_ops parameter.
12161 * exec.c (ignore): Add target_ops parameter.
12162 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12163 Add target_ops parameter.
12164 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12165 Add target_ops parameter.
12166 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12167 Add target_ops parameter.
12168 * record-full.c (record_full_beneath_to_insert_breakpoint)
12169 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12170 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12171 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12172 (record_full_core_remove_breakpoint): Add target_ops parameter.
12174 (record_full_beneath_to_insert_breakpoint_ops)
12175 (record_full_beneath_to_remove_breakpoint_ops)
12176 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12177 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12178 tmp_to_remove_breakpoint_ops,
12179 record_full_beneath_to_insert_breakpoint_ops, and
12180 record_full_beneath_to_remove_breakpoint_ops.
12181 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12182 (m32r_remove_breakpoint): Add target_ops parameter.
12183 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12184 Add target_ops parameter.
12185 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12186 Add target_ops parameter.
12188 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12189 Markus Metzger <markus.t.metzger@intel.com>
12191 * record-btrace.c: Include frame-unwind.h.
12192 (record_btrace_frame_unwind_stop_reason)
12193 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12194 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12196 (init_record_btrace_ops): Install it.
12198 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12200 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12203 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12205 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12208 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12210 * frame-unwind.c: Include target.h.
12211 (frame_unwind_try_unwinder): New function with code from ...
12212 (frame_unwind_find_by_frame): ... here. New variable
12213 unwinder_from_target, call also target_get_unwinder)
12214 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12215 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12216 * target.h (struct target_ops): New fields to_get_unwinder and
12217 to_get_tailcall_unwinder.
12218 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12220 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12222 * record-btrace.c (record_btrace_fetch_registers)
12223 (record_btrace_store_registers)
12224 (record_btrace_to_prepare_to_store): New.
12225 (init_record_btrace_ops): Add the above.
12227 2014-01-16 Tom Tromey <tromey@redhat.com>
12229 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12230 * target.h (struct target_ops) <to_prepare_to_store>: Add
12232 (target_prepare_to_store): Add argument.
12233 * target.c (debug_to_prepare_to_store): Add argument.
12234 (update_current_target): Update.
12235 * remote.c (remote_prepare_to_store): Add 'self' argument.
12236 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12237 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12238 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12239 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12241 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12242 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12243 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12244 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12245 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12247 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12249 * btrace.h (replay) <replay>: New.
12250 (btrace_is_replaying): New.
12251 * btrace.c (btrace_clear): Free replay iterator.
12252 (btrace_is_replaying): New.
12253 * record-btrace.c (record_btrace_is_replaying): New.
12254 (record_btrace_info): Print insn number if replaying.
12255 (record_btrace_insn_history): Start at replay position.
12256 (record_btrace_call_history): Start at replay position.
12257 (init_record_btrace_ops): Init to_record_is_replaying.
12259 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12261 * record-btrace.c (record_btrace_insn_history_range): Include
12263 (record_btrace_insn_history_from): Adjust range.
12264 (record_btrace_call_history_range): Include
12266 (record_btrace_call_history_from): Adjust range.
12267 * NEWS: Announce changes.
12269 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12271 * record.h (enum record_print_flag)
12272 <record_print_indent_calls>: New.
12273 * record.c (get_call_history_modifiers): Recognize /c modifier.
12274 (_initialize_record): Document /c modifier.
12275 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12276 Reorder fields. Optionally indent the function name. Update
12278 * NEWS: Announce changes.
12280 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12282 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12284 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12286 * btrace.c (ftrace_new_function): Start counting at one.
12287 * record-btrace.c (record_btrace_info): Adjust number of calls
12289 * NEWS: Announce it.
12291 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12293 * record-btrace.c (btrace_call_history_insn_range): Print
12294 insn range as [begin, end].
12296 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12298 * btrace.h (struct btrace_func_link): New.
12299 (enum btrace_function_flag): New.
12300 (struct btrace_inst): Rename to ...
12301 (struct btrace_insn): ...this. Update all users.
12302 (struct btrace_func) <ibegin, iend>: Remove.
12303 (struct btrace_func_link): New.
12304 (struct btrace_func): Rename to ...
12305 (struct btrace_function): ...this. Update all users.
12306 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12307 (number, level, flags>: New.
12308 (struct btrace_insn_iterator): Rename to ...
12309 (struct btrace_insn_history): ...this.
12311 (struct btrace_insn_iterator, btrace_call_iterator): New.
12312 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12313 (struct btrace_target_info) <begin, end, level>
12314 <insn_history, call_history>: New.
12315 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12316 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12317 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12318 (btrace_call_number, btrace_call_begin, btrace_call_end)
12319 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12320 (btrace_find_function_by_number, btrace_set_insn_history)
12321 (btrace_set_call_history): New.
12322 * btrace.c (btrace_init_insn_iterator)
12323 (btrace_init_func_iterator, compute_itrace): Remove.
12324 (ftrace_print_function_name, ftrace_print_filename)
12325 (ftrace_skip_file): Change
12326 parameter to const.
12327 (ftrace_init_func): Remove.
12328 (ftrace_debug): Use new btrace_function fields.
12329 (ftrace_function_switched): Also consider gaining and
12330 losing symbol information).
12331 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12332 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12333 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12335 (ftrace_new_function): Move. Remove debug print.
12336 (ftrace_update_lines, ftrace_update_insns): New.
12337 (ftrace_update_function): Check for call, ret, and jump.
12338 (compute_ftrace): Renamed to ...
12339 (btrace_compute_ftrace): ...this. Rewritten to compute call
12341 (btrace_fetch, btrace_clear): Updated.
12342 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12343 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12344 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12345 (btrace_call_number, btrace_call_begin, btrace_call_end)
12346 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12347 (btrace_find_function_by_number, btrace_set_insn_history)
12348 (btrace_set_call_history): New.
12349 * record-btrace.c (require_btrace): Use new btrace thread
12351 (record_btrace_info, btrace_insn_history)
12352 (record_btrace_insn_history, record_btrace_insn_history_range):
12353 Use new btrace thread info fields and new iterator.
12354 (btrace_func_history_src_line): Rename to ...
12355 (btrace_call_history_src_line): ...this. Use new btrace
12356 thread info fields.
12357 (btrace_func_history): Rename to ...
12358 (btrace_call_history): ...this. Use new btrace thread info
12359 fields and new iterator.
12360 (record_btrace_call_history, record_btrace_call_history_range):
12361 Use new btrace thread info fields and new iterator.
12363 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12365 * frame.h (frame_id_build_unavailable_stack_special): New.
12366 * frame.c (frame_id_build_unavailable_stack_special): New.
12368 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12370 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12371 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12372 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12374 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12375 (i386_insn_is_jump, i386_jmp_p): New.
12376 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12377 insn_is_jump to gdbarch.
12378 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12379 * gdbarch.h: Regenerated.
12380 * gdbarch.c: Regenerated.
12381 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12382 (default_insn_is_jump): New.
12383 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12384 (default_insn_is_jump): New.
12386 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12388 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12390 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12391 (btrace_read_type) <btrace_read_new>: Change to ...
12392 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12394 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12396 * common/linux-btrace.c (linux_read_btrace): Free trace from
12397 previous iteration.
12399 2014-01-15 Doug Evans <dje@google.com>
12401 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12404 2014-01-15 Tom Tromey <tromey@redhat.com>
12406 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12407 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12408 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12409 (set_objfile_main_name): New function.
12410 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12411 language_of_main>: New fields.
12412 (set_objfile_main_name): Declare.
12413 * symtab.c (find_main_name): Loop over objfiles to find the main
12415 (set_main_name): Now static.
12416 (get_main_info): Add comment.
12417 * symtab.h (set_main_name): Don't declare.
12419 2014-01-15 Tom Tromey <tromey@redhat.com>
12421 * symtab.c (main_progspace_key): New global.
12422 (struct main_info): New.
12423 (name_of_main, language_of_main): Remove.
12424 (get_main_info, main_info_cleanup): New function.
12425 (set_main_name, main_name, main_language): Use get_main_info.
12426 (_initialize_symtab): Initialize main_progspace_key.
12428 2014-01-15 Tom Tromey <tromey@redhat.com>
12430 * dbxread.c (process_one_symbol): Update.
12431 * dwarf2read.c (read_partial_die): Update.
12432 * symfile.c (set_initial_language): Call main_language.
12433 * symtab.c (language_of_main): Now static.
12434 (set_main_name): Add 'lang' parameter.
12435 (find_main_name): Update.
12436 (main_language): New function.
12437 (symtab_observer_executable_changed): Update.
12438 * symtab.h (set_main_name): Update.
12439 (language_of_main): Remove.
12440 (main_language): Declare.
12442 2014-01-15 Tom Tromey <tromey@redhat.com>
12444 * symfile.c (init_entry_point_info): Use new "initialized" field.
12446 * objfiles.h (struct entry_point) <initialized>: New field.
12447 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12448 (struct objfile) <ei>: ...here. Remove.
12449 * objfiles.c (entry_point_address_query): Update.
12451 2014-01-15 Tom Tromey <tromey@redhat.com>
12453 * objfiles.c (entry_point_address_query): Relocate entry point
12455 (objfile_relocate1): Do not relocate entry point address.
12456 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12457 <the_bfd_section_index>: New field.
12458 * symfile.c (init_entry_point_info): Find the entry point's
12461 2014-01-15 Tom Tromey <tromey@redhat.com>
12463 * solib-frv.c (enable_break): Use entry_point_address_query.
12465 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12467 * NEWS: Add note on improved process record-replay on
12468 arm*-linux* targets.
12470 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12472 * arm-tdep.c (enum arm_record_result): New enum.
12473 (arm_record_unsupported_insn): New function.
12474 (arm_record_coproc_data_proc): Removed.
12475 (thumb2_record_ld_st_multiple): New function.
12476 (thumb2_record_ld_st_dual_ex_tbb): New function.
12477 (thumb2_record_data_proc_sreg_mimm): New function.
12478 (thumb2_record_ps_dest_generic): New function.
12479 (thumb2_record_branch_misc_cntrl): New function.
12480 (thumb2_record_str_single_data): New function.
12481 (thumb2_record_ld_mem_hints): New function.
12482 (thumb2_record_ld_word): New function.
12483 (thumb2_record_lmul_lmla_div): New function.
12484 (thumb2_record_decode_insn_handler): New function.
12485 (decode_insn): Add thumb32 instruction handlers.
12487 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12489 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12490 (struct arm_linux_record_tdep): Declare.
12491 (arm_canonicalize_syscall): New function.
12492 (arm_all_but_pc_registers_record): New function.
12493 (arm_linux_syscall_record): New function.
12494 (arm_linux_init_abi): Add syscall recording constructs.
12495 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12496 decoding. (arm_record_coproc_data_proc): Update arm syscall
12498 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12499 <arm_syscall_record>: New field.
12500 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12503 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12505 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12506 register for push instruction recording.
12508 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12510 * arm-tdep.c (thumb_record_misc): Update to correct logical
12511 error while recording ldm, ldmia and pop instructions.
12513 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12515 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12517 2014-01-15 Pedro Alves <palves@redhat.com>
12519 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12520 (go32_resume, go32_fetch_registers, store_register)
12521 (go32_store_registers, go32_prepare_to_store)
12522 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12523 (go32_create_inferior, go32_can_run, go32_terminal_init)
12524 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12527 2014-01-15 Tom Tromey <tromey@redhat.com>
12529 * target.h (async_callback_ftype): New typedef.
12530 (struct target_ops) <to_async>: Use it.
12532 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12534 * python/py-value.c (get_field_type): Remove unnecessary curly
12535 braces for single-statement if block.
12537 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12539 * python/py-type.c (convert_field): Add missing empty line
12540 after declarations.
12542 2014-01-14 Doug Evans <dje@google.com>
12544 * symfile.h (expand_symtabs_matching): Renamed from
12545 expand_partial_symbol_names. Update prototype.
12546 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12547 * symfile.c (expand_symtabs_matching): Renamed from
12548 expand_partial_symbol_names. New args file_matcher, kind.
12549 Rename arg fun to symbol_matcher.
12550 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12551 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12552 ada_expand_partial_symbol_name.
12553 (ada_make_symbol_completion_list): Update to call
12554 expand_symtabs_matching.
12555 (ada_add_global_exceptions): Call expand_symtabs_matching.
12556 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12557 call map_symbol_filenames.
12558 * symtab.c (sources_info): Update to call map_symbol_filenames.
12559 (search_symbols): Call expand_symtabs_matching.
12560 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12561 (default_make_symbol_completion_list_break_on): Update to call
12562 expand_symtabs_matching.
12563 (make_source_files_completion_list): Update to call
12564 map_symbol_filenames.
12566 2014-01-14 Doug Evans <dje@google.com>
12568 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12569 (expand_symtabs_symbol_matcher_ftype): New typedef.
12570 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12571 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12572 * symfile.c (expand_partial_symbol_names): Update to use
12573 expand_symtabs_symbol_matcher_ftype.
12574 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12575 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12576 Arg name_matcher renamed to symbol_matcher.
12577 * psymtab.c (recursively_search_psymtabs): Update to use
12578 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12580 (expand_symtabs_matching_via_partial): Update to use
12581 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12582 Arg name_matcher renamed to symbol_matcher.
12584 2014-01-14 Doug Evans <dje@google.com>
12586 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12587 (map_partial_symbol_filenames): Ditto.
12588 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12589 (map_partial_symbol_filenames): Ditto.
12590 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12591 (map_partial_symbol_filenames): Ditto.
12592 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12593 (map_partial_symbol_filenames): Ditto.
12594 * symtab.c: Delete #include "psymtab.h".
12596 2014-01-14 Pedro Alves <palves@redhat.com>
12597 Tom Tromey <tromey@redhat.com>
12599 * infrun.c (use_displaced_stepping): Use find_record_target
12600 instead of RECORD_IS_USED.
12601 (adjust_pc_after_break): Use record_full_is_used instead of
12603 * record-btrace.c (record_btrace_open): Call record_preopen
12604 instead of checking RECORD_IS_USED.
12605 * record-full.c (record_full_shortname)
12606 (record_full_core_shortname): New globals.
12607 (record_full_is_used): New function.
12608 (find_full_open): Call record_preopen instead of checking
12610 (init_record_full_ops): Set the target's shortname to
12611 record_full_shortname.
12612 (init_record_full_core_ops): Set the target's shortname to
12613 record_full_core_shortname.
12614 * record-full.h (record_full_is_used): Declare.
12615 * record.c (find_record_target): Make extern.
12616 (record_preopen): New function.
12617 * record.h (RECORD_IS_USED): Delete macro.
12618 (find_record_target, record_preopen): Declare functions.
12620 2014-01-14 Yao Qi <yao@codesourcery.com>
12622 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12623 'len''s type to ULONGEST.
12624 (core_xfer_shared_libraries_aix): Likewise.
12625 * gdbarch.c, gdbarch.h: Regenerated.
12626 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12627 Change type of 'len' to ULONGEST.
12628 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12629 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12631 2014-01-14 Yao Qi <yao@codesourcery.com>
12633 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12634 type of 'len' to ULONGEST.
12635 (linux_xfer_osdata_processgroups): Likewise.
12636 (linux_xfer_osdata_threads): Likewise.
12637 (linux_xfer_osdata_fds): Likewise.
12638 (linux_xfer_osdata_isockets): Likewise.
12639 (linux_xfer_osdata_shm): Likewise.
12640 (linux_xfer_osdata_sem): Likewise.
12641 (linux_xfer_osdata_msg): Likewise.
12642 (linux_common_xfer_osdata): Likewise.
12643 (struct osdata_type) <getter>: Likewise.
12644 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12647 2014-01-14 Yao Qi <yao@codesourcery.com>
12649 * target.h (target_xfer_partial_ftype): Update.
12650 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12652 * aix-thread.c (aix_thread_xfer_partial): Change type of
12653 argument 'len' to ULONGEST.
12654 * auxv.c (procfs_xfer_auxv): Likewise.
12655 (ld_so_xfer_auxv): Likewise.
12656 (memory_xfer_auxv): Likewise.
12657 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12658 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12659 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12660 * corelow.c (core_xfer_partial): Likewise.
12661 * ctf.c (ctf_xfer_partial): Likewise.
12662 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12664 (darwin_read_dyld_info): Likewise.
12665 (darwin_xfer_partial): Likewise.
12666 * exec.c (section_table_xfer_memory_partial): Likewise.
12667 (exec_xfer_partial): Likewise.
12668 * exec.h (section_table_xfer_memory_partial): Update
12670 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12671 instead of plongest.
12672 (gnu_xfer_partial): Likewise.
12673 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12674 (ia64_hpux_xfer_solib_got): Likewise.
12675 (ia64_hpux_xfer_partial): Likewise.
12676 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12677 * inf-ptrace.c (inf_ptrace_xfer_partial):
12678 * inf-ttrace.c (inf_ttrace_xfer_partial):
12679 * linux-nat.c (linux_xfer_siginfo): Likewise.
12680 (linux_nat_xfer_partial): Likewise.
12681 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12682 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12683 * monitor.c (monitor_xfer_memory): Likewise.
12684 (monitor_xfer_partial): Likewise.
12685 * procfs.c (procfs_xfer_partial): Likewise.
12686 * record-full.c (record_full_xfer_partial): Likewise.
12687 (record_full_core_xfer_partial): Likewise.
12688 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12689 instead of plongest.
12690 (gdbsim_xfer_partial): Likewise.
12691 * remote.c (remote_xfer_partial): Likewise.
12692 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12693 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12695 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12696 (rs6000_xfer_shared_libraries): Likewise.
12697 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12698 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12699 (sparc_xfer_partial): Likewise.
12700 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12701 (spu_xfer_partial): Likewise.
12702 * spu-multiarch.c (spu_xfer_partial): Likewise.
12703 * target.c (target_read_live_memory): Likewise.
12704 (memory_xfer_live_readonly_partial): Likewise.
12705 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12706 (target_xfer_partial, default_xfer_partial): Likewise.
12707 (current_xfer_partial): Likewise.
12708 * tracepoint.c (tfile_xfer_partial): Likewise.
12709 * windows-nat.c (windows_xfer_memory): Likewise. Call
12710 pulongest instead of plongest.
12711 (windows_xfer_partial): Likewise.
12712 (windows_xfer_shared_libraries): Likewise.
12714 2014-01-14 Yao Qi <yao@codesourcery.com>
12716 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12717 target_xfer_partial_ftype.
12719 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12723 * valops.c (value_struct_elt_bitpos): New function
12724 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12725 object to 'None' if the field name is an empty string ("").
12726 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12727 attribute to look for a field when 'name' is 'None'.
12728 (get_field_type): New function
12730 2014-01-13 Doug Evans <dje@google.com>
12733 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12734 (try_open_dwop_file): Ditto.
12735 * gdb_bfd.c: #include "vec.h".
12736 (bfdp): New typedef.
12737 (struct gdb_bfd_data): New member included_bfds.
12738 (gdb_bfd_unref): Unref all included bfds.
12739 (gdb_bfd_record_inclusion): New function.
12740 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12742 2014-01-13 Tom Tromey <tromey@redhat.com>
12744 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12746 2014-01-13 Tom Tromey <tromey@redhat.com>
12748 * defs.h (use_windows): Remove.
12749 * gdb.c (main): Update.
12750 * main.c (captured_main, gdb_main): Update.
12751 * main.h (struct captured_main_args) <use_windows>: Remove.
12752 * top.c (use_windows): Remove.
12754 2014-01-13 Tom Tromey <tromey@redhat.com>
12756 * defs.h (deprecated_flush_hook): Remove.
12758 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12761 * linux-thread-db.c (try_thread_db_load): Add parameter
12762 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12763 (try_thread_db_load_from_pdir_1): Move it there from here.
12764 (try_thread_db_load_from_sdir): Update caller.
12765 (try_thread_db_load_from_dir): Move it there from here.
12767 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12769 * regformats/regdat.sh: Always rewrite the register file.
12771 2014-01-13 Pedro Alves <palves@redhat.com>
12773 * Makefile.in (CHECK_HEADERS): New variable.
12774 (check-headers:): New rule.
12776 2014-01-13 Tom Tromey <tromey@redhat.com>
12778 * cli/cli-setshow.c (do_set_command): Update.
12779 * defs.h (deprecated_set_hook): Remove.
12780 * top.c (deprecated_set_hook): Remove.
12782 2014-01-13 Pedro Alves <palves@redhat.com>
12784 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12785 the tracepoint if the PC is a pseudo-register.
12787 2014-01-13 Tom Tromey <tromey@redhat.com>
12789 * defs.h (XCALLOC): Remove.
12790 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12791 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12792 * dwarf2loc.c (allocate_piece_closure): Likewise.
12793 * elfread.c (elf_symfile_segments): Likewise.
12794 (elf_symfile_segments): Likewise.
12795 * gdbtypes.c (copy_type_recursive): Likewise.
12796 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12797 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12798 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12800 * mt-tdep.c (mt_gdbarch_init): Likewise.
12801 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12803 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12804 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12805 * registry.c (registry_alloc_data): Likewise.
12806 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12807 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12808 * serial.c (serial_fdopen_ops): Likewise.
12809 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12811 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12812 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12815 2014-01-13 Tom Tromey <tromey@redhat.com>
12817 * defs.h (XMALLOC): Remove.
12818 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12819 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12820 * cli-out.c (struct ui_out *): Likewise.
12821 * cli/cli-dump.c (add_dump_command): Likewise.
12822 (add_dump_command): Likewise.
12823 * complaints.c (get_complaints): Likewise.
12824 (find_complaint): Likewise.
12825 * dwarf2-frame.c (execute_cfa_program): Likewise.
12826 * dwarf2read.c (abbrev_table_read_table): Likewise.
12827 * gdbarch.sh: Likewise.
12828 * gdbarch.c: Rebuild.
12829 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12830 * interps.c (interp_new): Likewise.
12831 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12832 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12833 * mi/mi-console.c (mi_console_file_new): Likewise.
12834 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12835 * mi/mi-out.c (mi_out_new): Likewise.
12836 * mi/mi-parse.c (mi_parse): Likewise.
12837 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12838 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12839 * observer.c (xalloc_observer_list_node): Likewise.
12840 * regcache.c (regcache_xmalloc_1): Likewise.
12841 * reggroups.c (reggroup_new): Likewise.
12842 (_initialize_reggroup): Likewise.
12843 * registry.c (register_data_with_cleanup): Likewise.
12844 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12845 * ser-base.c (serial_ttystate): Likewise.
12846 * ser-mingw.c (make_pipe_state): Likewise.
12847 * ser-pipe.c (pipe_open): Likewise.
12848 * serial.c (serial_open): Likewise.
12849 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12850 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12851 (tui_alloc_win_info): Likewise.
12852 (tui_add_content_elements): Likewise.
12853 * tui/tui-file.c (tui_file_new): Likewise.
12854 * tui/tui-out.c (tui_out_new): Likewise.
12855 * ui-file.c (mem_file_new): Likewise.
12856 * ui-out.c (push_level): Likewise.
12857 (make_cleanup_ui_out_end): Likewise.
12858 (append_header_to_list): Likewise.
12859 (ui_out_new): Likewise.
12860 * user-regs.c (user_reg_add_builtin): Likewise.
12862 2014-01-13 Tom Tromey <tromey@redhat.com>
12864 * defs.h (XZALLOC): Remove.
12865 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12866 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12867 (get_ada_tasks_inferior_data): Likewise.
12868 * auto-load.c (get_auto_load_pspace_data): Likewise.
12869 * auxv.c (get_auxv_inferior_data): Likewise.
12870 * bfd-target.c (target_bfd_reopen): Likewise.
12871 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12872 (deprecated_insert_raw_breakpoint): Likewise.
12873 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12874 * corelow.c (core_open): Likewise.
12875 * darwin-nat.c (darwin_check_new_threads): Likewise.
12876 (darwin_attach_pid): Likewise.
12877 * dummy-frame.c (dummy_frame_push): Likewise.
12878 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12879 * dwarf2loc.c (allocate_piece_closure): Likewise.
12880 * elfread.c (elf_symfile_segments): Likewise.
12881 * eval.c (ptrmath_type_p): Likewise.
12882 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12883 * gdbtypes.c (alloc_type_arch): Likewise.
12884 (alloc_type_instance): Likewise.
12885 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12886 * inf-child.c (inf_child_can_use_agent): Likewise.
12887 * inflow.c (get_inflow_inferior_data): Likewise.
12888 * infrun.c (save_infcall_suspend_state): Likewise.
12889 * jit.c (jit_reader_load): Likewise.
12890 (get_jit_objfile_data): Likewise.
12891 (get_jit_program_space_data): Likewise.
12892 (jit_object_open_impl): Likewise.
12893 (jit_symtab_open_impl): Likewise.
12894 (jit_block_open_impl): Likewise.
12895 (jit_frame_sniffer): Likewise.
12896 * linux-fork.c (add_fork): Likewise.
12897 * maint.c (make_command_stats_cleanup): Likewise.
12898 * objfiles.c (get_objfile_pspace_data): Likewise.
12899 * opencl-lang.c (struct lval_closure): Likewise.
12900 * osdata.c (osdata_start_osdata): Likewise.
12901 * progspace.c (new_address_space): Likewise.
12902 (add_program_space): Likewise.
12903 * remote-sim.c (get_sim_inferior_data): Likewise.
12904 * sh-tdep.c (sh_gdbarch_init): Likewise.
12905 * skip.c (Ignore): Likewise.
12906 (skip_delete_command): Likewise.
12907 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12908 (library_list_start_library): Likewise.
12909 (solib_aix_current_sos): Likewise.
12910 * solib-darwin.c (get_darwin_info): Likewise.
12911 (darwin_current_sos): Likewise.
12912 * solib-dsbt.c (get_dsbt_info): Likewise.
12913 * solib-ia64-hpux.c (new_so_list): Likewise.
12914 (ia64_hpux_get_solib_linkage_addr): Likewise.
12915 * solib-spu.c (append_ocl_sos): Likewise.
12916 (spu_current_sos): Likewise.
12917 * solib-svr4.c (get_svr4_info): Likewise.
12918 (svr4_keep_data_in_core): Likewise.
12919 (library_list_start_library): Likewise.
12920 (svr4_default_sos): Likewise.
12921 (svr4_read_so_list): Likewise.
12922 * solib-target.c (library_list_start_library): Likewise.
12923 (solib_target_current_sos): Likewise.
12924 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12925 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12926 * symfile.c (default_symfile_segments): Likewise.
12927 * target-descriptions.c (tdesc_data_init): Likewise.
12928 (tdesc_create_reg): Likewise.
12929 (struct tdesc_type *): Likewise.
12930 (tdesc_create_vector): Likewise.
12931 (tdesc_set_struct_size): Likewise.
12932 (struct tdesc_type *): Likewise.
12933 (tdesc_free_feature): Likewise.
12934 (tdesc_create_feature): Likewise.
12935 * windows-nat.c (windows_add_thread): Likewise.
12936 (windows_make_so): Likewise.
12937 * xml-support.c (gdb_xml_body_text): Likewise.
12938 (gdb_xml_create_parser_and_cleanup): Likewise.
12939 (xml_process_xincludes): Likewise.
12940 * xml-syscall.c (allocate_syscalls_info): Likewise.
12941 (syscall_create_syscall_desc): Likewise.
12943 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12945 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12946 function, with code from i386_stap_parse_special_token.
12947 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12948 (i386_stap_parse_special_token): Move code to the two functions
12949 above; simplify it.
12951 2014-01-09 Pedro Alves <palves@redhat.com>
12952 Hui Zhu <hui@codesourcery.com>
12955 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12956 bp_err_string. Don't mark the location shlib_disabled if the
12957 error thrown wasn't a generic or memory error. Catch errors
12958 thrown while inserting breakpoints in overlayed code. Output
12959 error message of software breakpoints.
12960 * remote.c (remote_insert_breakpoint): If this breakpoint has
12961 target-side commands but this stub doesn't support Z0 packets,
12962 throw NOT_SUPPORTED_ERROR error.
12963 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12964 * target.h (target_insert_breakpoint): Extend comment.
12965 (target_insert_hw_breakpoint): Add comment.
12967 2014-01-08 Pedro Alves <palves@redhat.com>
12969 * remote.c (remote_add_thread): Add threads silently if starting
12971 (remote_notice_new_inferior): If in all-stop, and starting up,
12972 don't call notice_new_inferior.
12973 (get_current_thread): New function, factored out from ...
12974 (add_current_inferior_and_thread): ... this. Adjust.
12975 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12976 found any thread, then select the remote's current thread as GDB's
12977 current thread too.
12979 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12981 * NEWS: Create a new section for the next release branch.
12982 Rename the section of the current branch, now that it has
12985 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12987 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12988 * version.in: Bump version to 7.7.50.DATE-cvs.
12990 2014-01-08 Yao Qi <yao@codesourcery.com>
12992 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12993 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12994 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12996 2014-01-08 Yao Qi <yao@codesourcery.com>
12998 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12999 return value of bfd_get_filename to symbol_file_add_from_bfd.
13001 2014-01-08 Pierre Muller <muller@sourceware.org>
13004 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13005 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13006 to prim_record_mininal_symbol_and_info.
13007 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13008 in call to prim_record_minimal_symbol_and_info.
13009 (read_pe_exported_syms): Set index field of section_data.
13011 2014-01-07 Andrew Pinski <apinski@cavium.com>
13013 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13014 * features/aarch64.c: Regenerate.
13016 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13018 * target.c (return_null): Define.
13019 (update_current_target): Use it instead of return_zero for
13020 functions that return a pointer.
13022 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13024 * source.c (add_path): Fix check for duplicated paths in the previously
13027 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13029 * ada-lang.c: Remove duplicated include statements.
13030 * alphabsd-nat.c: Ditto.
13031 * amd64-darwin-tdep.c: Ditto.
13032 * amd64fbsd-nat.c: Ditto.
13033 * auto-load.c: Ditto.
13035 * breakpoint.c: Ditto.
13036 * dbxread.c: Ditto.
13037 * fork-child.c: Ditto.
13038 * gdb_usleep.c: Ditto.
13039 * i386-darwin-tdep.c: Ditto.
13040 * i386fbsd-nat.c: Ditto.
13042 * inferior.c: Ditto.
13043 * jv-lang.c: Ditto.
13044 * linux-nat.c: Ditto.
13045 * linux-tdep.c: Ditto.
13046 * m68kbsd-nat.c: Ditto.
13047 * m68klinux-nat.c: Ditto.
13048 * microblaze-tdep.c: Ditto.
13049 * mips-linux-tdep.c: Ditto.
13050 * mn10300-tdep.c: Ditto.
13051 * nto-tdep.c: Ditto.
13052 * opencl-lang.c: Ditto.
13054 * printcmd.c: Ditto.
13055 * regcache.c: Ditto.
13056 * remote-m32r-sdi.c: Ditto.
13058 * symfile.c: Ditto.
13060 * tilegx-linux-nat.c: Ditto.
13061 * tilegx-tdep.c: Ditto.
13062 * tracepoint.c: Ditto.
13064 * vaxbsd-nat.c: Ditto.
13065 * windows-nat.c: Ditto.
13066 * xtensa-tdep.c: Ditto.
13068 2014-01-07 Yao Qi <yao@codesourcery.com>
13070 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13072 2014-01-07 Yao Qi <yao@codesourcery.com>
13073 Joel Brobecker <brobecker@adacore.com>
13075 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13076 (pdc_write_regs): Likewise.
13077 (fetch_regs_kernel_thread): Likewise.
13078 (store_regs_kernel_thread): Likewise.
13080 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13082 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13083 tagged type objects to their actual type.
13085 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13087 * ada-valprint.c (print_field_values): Add "language" parameter.
13088 Update calls to print_field_values and print_variant_part.
13089 Pass new parameter "language" in call to val_print instead
13090 of "current_language". Replace call to ada_val_print by call
13092 (print_variant_part): Add "language" parameter.
13093 (ada_val_print_struct_union): Update call to print_field_values.
13095 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13097 * ada-valprint.c (ui_memcpy): Delete.
13098 (ada_print_floating): Update documentation. Add empty line
13099 between between function documentation and implementation.
13100 Delete variable "buffer". Use ui_file_xstrdup in place of
13101 ui_file_put. Minor adjustments following this change.
13103 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13105 * ada-valprint.c (ada_val_print_string): New function,
13106 extracted from ada_val_print_array.
13107 (ada_val_print_array): Replace extracted code by call
13108 to ada_val_print_string followed by a return. Move
13109 "else" branch to the function's top block.
13111 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13113 * ada-valprint.c (ada_val_print_array): Move implementation
13114 down. Rename parameter "offset" and "val" into "offset_aligned"
13115 and "original_value" respectively. Add parameter "offset".
13117 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13119 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13120 re-organizing the code. Change the "???" message printed
13121 when target type is a TYPE_CODE_UNDEF into
13122 "<ref to undefined type>".
13124 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13126 * ada-valprint.c (print_record): Delete, implementation inlined...
13127 (ada_val_print_struct_union): ... here. Remove call to
13128 ada_check_typedef in inlined implementation.
13130 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13132 * ada-valprint.c (ada_val_print_gnat_array): New function,
13133 extracted from ada_val_print_1;
13134 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13135 (ada_val_print_flt, ada_val_print_struct_union)
13136 (ada_val_print_ref): Likewise.
13137 (ada_val_print_1): Delete variables i and elttype.
13138 Replace extracted-out code by call to corresponding
13141 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13143 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13145 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13147 * ada-valprint.c (ada_val_print_1): Replace calls to
13148 ada_val_print_1 by calls to val_print.
13150 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13152 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13153 Update calls to self accordingly. Replace calls to c_val_print
13154 by calls to val_print.
13156 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13158 * ada-valprint.c (print_record): Delete declaration.
13159 (adjust_type_signedness, ada_val_print_1): Likewise.
13160 (ada_val_print): Move function implementation down.
13161 (print_variant_part, print_field_values, print_record):
13162 Move function implementation up.
13164 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13166 * python/py-type.c (typy_get_name): New function.
13167 (type_object_getset): Add entry for attribute "name".
13168 * NEWS: Add entry mentioning this new attribute.
13170 2014-01-07 Yao Qi <yao@codesourcery.com>
13172 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13175 2014-01-07 Yao Qi <yao@codesourcery.com>
13177 * gnu-nat.c (info_port_rights): Add qualifier const to
13180 2014-01-07 Yao Qi <yao@codesourcery.com>
13182 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13184 2014-01-07 Yao Qi <yao@codesourcery.com>
13186 * gnu-nat.c (make_inf) Update declaration.
13187 (make_inf): Make it static.
13188 (inf_set_traced): Likewise.
13189 (inf_port_to_thread, inf_task_died_status): Likewise.
13191 2014-01-07 Yao Qi <yao@codesourcery.com>
13193 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13195 2014-01-07 Yao Qi <yao@codesourcery.com>
13197 * gnu-nat.c (_initialize_gnu_nat): Declare.
13199 2014-01-07 Yao Qi <yao@codesourcery.com>
13201 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13203 (struct gdbarch_info) <byte_order>: Change type to
13205 <byte_order_for_code>: Likewise.
13206 * gdbarch.c, gdbarch.h: Regenerated.
13208 2014-01-06 Sasha Smundak <asmundak@google.com>
13210 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13212 2014-01-06 Tom Tromey <tromey@redhat.com>
13214 * doublest.c (convert_doublest_to_floatformat): Use const, not
13216 * somread.c (som_symtab_read): Likewise.
13218 2014-01-07 Hui Zhu <hui@codesourcery.com>
13220 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13221 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13222 (gdb_bfd_fopen): Ditto.
13223 (gdb_bfd_openr): Ditto.
13224 (gdb_bfd_openw): Ditto.
13225 (gdb_bfd_openr_iovec): Ditto.
13226 (gdb_bfd_fdopenr): Ditto.
13227 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13228 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13230 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13232 * symfile-mem.c (symbol_file_add_from_memory): Removed
13233 gdb_bfd_stash_filename.
13235 2014-01-03 Doug Evans <dje@google.com>
13237 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13240 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13242 Update year range in copyright notice of all files.
13244 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13246 * top.c (print_gdb_version): Set copyright year to 2014.
13248 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13250 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13252 For older changes see ChangeLog-2013.
13258 version-control: never