1 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
5 (aarch64_linux_iterate_over_regset_sections): New.
6 (aarch64_linux_init_abi): Adjust gdbarch initialization.
8 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
10 * fbsd-tdep.c: New file.
11 * fbsd-tdep.h: New file.
12 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
13 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
14 (ALLDEPFILES): Add fbsd-tdep.c.
16 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
18 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
20 * gdbarch.h: Regenerate.
21 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
23 (get_core_register_section): Add parameter 'regset' and use it, if
24 set. Add parameter 'min_size' and verify the bfd section size
26 (get_core_registers_cb): Add parameter 'regset' and pass it to
27 get_core_register section. For the "standard" register sections
28 ".reg" and ".reg2", set an appropriate default for human_name.
29 (get_core_registers): Don't abort when the gdbarch has an iterator
30 but no regset_from_core_section. Add NULL/0 for parameters
31 'regset'/'min_size' in calls to get_core_register_section.
32 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
33 'regset' and use it instead of calling the
34 regset_from_core_section gdbarch method.
35 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
36 * i386-tdep.c (i386_supply_xstateregset)
37 (i386_collect_xstateregset, i386_xstateregset): Moved to
39 (i386_regset_from_core_section): Drop handling for .reg-xfp and
41 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
42 core file support only if the regset iterator hasn't been set.
43 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
44 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
45 Moved from i386-tdep.c and renamed to *_linux*.
46 (i386_linux_iterate_over_regset_sections): Add regset parameter to
47 each callback invocation. Allow any .reg-xstate size when reading
49 * amd64-tdep.c (amd64_supply_xstateregset)
50 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
52 (amd64_regset_from_core_section): Remove.
53 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
54 install an amd64-specific regset_from_core_section gdbarch method.
55 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
56 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
57 Moved from amd64-tdep.c and renamed to *_linux*.
58 (amd64_linux_iterate_over_regset_sections): Add regset parameter
59 to each callback invocation. Allow any .reg-xstate size when
60 reading from a core file.
61 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
62 (arm_linux_iterate_over_regset_sections): Add regset parameter to
63 each callback invocation.
64 (arm_linux_init_abi): No longer set the regset_from_core_section
66 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
67 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
68 each callback invocation.
69 (ppc_linux_init_abi): No longer set the regset_from_core_section
71 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
72 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
73 (s390_regset_from_core_section): Remove.
74 (s390_iterate_over_regset_sections): Add regset parameter to each
76 (s390_gdbarch_init): No longer set the regset_from_core_section
77 gdbarch method. Drop initialization of deleted tdep fields.
79 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
81 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
82 (amd64_linux_iterate_over_regset_sections): New.
83 (amd64_linux_init_abi_common): Don't install the regset section
84 list, but the new iterator in gdbarch.
85 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
86 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
87 (arm_linux_iterate_over_regset_sections): ...here. New function.
88 (arm_linux_init_abi): Set iterator instead of section list.
89 * corelow.c (get_core_registers_cb): New function, logic moved
91 (get_core_registers): ...loop body here. Use new iterator method
92 instead of walking through the regset section list.
93 * gdbarch.sh: Remove 'core_regset_sections'. New method
94 'iterate_over_regset_sections'. New typedef
95 'iterate_over_regset_sections_cb'.
96 * gdbarch.c: Regenerate.
97 * gdbarch.h: Likewise.
98 * i386-linux-tdep.c (i386_linux_regset_sections)
99 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
101 (i386_linux_iterate_over_regset_sections): New.
102 (i386_linux_init_abi): Don't choose a regset section list, but
103 install new iterator in gdbarch.
104 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
105 (linux_collect_regset_section_cb): New function, logic moved
107 (linux_collect_thread_registers): ...loop body here. Use iterator
108 method instead of walking through list.
109 (linux_make_corefile_notes_1): Check for presence of iterator
110 method instead of regset section list.
111 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
112 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
113 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
114 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
115 (ppc_linux_iterate_over_regset_sections): ...here. New function.
116 (ppc_linux_init_abi): Don't choose from above regset section
117 lists, but install new iterator in gdbarch.
118 * regset.h (struct core_regset_section): Remove.
119 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
120 have_linux_v1, have_linux_v2, and have_tdb.
121 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
122 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
123 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
124 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
125 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
126 (s390_iterate_over_regset_sections): ...here. New function. Use
128 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
129 regset section lists, but install new iterator.
131 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
133 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
135 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
137 * progspace.c (print_program_space): Don't prune program spaces
138 before printing them.
140 2014-09-25 Pedro Alves <palves@redhat.com>
142 * infrun.c (user_visible_resume_ptid): Don't check
143 singlestep_breakpoints_inserted_p.
145 2014-09-25 Pedro Alves <palves@redhat.com>
147 * breakpoint.c (should_be_inserted): Add debug output.
149 2014-09-25 Pedro Alves <palves@redhat.com>
151 * infrun.c (stepping_past_instruction_at)
152 (clear_exit_convenience_vars): Point at infrun.h instead of
154 (handle_signal_stop): Fix typo.
156 2014-09-24 Yao Qi <yao@codesourcery.com>
158 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
161 2014-09-22 Gary Benson <gbenson@redhat.com>
163 * target.c (target_stop): Updated comment.
165 2014-09-22 Gary Benson <gbenson@redhat.com>
167 * target/target.h (target_stop_ptid): Renamed as...
168 (target_stop_and_wait): New function. Updated comment.
170 (target_continue_ptid): Renamed as...
171 (target_continue_no_signal): New function. Updated comment.
174 2014-09-22 Pedro Alves <palves@redhat.com>
176 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
178 * breakpoint.c (enum ugll_insert_mode): New enum.
179 (always_inserted_mode): Now a plain boolean.
180 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
181 (breakpoints_always_inserted_mode): Delete.
182 (breakpoints_should_be_inserted_now): New function.
183 (insert_breakpoints): Pass UGLL_INSERT to
184 update_global_location_list instead of calling
185 insert_breakpoint_locations manually.
186 (create_solib_event_breakpoint_1): New, factored out from ...
187 (create_solib_event_breakpoint): ... this.
188 (create_and_insert_solib_event_breakpoint): Use
189 create_solib_event_breakpoint_1 instead of calling
190 insert_breakpoint_locations manually.
191 (update_global_location_list): Change parameter type from boolean
192 to enum ugll_insert_mode. All callers adjusted. Adjust to use
193 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
194 (update_global_location_list_nothrow): Change parameter type from
195 boolean to enum ugll_insert_mode.
196 (_initialize_breakpoint): "breakpoint always-inserted" option is
197 now a boolean command. Update help text.
198 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
199 (breakpoints_should_be_inserted_now): New declaration.
200 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
201 Remove breakpoints_always_inserted_mode check.
202 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
203 * remote.c (remote_start_remote): Likewise.
205 2014-09-22 Pedro Alves <palves@redhat.com>
207 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
208 (insert_breakpoints): Don't call insert_breakpoint_locations here.
209 Instead, pass UGLL_INSERT to update_global_location_list.
210 (update_global_location_list): Change parameter type from boolean
211 to enum ugll_insert_mode. All callers adjusted. Adjust to use
212 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
213 (create_solib_event_breakpoint_1): New, factored out from ...
214 (create_solib_event_breakpoint): ... this.
215 (create_and_insert_solib_event_breakpoint): Use
216 create_solib_event_breakpoint_1 instead of calling
217 insert_breakpoint_locations manually.
218 (update_global_location_list): Handle UGLL_INSERT.
220 2014-09-22 Pedro Alves <palves@redhat.com>
222 * breakpoint.c (enum ugll_insert_mode): New enum.
223 (update_global_location_list)
224 (update_global_location_list_nothrow): Change parameter type from
225 boolean to enum ugll_insert_mode. All callers adjusted.
227 2014-09-19 Joel Brobecker <brobecker@adacore.com>
229 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
230 SystemTap support in GDB.
232 2014-09-19 Don Breazeal <donb@codesourcery.com>
234 * linux-nat.c (linux_handle_extended_wait): Call
235 linux_ptrace_get_extended_event.
236 (wait_lwp): Call linux_is_extended_waitstatus.
237 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
238 and linux_is_extended_waitstatus.
239 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
240 linux_ptrace_get_extended_event.
241 (linux_ptrace_get_extended_event): New function.
242 (linux_is_extended_waitstatus): New function.
243 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
244 (linux_is_extended_waitstatus): New declarations.
246 2014-09-19 Yao Qi <yao@codesourcery.com>
248 * dwarf2read.c (dwarf_decode_lines): Update declaration.
249 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
250 comments. Callers update.
251 (dwarf_decode_lines): Likewise.
252 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
253 comments. Skip the line table if 'lowpc' is greater than
254 'address'. Don't check
255 dwarf2_per_objfile->has_section_at_zero.
257 2014-09-18 Doug Evans <dje@google.com>
259 * NEWS: Mention new "producer" attribute of gdb.Symtab.
260 * python/py-symtab.c (stpy_get_producer): New function.
261 (symtab_object_getset): Add "producer" attribute.
263 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
266 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
267 (do_captured_read_memory_integer): Remove.
268 (safe_read_memory_integer): Use target_read_memory directly instead
269 of catching errors in do_captured_read_memory_integer.
271 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
273 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
276 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
278 * objc-lang.c (find_implementation_from_class): Remove dead code.
280 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
283 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
284 "fprintf_unfiltered (gdb_stdlog...)".
286 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
289 * breakpoint.h (struct watchpoint): New fields val_bitpos and
291 * breakpoint.c (watch_command_1): Use these fields to retain
292 bitfield information.
293 (extract_bitfield_from_watchpoint_value): New function.
294 (watchpoint_check): Use it.
295 (update_watchpoint): Use it. Optimize the address and length of a
296 HW watchpoint pointing to a bitfield.
297 * value.h (unpack_value_bitfield): New prototype.
298 * value.c (unpack_value_bitfield): Make extern.
300 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
302 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
304 * gnu-nat.c (inf_threads): New function.
305 * gnu-nat.h (inf_threads_ftype): New typedef.
306 (inf_threads): New declaration.
307 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
308 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
309 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
310 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
311 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
312 (i386_gnu_dr_get_control): New functions.
313 (reg_addr): New structure.
314 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
315 i386 debugging register hooks.
316 * NEWS: Mention this.
318 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
320 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
321 vector data transfer instructions.
322 (arm_record_coproc_data_proc): Updated.
324 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
326 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
327 arm_record_exreg_ld_st_insn.
328 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
331 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
333 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
334 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
335 processing instructions.
337 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
339 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
340 for advance SIMD struct ld/st insn.
341 (thumb2_record_decode_insn_handler): Replace stub handler with
342 thumb2_record_asimd_struct_ld_st.
344 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
346 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
347 for asimd, vfp and coprocessor insns.
348 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
349 and coprocessor insns.
350 (thumb2_record_coproc_insn): New function.
351 (thumb2_record_decode_insn_handler): Update coprocessor insns record
353 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
356 2014-09-13 Doug Evans <xdje42@gmail.com>
358 * NEWS: Mention new "queue-signal" command.
359 * infcmd.c (queue_signal_command): New function.
360 (_initialize_infcmd): Add new queue-signal command.
362 2014-09-13 Doug Evans <xdje42@gmail.com>
364 * linux-nat.c (wait_lwp): Add debugging printf.
365 (linux_nat_wait_1): Ditto.
367 2014-09-12 Pedro Alves <palves@redhat.com>
369 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
370 (create_and_insert_solib_event_breakpoint): New functions.
371 * breakpoint.h (create_and_insert_solib_event_breakpoint)
372 (remove_solib_event_breakpoints_at_next_stop): New declarations.
373 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
374 (remove_dbx_link_breakpoint): Delete function.
375 (insert_dbx_link_bpt_in_file): Use
376 create_and_insert_solib_event_breakpoint instead of
377 deprecated_insert_raw_breakpoint.
378 (procfs_wait): Don't check whether we hit __dbx_link here.
379 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
381 * solib-irix.c (base_breakpoint): Delete global.
382 (disable_break): Delete function.
383 (enable_break): Use create_solib_event_breakpoint
384 instead of deprecated_insert_raw_breakpoint.
385 (irix_solib_handle_event): New function.
386 (irix_solib_create_inferior_hook): Don't run the target or disable
387 the mapping-complete breakpoint here.
388 (_initialize_irix_solib): Install irix_solib_handle_event as
389 so_ops->handle_event hook.
391 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
392 Ulrich Weigand <uweigand@de.ibm.com>
395 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
396 instead of read_memory_unsigned_integer.
398 2014-09-12 Gary Benson <gbenson@redhat.com>
400 * nat/linux-waitpid.c: Include common-defs.h.
401 [GDBSERVER]: Add FIXME comment.
402 [!GDBSERVER]: Don't include defs.h or signal.h.
403 (linux_debug) [!GDBSERVER]: Remove empty block.
405 2014-09-12 Gary Benson <gbenson@redhat.com>
407 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
408 Don't include defs.h or server.h.
410 2014-09-12 Gary Benson <gbenson@redhat.com>
412 * nat/linux-btrace.c: Include common-defs.h.
413 Don't include defs.h, server.h or gdbthread.h.
414 * nat/linux-btrace.h (struct target_ops): New forward declaration.
416 2014-09-12 Gary Benson <gbenson@redhat.com>
418 * common/agent.c: Include common-defs.h.
419 Don't include defs.h or server.h.
420 * common/buffer.c: Likewise.
421 * common/common-debug.c: Likewise.
422 * common/common-utils.c: Likewise.
423 * common/errors.c: Likewise.
424 * common/filestuff.c: Likewise.
425 * common/format.c: Likewise.
426 * common/gdb_vecs.c: Likewise.
427 * common/print-utils.c: Likewise.
428 * common/ptid.c: Likewise.
429 * common/rsp-low.c: Likewise.
430 * common/signals.c: Likewise.
431 * common/vec.c: Likewise.
432 * common/xml-utils.c: Likewise.
433 * nat/linux-osdata.c: Likewise.
434 * nat/linux-procfs.c: Likewise.
435 * nat/linux-ptrace.c: Likewise.
436 * nat/mips-linux-watch.c: Likewise.
437 * target/waitstatus.c: Likewise.
439 2014-09-12 Tom Tromey <tromey@redhat.com>
440 Gary Benson <gbenson@redhat.com>
442 * common/common-regcache.h: New file.
443 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
444 * regcache.h: Include common-regcache.h.
445 (regcache_read_pc): Don't declare.
446 * regcache.c (get_thread_regcache_for_ptid): New function.
447 * nat/linux-btrace.c: Don't include regcache.h.
448 Include common-regcache.h.
449 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
451 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
453 * regcache.h (struct regset): Declare.
455 2014-09-11 Pedro Alves <palves@redhat.com>
458 * main.c: Include "infrun.h".
459 (catch_command_errors, catch_command_errors_const): Wait for the
460 foreground command to complete.
461 * top.c (maybe_wait_sync_command_done): New function, factored out
463 (maybe_wait_sync_command_done): ... here.
464 * top.h (maybe_wait_sync_command_done): New declaration.
466 2014-09-11 Tom Tromey <tromey@redhat.com>
467 Gary Benson <gbenson@redhat.com>
469 * common/symbol.h: New file.
470 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
471 * minsyms.c (find_minimal_symbol_address): New function.
472 * common/agent.c: Include common/symbol.h.
473 [!GDBSERVER]: Don't include objfiles.h.
474 (agent_look_up_symbols): Use find_minimal_symbol_address.
476 2014-09-11 Gary Benson <gbenson@redhat.com>
478 * target/target.h (target_stop_ptid, target_continue_ptid):
480 * target.c (target_stop_ptid, target_continue_ptid): New
482 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
483 (agent_run_command): Always use target_stop_ptid and
484 target_continue_ptid.
486 2014-09-11 Tom Tromey <tromey@redhat.com>
487 Gary Benson <gbenson@redhat.com>
489 * target/target.h: New file.
490 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
491 * target.h: Include target/target.h.
492 (target_read_memory, target_write_memory): Don't declare.
493 * target.c (target_read_uint32): New function.
494 * common/agent.c: Include target/target.h.
495 [!GDBSERVER]: Don't include target.h.
496 (helper_thread_id): Type changed to uint32_t.
497 (agent_get_helper_thread_id): Use target_read_uint32.
498 (agent_run_command): Always use target_read_memory and
500 (agent_capability): Type changed to uint32_t.
501 (agent_capability_check): Use target_read_uint32.
503 2014-09-11 Gary Benson <gbenson@redhat.com>
505 * common/common-debug.h (show_debug_regs): Declare.
506 * common/common-debug.c (show_debug_regs): Define.
507 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
508 all uses with show_debug_regs. Replace all uses that considered
509 debug_hw_points as a multi-value integer with straight boolean
511 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
512 with show_debug_regs.
513 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
514 all uses with show_debug_regs.
515 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
516 uses with show_debug_regs.
518 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
520 * findvar.c (address_from_register): Handle targets requiring
521 a special conversion routine even for plain pointer types.
523 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
525 * rs6000-nat.c (exec_one_dummy_insn): Remove.
526 (store_register): Do not call exec_one_dummy_insn.
528 2014-09-10 Joel Brobecker <brobecker@adacore.com>
530 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
531 dereference it first. Use value_enclosing_type instead of
533 (ada_array_length): Likewise.
535 2014-09-10 Joel Brobecker <brobecker@adacore.com>
537 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
538 Adjust function implementation and documentation accordingly.
539 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
540 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
541 Update call to ada_value_ptr_subscript.
543 2014-09-10 Joel Brobecker <brobecker@adacore.com>
545 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
546 instead of VAL's type.
548 2014-09-10 Joel Brobecker <brobecker@adacore.com>
550 * amd64-linux-nat.c: Add <sys/uio.h> #include.
552 2014-09-09 Doug Evans <xdje42@gmail.com>
555 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
556 last parameter to pkg-config, not first.
557 * configure.ac: Pass --with-guile provided pkg-config path to
558 GDB_GUILE_PROGRAM_NAMES.
559 * configure: Regenerate.
561 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
563 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
566 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
568 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
569 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
570 the list of sections determining GDB_OSABI_IRIX.
572 2014-09-09 James Hogan <james.hogan@imgtec.com>
574 * MAINTAINERS (Write After Approval): Add "James Hogan".
576 2014-09-09 James Hogan <james.hogan@imgtec.com>
578 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
580 2014-09-09 Joel Brobecker <brobecker@adacore.com>
582 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
584 2014-09-08 Doug Evans <xdje42@gmail.com>
587 * guile.c: #include <signal.h>.
588 (_initialize_guile): Block SIGCHLD while initializing Guile.
590 Replaces the following, which is reverted.
592 2014-07-26 Doug Evans <xdje42@gmail.com>
595 * configure.ac: Add check for header gc/gc.h.
596 Add check for function setenv.
597 * configure: Regenerate.
598 * config.in: Regenerate.
599 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
601 2014-09-08 Doug Evans <xdje42@gmail.com>
603 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
604 with named constant. Fix style of pointer comparison.
605 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
607 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
610 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
611 decide whether we display the command on "show user".
612 * cli/cli-script.c (show_user_1): Only verify cmdlines after
613 printing command name.
614 * cli/cli-decode.h (cli_user_command_p): Declare new function.
615 * cli/cli-decode.c (cli_user_command_p): Create helper function
616 to verify whether cmd_list_element is a user-defined command.
618 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
621 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
622 Fix goto out of TRY_CATCH.
624 2014-09-06 Doug Evans <xdje42@gmail.com>
625 Tom Tromey <tromey@redhat.com>
628 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
629 $_any_caller_matches.
630 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
631 * python/lib/gdb/function/caller_is.py: New file.
633 2014-09-06 Doug Evans <xdje42@gmail.com>
635 * infcmd.c (program_info): Fix typo.
637 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
640 * stap-probe.c (stap_parse_single_operand): Delete unused variable
641 'number'. New variable 'has_digit'. Rewrite code to deal with
642 subexpressions on SDT probes.
644 2014-09-04 Pedro Alves <palves@redhat.com>
646 * c-exp.y (parse_number): Skip handling base-switching prefixes if
647 the input is only one character long.
649 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
652 * f-valprint.c (f_val_print): Specify the correct print option to
653 use when printing integer values.
655 2014-09-04 Gary Benson <gbenson@redhat.com>
657 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
658 Remove code to cope with LWPs wrapped as PIDs.
659 Add assertions to ensure no wrapped LWPs are passed.
661 2014-09-04 Pedro Alves <palves@redhat.com>
663 * value.c (value_ranges_copy_adjusted): New function, factored out
665 (value_contents_copy_raw): ... here.
666 (unpack_value_bits_as_long_1): Rename back to ...
667 (unpack_bits_as_long): ... this. Remove 'original_value' and
668 'result' parameters. Change return type to LONGEST.
669 (unpack_value_bits_as_long): Delete.
670 (unpack_value_field_as_long_1): Delete.
671 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
672 (unpack_value_bitfield): New function.
673 (value_field_bitfield): Reimplement using unpack_value_bitfield.
674 (value_fetch_lazy): Use unpack_value_bitfield.
675 * value.h (unpack_value_bits_as_long): Delete declaration.
677 2014-09-03 Sasha Smundak <asmundak@google.com>
679 * python/py-frame.c (frapy_read_register): New function.
681 2014-09-03 James Hogan <james.hogan@imgtec.com>
683 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
684 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
686 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
689 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
691 (add_cmd): Set "completer_handle_brkchars" to NULL.
692 * cli/cli-decode.h (struct cmd_list_element)
693 <completer_handle_brkchars>: New field.
694 * command.h (completer_ftype_void): New typedef.
695 (set_cmd_completer_handle_brkchars): New prototype.
696 * completer.c (set_gdb_completion_word_break_characters): New
698 (complete_line_internal): Call "completer_handle_brkchars"
699 callback from command.
700 * completer.h: Include "command.h".
701 (set_gdb_completion_word_break_characters): New prototype.
702 * python/py-cmd.c (cmdpy_completer_helper): New function.
703 (cmdpy_completer_handle_brkchars): New function.
704 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
705 (cmdpy_init): Set completer_handle_brkchars to
706 cmdpy_completer_handle_brkchars.
708 2014-09-03 Gary Benson <gbenson@redhat.com>
710 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
711 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
712 Loop conditions changed to equivalent form.
713 (struct x86_debug_reg_state): Updated dr_ref_count comment.
714 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
715 ALL_DEBUG_ADDRESS_REGISTERS.
717 2014-09-03 Joel Brobecker <brobecker@adacore.com>
719 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
722 2014-09-02 Doug Evans <dje@google.com>
724 * typeprint.c (find_global_typedef): Fix comment.
726 2014-09-02 Gary Benson <gbenson@redhat.com>
728 * i386-nat.h: Renamed as...
729 * x86-nat.h: New file. All type, function and variable name
730 prefixes changed from "i386_" to "x86_". All references updated.
731 * i386-nat.c: Renamed as...
732 * x86-nat.c: New file. All type, function and variable name
733 prefixes changed from "i386_" to "x86_". All references updated.
734 * common/i386-xstate.h: Renamed as...
735 * common/x86-xstate.h: New file. All type, function and variable
736 name prefixes changed from "i386_" to "x86_". All references
738 * nat/i386-cpuid.h: Renamed as...
739 * nat/x86-cpuid.h: New file. All type, function and variable name
740 prefixes changed from "i386_" to "x86_". All references updated.
741 * nat/i386-gcc-cpuid.h: Renamed as...
742 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
743 name prefixes changed from "i386_" to "x86_". All references
745 * nat/i386-dregs.h: Renamed as...
746 * nat/x86-dregs.h: New file. All type, function and variable name
747 prefixes changed from "i386_" to "x86_". All references updated.
748 * nat/i386-dregs.c: Renamed as...
749 * nat/x86-dregs.c: New file. All type, function and variable name
750 prefixes changed from "i386_" to "x86_". All references updated.
752 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
754 * varobj.c (_initialize_varobj): Move to the end of file.
756 2014-08-29 Gary Benson <gbenson@redhat.com>
758 * common/common-exceptions.h: New file.
759 * common/common-exceptions.c: Likewise.
760 * Makefile.in (SFILES): Add common/common-exceptions.c.
761 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
762 (COMMON_OBS): Add common-exceptions.o.
763 (common-exceptions.o): New rule.
764 * exceptions.h (common-exceptions.h): Include.
765 (gdb_setjmp.h): Do not include.
766 (return_reason): Moved to common-exceptions.h.
767 (enum return_reason): Likewise.
768 (RETURN_MASK): Likewise.
769 (typedef return_mask): Likewise.
770 (enum errors): Likewise.
771 (struct gdb_exception): Likewise.
772 (exceptions_state_mc_init): Likewise.
773 (exceptions_state_mc_action_iter): Likewise.
774 (exceptions_state_mc_action_iter_1): Likewise.
775 (TRY_CATCH): Likewise.
776 (throw_exception): Likewise.
777 (throw_verror): Likewise.
778 (throw_vquit): Likewise.
779 (throw_error): Likewise.
780 (throw_quit): Likewise.
781 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
782 (enum catcher_action): Likewise.
783 (struct catcher): Likewise.
784 (current_catcher): Likewise.
785 (catcher_list_size): Likewise.
786 (exceptions_state_mc_init): Likewise.
787 (catcher_pop): Likewise.
788 (exceptions_state_mc): Likewise.
789 (exceptions_state_mc_action_iter): Likewise.
790 (exceptions_state_mc_action_iter_1): Likewise.
791 (throw_exception): Likewise.
792 (exception_messages): Likewise.
793 (exception_messages_size): Likewise.
794 (throw_it): Likewise.
795 (throw_verror): Likewise.
796 (throw_vquit): Likewise.
797 (throw_error): Likewise.
798 (throw_quit): Likewise.
799 (prepare_to_throw_exception): New function.
801 2014-08-29 Gary Benson <gbenson@redhat.com>
803 * common/gdb_setjmp.h: New file.
804 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
805 * configure.ac: Move sigsetjmp check...
806 * common/common.m4: ...here.
807 * configure: Regenerate.
808 * cp-support.c (SIGJMP_BUF): Delete.
809 (SIGSETJMP): Likewise.
810 (SIGLONGJMP): Likewise.
811 * exceptions.h (gdb_setjmp.h): Include.
812 (setjmp.h): Do not include.
813 (EXCEPTIONS_SIGJMP_BUF): Delete.
814 (EXCEPTIONS_SIGSETJMP): Likewise.
815 (EXCEPTIONS_SIGLONGJMP): Likewise.
816 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
818 * exceptions.c: Likewise.
820 2014-08-29 Gary Benson <gbenson@redhat.com>
822 * cleanups.h: Moved to...
823 * common/cleanups.h: New file.
824 * cleanups.c: Moved to...
825 * common/cleanups.c: New file. Include common-defs.h and
826 cleanups.h. Do not include defs.h.
827 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
828 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
829 (cleanups.o): New rule.
831 2014-08-29 Gary Benson <gbenson@redhat.com>
833 * common/errors.h (internal_warning): New declaration.
834 (internal_vwarning): Likewise.
835 * common/errors.c (internal_warning): New function.
836 * utils.h (internal_warning): Don't declare.
837 (internal_vwarning): Likewise.
838 * utils.c (internal_warning): Removed.
840 2014-08-29 Gary Benson <gbenson@redhat.com>
842 * main.c (captured_main): Use warning during startup.
843 Prefix startup warning messages with command name.
845 2014-08-29 Gary Benson <gbenson@redhat.com>
847 * main.c (captured_main): Handle usage errors with error.
849 2014-08-29 Gary Benson <gbenson@redhat.com>
851 * go32-nat.c (go32_create_inferior): Replace a fprintf/
852 exit pair with a call to error. Wrap the message with _().
854 2014-08-29 Gary Benson <gbenson@redhat.com>
856 * main.c (captured_main): Replace a fprintf/exit
857 pair with a call to error. Wrap the message with _().
859 2014-08-29 Gary Benson <gbenson@redhat.com>
861 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
862 pairs with calls to error. Wrap the message with _().
864 2014-08-29 Gary Benson <gbenson@redhat.com>
866 * utils.c (vwarning): Protect calls to target_terminal_ours
869 2014-08-29 Gary Benson <gbenson@redhat.com>
871 * exceptions.c (print_flush): Protect calls to
872 target_terminal_ours and wrap_here.
874 2014-08-29 Gary Benson <gbenson@redhat.com>
876 * utils.h (filtered_printing_initialized): New declaration.
877 * utils.c (abort_with_message): New function.
878 (internal_vproblem): Use abort_with_message for first level
879 recursive internal problems, and if gdb_stderr is not set up.
880 Protect calls to target_terminal_ours, begin_line and query.
882 2014-08-28 Doug Evans <dje@google.com>
884 * symtab.c (in_prologue): Move definition to better spot.
885 (skip_prologue_using_sal): Ditto.
887 2014-08-28 Doug Evans <dje@google.com>
889 * symtab.c (find_function_start_sal): Move definition to better spot.
891 2014-08-28 Yao Qi <yao@codesourcery.com>
893 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
894 found_stack_adjust in forward scan. Remove condition check
895 on found_stack_adjust which is always true. Indent the code.
897 2014-08-28 Yao Qi <yao@codesourcery.com>
899 * dwarf2read.c (dwarf_decode_lines): Update declaration.
900 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
901 (dwarf_decode_lines): Remove argument
902 want_line_info. Remove condition check on want_line_info.
905 2014-08-27 Doug Evans <dje@google.com>
907 * dwarf2read.c (dwarf_record_line): Fix typo.
909 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
911 * target.h (struct target_ops::to_terminal_save_ours): Remove
913 (target_terminal_save_ours): Remove macro.
914 * target-delegates.c: Regenerate.
915 * inf-child.c (inf_child_target): Don't set the nonexistent
916 field to_terminal_save_ours.
917 * inferior.h (child_terminal_save_ours): Remove declaration.
918 * terminal.h (gdb_save_tty_state): New declaration.
919 * inflow.c (child_terminal_save_ours): Rename to ...
920 (gdb_save_tty_state): ... this.
921 * tui/tui.c: Include terminal.h.
922 (tui_enable): Use gdb_save_tty_state instead of
923 target_terminal_save_ours.
924 (tui_disable): Likewise.
926 2014-08-25 Doug Evans <dje@google.com>
928 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
929 Pass NULL instead of 0 for context pointer.
931 2014-08-25 Yao Qi <yao@codesourcery.com>
933 * dwarf2read.c: Fix grammatical error.
935 2014-08-24 Yao Qi <yao@codesourcery.com>
937 * dwarf2read.c (scan_partial_symbols): Update comments.
938 Rename argument 'need_pc' with 'set_addrmap'.
939 (add_partial_namespace): Rename argument 'need_pc' with
941 (add_partial_module): Likewise.
942 (add_partial_subprogram): Likewise. Update comments.
943 (dwarf2_name): Fix typo.
945 2014-08-22 Doug Evans <dje@google.com>
948 * dwarf2read.c (dwarf_record_line_p): New function.
949 (dwarf_decode_lines_1): Ignore subsequent line number entries
950 for the same line if any entry had a non-zero discriminator.
952 2014-08-22 Doug Evans <dje@google.com>
954 * buildsym.h (record_line_ftype): New typedef.
955 (record_line): Use it.
956 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
957 (dwarf_decode_lines_1): Call them.
959 2014-08-22 Yao Qi <yao@codesourcery.com>
961 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
962 (ctf_end): Remove code.
964 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
966 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
967 (linux_make_corefile_notes): call update_thread_list, protected against
970 2014-08-21 Pedro Alves <palves@redhat.com>
972 * infcmd.c (attach_command): Remove comment.
974 2014-08-21 Bin Cheng <bin.cheng@arm.com>
976 * aarch64-linux-nat.c (dr_changed_t): Change the type from
977 unsigned LONGEST to ULONGEST.
979 2014-08-20 Pedro Alves <palves@redhat.com>
981 * Makefile.in (check-read1): New rule.
983 2014-08-20 Joel Brobecker <brobecker@adacore.com>
985 * value.c (value_from_contents_and_address): Strip resolved_type's
986 typedef layers before checking its TYPE_DATA_LOCATION.
988 2014-08-20 Pedro Alves <palves@redhat.com>
990 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
992 2014-08-20 Yao Qi <yao@codesourcery.com>
994 * amd64-tdep.c (amd64_classify): Add a blank line after the
995 example. Move "*/" to a new line.
996 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
997 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
998 * dwarf2read.c (psymtab_include_file_name): Likewise.
1000 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1001 Pedro Alves <palves@redhat.com>
1005 * ada-lang.c (coerce_unspec_val_to_type): Use
1006 value_contents_copy_raw.
1007 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1008 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1009 * cp-valprint.c (cp_print_value_fields): Let the common printing
1010 code handle optimized out values.
1011 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1012 * d-valprint.c (dynamic_array_type): Use
1013 value_bits_any_optimized_out.
1014 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1015 check_any_valid fields.
1016 (check_pieced_value_bits): Delete and inline ...
1017 (check_pieced_synthetic_pointer): ... here.
1018 (check_pieced_value_validity): Delete.
1019 (check_pieced_value_invalid): Delete.
1020 (pieced_value_funcs): Remove check_validity and check_any_valid
1022 (read_pieced_value): Use mark_value_bits_optimized_out.
1023 (write_pieced_value): Switch to use
1024 mark_value_bytes_optimized_out.
1025 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1026 of assuming the whole value is optimized out.
1027 * findvar.c (read_frame_register_value): Remove special handling
1028 of optimized out registers.
1029 (value_from_register): Use mark_value_bytes_optimized_out.
1030 * frame-unwind.c (frame_unwind_got_optimized): Use
1031 mark_value_bytes_optimized_out.
1032 * jv-valprint.c (java_value_print): Adjust.
1033 (java_print_value_fields): Let the common printing code handle
1034 optimized out values.
1035 * mips-tdep.c (mips_print_register): Remove special handling of
1036 optimized out registers.
1037 * opencl-lang.c (lval_func_check_validity): Delete.
1038 (lval_func_check_any_valid): Delete.
1039 (opencl_value_funcs): Remove check_validity and check_any_valid
1041 * p-valprint.c (pascal_object_print_value_fields): Let the common
1042 printing code handle optimized out values.
1043 * stack.c (read_frame_arg): Remove special handling of optimized
1044 out values. Fetch both VAL and ENTRYVAL before comparing
1045 contents. Adjust to value_available_contents_eq rename.
1046 * valprint.c (valprint_check_validity)
1047 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1048 (val_print_array_elements): Adjust.
1049 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1050 (value_bits_any_optimized_out): New function.
1051 (value_entirely_covered_by_range_vector): New function, factored
1052 out from value_entirely_unavailable.
1053 (value_entirely_unavailable): Reimplement.
1054 (value_entirely_optimized_out): New function.
1055 (insert_into_bit_range_vector): New function, factored out from
1056 mark_value_bits_unavailable.
1057 (mark_value_bits_unavailable): Reimplement.
1058 (struct ranges_and_idx): New struct.
1059 (find_first_range_overlap_and_match): New function, factored out
1060 from value_available_contents_bits_eq.
1061 (value_available_contents_bits_eq): Rename to ...
1062 (value_contents_bits_eq): ... this. Check both unavailable
1063 contents and optimized out contents.
1064 (value_available_contents_eq): Rename to ...
1065 (value_contents_eq): ... this.
1066 (allocate_value_lazy): Remove reference to the old optimized_out
1068 (allocate_optimized_out_value): Use
1069 mark_value_bytes_optimized_out.
1070 (require_not_optimized_out): Adjust to check whether the
1071 optimized_out vec is empty.
1072 (ranges_copy_adjusted): New function, factored out from
1073 value_contents_copy_raw.
1074 (value_contents_copy_raw): Also copy the optimized out ranges.
1075 Assert the destination ranges aren't optimized out.
1076 (value_contents_copy): Update comment, remove call to
1077 require_not_optimized_out.
1078 (value_contents_equal): Adjust to check whether the optimized_out
1080 (set_value_optimized_out, value_optimized_out_const): Delete.
1081 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1083 (value_entirely_optimized_out, value_bits_valid): Delete.
1084 (value_copy): Take a VEC copy of the 'optimized_out' field.
1085 (value_primitive_field): Remove special handling of optimized out.
1086 (value_fetch_lazy): Assert that lazy values have no unavailable
1087 regions. Use value_bits_any_optimized_out. Remove some special
1088 handling for optimized out values.
1089 * value.h: Add intro comment about <optimized out> and
1091 (struct lval_funcs): Remove check_validity and check_any_valid
1093 (set_value_optimized_out, value_optimized_out_const): Remove.
1094 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1096 (value_bits_any_optimized_out): New declaration.
1097 (value_bits_valid): Delete declaration.
1098 (value_available_contents_eq): Rename to ...
1099 (value_contents_eq): ... this, and extend comments.
1101 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1103 Fix -fsanitize=address on unreadable inferior strings.
1104 * valprint.c (val_print_string): Fix access before BUFFER.
1106 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1108 * target.c (target_struct_size): Remove.
1109 (target_struct_allocsize): Remove.
1110 (DEFAULT_ALLOCSIZE): Remove.
1111 (target_ops_p): New typedef.
1112 (DEF_VEC_P (target_ops_p)): New vector type.
1113 (target_structs): Change type to VEC (target_ops_p).
1114 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1115 (find_default_run_target): Rewrite for loop following changes to
1118 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1120 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1121 Adjust code accordingly. Adjust function description comment.
1123 2014-08-19 Yao Qi <yao@codesourcery.com>
1125 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1128 2014-08-19 Alan Modra <amodra@gmail.com>
1130 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1131 * config.in: Regenerate.
1132 * configure: Regenerate.
1134 2014-08-19 Tom Tromey <tromey@redhat.com>
1135 Gary Benson <gbenson@redhat.com>
1137 * common/common-debug.h: New file.
1138 * common/common-debug.c: Likewise.
1139 * debug.c: Likewise.
1140 * Makefile.in (SFILES): Add common/common-debug.c.
1141 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1142 (COMMON_OBS): Add common-debug.o and debug.o.
1143 (common-debug.o): New rule.
1144 * common/common-defs.h: Include common-debug.h.
1145 * common/agent.c (debug_agent_printf): New function.
1146 (DEBUG_AGENT): Redefine.
1147 * nat/i386-dregs.c (debug_printf): Undefine.
1149 2014-08-19 Gary Benson <gbenson@redhat.com>
1151 * common/common-defs.h: Include print-utils.h.
1152 * utils.h: Do not include print-utils.h.
1154 2014-08-19 Tom Tromey <tromey@redhat.com>
1155 Gary Benson <gbenson@redhat.com>
1157 * common/common-types.h: New file.
1158 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1159 * common/common-defs.h: Include common-types.h.
1160 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1163 2014-08-19 Tom Tromey <tromey@redhat.com>
1164 Gary Benson <gbenson@redhat.com>
1166 * common/errors.h: New file.
1167 * common/errors.c: Likewise.
1168 * Makefile.in (SFILES): Add common/errors.c.
1169 (HFILES_NO_SRCDIR): Add common/errors.h.
1170 (COMMON_OBS): Add errors.o.
1171 (errors.o): New rule.
1172 * common/common-defs.h: Include errors.h.
1173 * utils.h (perror_with_name, error, verror, warning, vwarning):
1175 * common/common-utils.h: (malloc_failure, internal_error):
1178 2014-08-19 Gary Benson <gbenson@redhat.com>
1180 * utils.c (internal_vproblem): Always print the message.
1182 2014-08-18 Doug Evans <dje@google.com>
1184 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1186 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1188 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1189 Return 0 if TYPE is dynamic.
1190 (print_range): Add handling of dynamic ranges.
1192 2014-08-18 Keven Boell <keven.boell@intel.com>
1193 Joel Brobecker <brobecker@adacore.com>
1195 * gdbtypes.h (struct main_type): Add field "data_location".
1196 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1197 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1198 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1199 a dynamic data location.
1200 (resolve_dynamic_type): Add DW_AT_data_location handling.
1201 (copy_recursive, copy_type): Copy the data_location information
1203 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1204 * value.c (value_from_contents_and_address): Add
1205 DW_AT_data_location handling.
1207 2014-08-18 Keven Boell <keven.boell@intel.com>
1208 Joel Brobecker <brobecker@adacore.com>
1210 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1211 field "get_object_address".
1212 * dwarf2expr.c (execute_stack_op): Add handling for
1213 DW_OP_push_object_address.
1214 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1215 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1216 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1217 (dwarf_expr_get_obj_addr): New function.
1218 (dwarf_expr_ctx_funcs): Add get_object_address field.
1219 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1220 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1221 (dwarf2_evaluate_property): Add parameter "address". Use it.
1222 (needs_get_obj_addr): New function.
1223 (needs_frame_ctx_funcs): Add get_object_address field.
1224 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1225 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1226 (resolve_dynamic_array): Likewise.
1228 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1230 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1231 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1232 fixed value for records and unions for which some GNAT encodings
1235 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1237 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1238 rewrite to avoid "else if" and "else" constructs. Should be
1239 a no-op in practice.
1241 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1243 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1246 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1249 * eval.c: Update all calls to find_overload_match.
1250 * valarith.c: Likewise.
1251 (value_user_defined_cpp_op, value_user_defined_op): New
1252 argument NOSIDE. Update all callers.
1253 * valops.c (find_overload_match): New argument NOSIDE.
1254 * value.h (find_overload_match): Update signature.
1256 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1258 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1259 'items' methods instead of 'iteritems' method on dictionaries.
1261 2014-08-15 Doug Evans <dje@google.com>
1263 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1266 2014-08-15 Doug Evans <dje@google.com>
1268 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1270 2014-08-15 Doug Evans <dje@google.com>
1272 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1274 2014-08-15 Doug Evans <dje@google.com>
1276 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1279 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1281 * dcache.h: Include target.h, to avoid compile time warnings.
1283 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1285 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1286 frame_info" partial declaration.
1287 * gdbarch.h: Regenerate.
1289 2014-08-15 Yao Qi <yao@codesourcery.com>
1291 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1292 Add parameter 'decode_for_pst_p'. Callers update.
1294 2014-08-13 Yao Qi <yao@codesourcery.com>
1297 * configure.ac: Use local variable 'pos'.
1298 * configure: Regenerated.
1300 2014-08-11 Doug Evans <dje@google.com>
1302 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1303 message, it is redundant with "Reading symbols from ..." message.
1305 2014-08-10 Doug Evans <xdje42@gmail.com>
1307 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1309 2014-08-09 Yao Qi <yao@codesourcery.com>
1312 * remote.c (remote_xfer_partial): Remove dead code.
1314 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1316 * ia64-linux-tdep.c: Include "regset.h".
1317 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1318 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1319 (ia64_linux_supply_fpregset): New function.
1320 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1321 (ia64_linux_regset_from_core_section): New function.
1322 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1325 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1327 * m68klinux-tdep.c: Include "regset.h".
1328 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1329 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1330 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1331 (m68k_linux_regset_from_core_section): New function.
1332 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1335 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1337 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1338 function. Move logic to...
1339 (tilegx_linux_regmap): ... this new register map.
1340 (tilegx_linux_regset): Refer to register map, replace supply
1341 method by regcache_supply_regset, and add collect method.
1342 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1343 TILEGX_FIRST_EASY_REGNUM.
1345 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1347 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1348 that calls regcache_supply_regset and handles the EPC register
1349 separately. Move main logic to...
1350 (score7_linux_gregmap): ... this new register map.
1351 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1352 (score7_linux_gregset): Refer to register map. Add collect method.
1353 (score7_linux_regset_from_core_section): Replace
1354 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1355 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1356 (struct regset): Delete unused forward declaraction.
1357 (struct pt_regs): Delete structure definition.
1358 (elf_gregset_t): Delete typedef.
1360 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1362 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1363 (nios2_core_regset): Add collect method.
1365 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1367 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1368 platform-independent and don't write to read-only input buffer.
1369 (m32r_linux_collect_gregset): New function.
1370 (m32r_linux_gregset): Add collect method.
1372 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1374 * hppa-linux-tdep.c (greg_map): Rename to...
1375 (hppa_linux_gregmap): ... this. Also convert to
1376 regcache_map_entry format.
1377 (hppa_linux_supply_regset): Delete function.
1378 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1379 (hppa_linux_fpregmap): ... this new register map.
1380 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1381 register map, replace supply method by regcache_supply_regset, and
1382 add collect method regcache_collect_regset.
1384 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1386 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1387 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1388 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1389 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1390 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1391 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1392 (frv_linux_supply_gregset): Replace main logic by call to
1393 regcache_supply_regset, but keep clearing gr32-gr63.
1394 (frv_linux_supply_fpregset): Delete function.
1395 (frv_linux_gregset): Refer to appropriate register map and add
1396 regcache_collect_regset as the collect method.
1397 (frv_linux_fpregset): Likewise. Also exchange the supply method
1398 by regcache_supply_regset.
1400 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1402 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1403 by call to alpha_supply_int_regs.
1404 (alpha_linux_collect_gregset): New function.
1405 (alpha_linux_supply_fpregset): Replace logic by call to
1406 alpha_supply_fp_regs.
1407 (alpha_linux_collect_fpregset): New function.
1408 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1410 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1412 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1413 by call to regcache_collect_regset.
1414 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1415 instead of aarch64_linux_supply_gregset/_fpregset.
1416 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1417 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1418 header file instead.
1419 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1420 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1421 functions. Move logic to ...
1422 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1424 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1425 refer to new register maps, replace *_regset_from_core by
1426 regcache_supply_regset, and also use regcache_collect_regset.
1427 * aarch64-linux-tdep.h: Include "regset.h".
1428 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1430 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1431 macros, moved from C source file.
1432 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1433 variable declarations.
1435 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1437 * s390-linux-nat.c: Include "regset.h".
1438 (regmap_gregset): Delete macro.
1439 (s390_64_regmap_gregset): New register map for
1440 regcache_supply/_collect_regset.
1441 (s390_64_gregset): New regset.
1442 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1443 (regmap_fpregset): Delete macro.
1444 (s390_native_supply, s390_native_collect): Delete functions.
1445 (supply_gregset, fill_gregset): Replace s390-specific regmap
1446 handling by a call to regcache_supply/_collect_regset.
1447 (supply_fpregset, fill_fpregset): Call regcache_supply/
1448 _collect_regset instead of s390_native_supply/_collect.
1449 (fetch_regset, store_regset): Likewise. Also change the last
1450 parameter to a regset instead of a regmap.
1451 (s390_linux_fetch_inferior_registers)
1452 (390_linux_store_inferior_registers): Adjust last parameter in
1453 calls to fetch_regset and store_regset.
1454 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1455 (s390_gregmap): ... this. Also make static const and convert to
1456 regcache_map_entry format.
1457 (s390x_regmap_gregset): Delete.
1458 (s390_regmap_fpregset): Rename to...
1459 (s390_fpregmap): ... this. Make static const and convert to
1460 regcache_map_entry format.
1461 (s390_regmap_upper, s390_regmap_last_break)
1462 (s390x_regmap_last_break, s390_regmap_system_call)
1463 (s390_regmap_tdb): Likewise.
1464 (s390_supply_regset, s390_collect_regset): Remove functions.
1465 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1467 (s390_gregset, s390_fpregset, s390_upper_regset)
1468 (s390_last_break_regset, s390x_last_break_regset)
1469 (s390_system_call_regset, s390_tdb_regset): Make global and
1470 replace s390_supply/_collect_regset by regcache_supply/
1472 (s390x_gregset): Delete.
1473 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1474 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1475 (s390_regmap_fpregset, s390_regmap_last_break)
1476 (s390x_regmap_last_break, s390_regmap_system_call)
1477 (s390_regmap_tdb): Delete global variable declarations.
1478 (s390_gregset, s390_fpregset, s390_last_break_regset)
1479 (s390x_last_break_regset, s390_system_call_regset)
1480 (s390_tdb_regset): New global variable declarations.
1482 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1484 * regcache.c: Include "regset.h".
1485 (regcache_transfer_regset): New local function.
1486 (regcache_supply_regset, regcache_collect_regset): New functions.
1487 * regcache.h (struct regcache_map_entry): New structure.
1488 (REGCACHE_MAP_SKIP): New enum value.
1489 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1491 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1493 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1494 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1495 (ppc_linux_collect_gregset ): Likewise.
1496 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1497 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1498 (ppc_collect_vrregset): Likewise.
1499 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1502 2014-08-07 Yao Qi <yao@codesourcery.com>
1504 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1505 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1506 * remote.c (remote_read_bytes): Likewise.
1508 2014-08-07 Yao Qi <yao@codesourcery.com>
1510 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1512 2014-08-07 Yao Qi <yao@codesourcery.com>
1515 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1516 TARGET_XFER_OK instead of 0.
1518 2014-08-07 Gary Benson <gbenson@redhat.com>
1520 * common/common-defs.h: Include errno.h.
1521 * defs.h: Do not include errno.h.
1522 * ada-typeprint.c: Likewise.
1523 * c-typeprint.c: Likewise.
1524 * core-regset.c: Likewise.
1525 * corefile.c: Likewise.
1526 * corelow.c: Likewise.
1527 * event-loop.c: Likewise.
1528 * f-typeprint.c: Likewise.
1529 * gnu-nat.c: Likewise.
1530 * go32-nat.c: Likewise.
1531 * i386gnu-nat.c: Likewise.
1532 * m2-typeprint.c: Likewise.
1533 * nat/linux-btrace.c: Likewise.
1534 * p-typeprint.c: Likewise.
1535 * procfs.c: Likewise.
1536 * remote-sim.c: Likewise.
1537 * rs6000-nat.c: Likewise.
1538 * target.c: Likewise.
1539 * typeprint.c: Likewise.
1540 * ui-file.c: Likewise.
1541 * valops.c: Likewise.
1542 * valprint.c: Likewise.
1544 2014-08-07 Gary Benson <gbenson@redhat.com>
1546 * common/common-defs.h: Include string.h.
1547 * aarch64-tdep.c: Do not include string.h.
1548 * ada-exp.y: Likewise.
1549 * ada-lang.c: Likewise.
1550 * ada-lex.l: Likewise.
1551 * ada-typeprint.c: Likewise.
1552 * ada-valprint.c: Likewise.
1553 * aix-thread.c: Likewise.
1554 * alpha-linux-tdep.c: Likewise.
1555 * alpha-mdebug-tdep.c: Likewise.
1556 * alpha-nat.c: Likewise.
1557 * alpha-osf1-tdep.c: Likewise.
1558 * alpha-tdep.c: Likewise.
1559 * alphanbsd-tdep.c: Likewise.
1560 * amd64-dicos-tdep.c: Likewise.
1561 * amd64-linux-tdep.c: Likewise.
1562 * amd64-nat.c: Likewise.
1563 * amd64-sol2-tdep.c: Likewise.
1564 * amd64fbsd-tdep.c: Likewise.
1565 * amd64obsd-tdep.c: Likewise.
1566 * arch-utils.c: Likewise.
1567 * arm-linux-nat.c: Likewise.
1568 * arm-linux-tdep.c: Likewise.
1569 * arm-tdep.c: Likewise.
1570 * arm-wince-tdep.c: Likewise.
1571 * armbsd-tdep.c: Likewise.
1572 * armnbsd-nat.c: Likewise.
1573 * armnbsd-tdep.c: Likewise.
1574 * armobsd-tdep.c: Likewise.
1575 * avr-tdep.c: Likewise.
1576 * ax-gdb.c: Likewise.
1577 * ax-general.c: Likewise.
1578 * bcache.c: Likewise.
1579 * bfin-tdep.c: Likewise.
1580 * breakpoint.c: Likewise.
1581 * build-id.c: Likewise.
1582 * buildsym.c: Likewise.
1583 * c-exp.y: Likewise.
1584 * c-lang.c: Likewise.
1585 * c-typeprint.c: Likewise.
1586 * c-valprint.c: Likewise.
1587 * charset.c: Likewise.
1588 * cli-out.c: Likewise.
1589 * cli/cli-cmds.c: Likewise.
1590 * cli/cli-decode.c: Likewise.
1591 * cli/cli-dump.c: Likewise.
1592 * cli/cli-interp.c: Likewise.
1593 * cli/cli-logging.c: Likewise.
1594 * cli/cli-script.c: Likewise.
1595 * cli/cli-setshow.c: Likewise.
1596 * cli/cli-utils.c: Likewise.
1597 * coffread.c: Likewise.
1598 * common/agent.c: Likewise.
1599 * common/buffer.c: Likewise.
1600 * common/buffer.h: Likewise.
1601 * common/common-utils.c: Likewise.
1602 * common/filestuff.c: Likewise.
1603 * common/filestuff.c: Likewise.
1604 * common/format.c: Likewise.
1605 * common/print-utils.c: Likewise.
1606 * common/rsp-low.c: Likewise.
1607 * common/signals.c: Likewise.
1608 * common/vec.h: Likewise.
1609 * common/xml-utils.c: Likewise.
1610 * core-regset.c: Likewise.
1611 * corefile.c: Likewise.
1612 * corelow.c: Likewise.
1613 * cp-abi.c: Likewise.
1614 * cp-name-parser.y: Likewise.
1615 * cp-support.c: Likewise.
1616 * cp-valprint.c: Likewise.
1617 * cris-tdep.c: Likewise.
1618 * d-exp.y: Likewise.
1619 * darwin-nat.c: Likewise.
1620 * dbxread.c: Likewise.
1621 * dcache.c: Likewise.
1622 * demangle.c: Likewise.
1623 * dicos-tdep.c: Likewise.
1624 * disasm.c: Likewise.
1625 * doublest.c: Likewise.
1626 * dsrec.c: Likewise.
1627 * dummy-frame.c: Likewise.
1628 * dwarf2-frame.c: Likewise.
1629 * dwarf2loc.c: Likewise.
1630 * dwarf2read.c: Likewise.
1631 * elfread.c: Likewise.
1632 * environ.c: Likewise.
1634 * event-loop.c: Likewise.
1635 * exceptions.c: Likewise.
1637 * expprint.c: Likewise.
1638 * f-exp.y: Likewise.
1639 * f-lang.c: Likewise.
1640 * f-typeprint.c: Likewise.
1641 * f-valprint.c: Likewise.
1642 * fbsd-nat.c: Likewise.
1643 * findcmd.c: Likewise.
1644 * findvar.c: Likewise.
1645 * fork-child.c: Likewise.
1646 * frame.c: Likewise.
1647 * frv-linux-tdep.c: Likewise.
1648 * frv-tdep.c: Likewise.
1650 * gdb_bfd.c: Likewise.
1651 * gdbarch.c: Likewise.
1652 * gdbarch.sh: Likewise.
1653 * gdbtypes.c: Likewise.
1654 * gnu-nat.c: Likewise.
1655 * gnu-v2-abi.c: Likewise.
1656 * gnu-v3-abi.c: Likewise.
1657 * go-exp.y: Likewise.
1658 * go-lang.c: Likewise.
1659 * go32-nat.c: Likewise.
1660 * guile/guile.c: Likewise.
1661 * guile/scm-auto-load.c: Likewise.
1662 * hppa-hpux-tdep.c: Likewise.
1663 * hppa-linux-nat.c: Likewise.
1664 * hppanbsd-tdep.c: Likewise.
1665 * hppaobsd-tdep.c: Likewise.
1666 * i386-cygwin-tdep.c: Likewise.
1667 * i386-dicos-tdep.c: Likewise.
1668 * i386-linux-tdep.c: Likewise.
1669 * i386-nto-tdep.c: Likewise.
1670 * i386-sol2-tdep.c: Likewise.
1671 * i386-tdep.c: Likewise.
1672 * i386bsd-tdep.c: Likewise.
1673 * i386gnu-nat.c: Likewise.
1674 * i386nbsd-tdep.c: Likewise.
1675 * i386obsd-tdep.c: Likewise.
1676 * i387-tdep.c: Likewise.
1677 * ia64-libunwind-tdep.c: Likewise.
1678 * ia64-linux-nat.c: Likewise.
1679 * inf-child.c: Likewise.
1680 * inf-ptrace.c: Likewise.
1681 * inf-ttrace.c: Likewise.
1682 * infcall.c: Likewise.
1683 * infcmd.c: Likewise.
1684 * inflow.c: Likewise.
1685 * infrun.c: Likewise.
1686 * interps.c: Likewise.
1687 * iq2000-tdep.c: Likewise.
1688 * irix5-nat.c: Likewise.
1689 * jv-exp.y: Likewise.
1690 * jv-lang.c: Likewise.
1691 * jv-typeprint.c: Likewise.
1692 * jv-valprint.c: Likewise.
1693 * language.c: Likewise.
1694 * linux-fork.c: Likewise.
1695 * linux-nat.c: Likewise.
1696 * lm32-tdep.c: Likewise.
1697 * m2-exp.y: Likewise.
1698 * m2-typeprint.c: Likewise.
1699 * m32c-tdep.c: Likewise.
1700 * m32r-linux-nat.c: Likewise.
1701 * m32r-linux-tdep.c: Likewise.
1702 * m32r-rom.c: Likewise.
1703 * m32r-tdep.c: Likewise.
1704 * m68hc11-tdep.c: Likewise.
1705 * m68k-tdep.c: Likewise.
1706 * m68kbsd-tdep.c: Likewise.
1707 * m68klinux-nat.c: Likewise.
1708 * m68klinux-tdep.c: Likewise.
1709 * m88k-tdep.c: Likewise.
1710 * machoread.c: Likewise.
1711 * macrocmd.c: Likewise.
1713 * mdebugread.c: Likewise.
1714 * mem-break.c: Likewise.
1715 * memattr.c: Likewise.
1716 * memory-map.c: Likewise.
1717 * mep-tdep.c: Likewise.
1718 * mi/mi-cmd-break.c: Likewise.
1719 * mi/mi-cmd-disas.c: Likewise.
1720 * mi/mi-cmd-env.c: Likewise.
1721 * mi/mi-cmd-stack.c: Likewise.
1722 * mi/mi-cmd-var.c: Likewise.
1723 * mi/mi-cmds.c: Likewise.
1724 * mi/mi-console.c: Likewise.
1725 * mi/mi-getopt.c: Likewise.
1726 * mi/mi-interp.c: Likewise.
1727 * mi/mi-main.c: Likewise.
1728 * mi/mi-parse.c: Likewise.
1729 * microblaze-rom.c: Likewise.
1730 * microblaze-tdep.c: Likewise.
1731 * mingw-hdep.c: Likewise.
1732 * minidebug.c: Likewise.
1733 * minsyms.c: Likewise.
1734 * mips-irix-tdep.c: Likewise.
1735 * mips-linux-tdep.c: Likewise.
1736 * mips-tdep.c: Likewise.
1737 * mips64obsd-tdep.c: Likewise.
1738 * mipsnbsd-tdep.c: Likewise.
1739 * mipsread.c: Likewise.
1740 * mn10300-linux-tdep.c: Likewise.
1741 * mn10300-tdep.c: Likewise.
1742 * monitor.c: Likewise.
1743 * moxie-tdep.c: Likewise.
1744 * mt-tdep.c: Likewise.
1745 * nat/linux-btrace.c: Likewise.
1746 * nat/linux-osdata.c: Likewise.
1747 * nat/linux-procfs.c: Likewise.
1748 * nat/linux-ptrace.c: Likewise.
1749 * nat/linux-waitpid.c: Likewise.
1750 * nbsd-tdep.c: Likewise.
1751 * nios2-linux-tdep.c: Likewise.
1752 * nto-procfs.c: Likewise.
1753 * nto-tdep.c: Likewise.
1754 * objc-lang.c: Likewise.
1755 * objfiles.c: Likewise.
1756 * opencl-lang.c: Likewise.
1757 * osabi.c: Likewise.
1758 * osdata.c: Likewise.
1759 * p-exp.y: Likewise.
1760 * p-lang.c: Likewise.
1761 * p-typeprint.c: Likewise.
1762 * parse.c: Likewise.
1763 * posix-hdep.c: Likewise.
1764 * ppc-linux-nat.c: Likewise.
1765 * ppc-sysv-tdep.c: Likewise.
1766 * ppcfbsd-tdep.c: Likewise.
1767 * ppcnbsd-tdep.c: Likewise.
1768 * ppcobsd-tdep.c: Likewise.
1769 * printcmd.c: Likewise.
1770 * procfs.c: Likewise.
1771 * prologue-value.c: Likewise.
1772 * python/py-auto-load.c: Likewise.
1773 * python/py-gdb-readline.c: Likewise.
1774 * ravenscar-thread.c: Likewise.
1775 * regcache.c: Likewise.
1776 * registry.c: Likewise.
1777 * remote-fileio.c: Likewise.
1778 * remote-m32r-sdi.c: Likewise.
1779 * remote-mips.c: Likewise.
1780 * remote-notif.c: Likewise.
1781 * remote-sim.c: Likewise.
1782 * remote.c: Likewise.
1783 * reverse.c: Likewise.
1784 * rs6000-aix-tdep.c: Likewise.
1785 * ser-base.c: Likewise.
1786 * ser-go32.c: Likewise.
1787 * ser-mingw.c: Likewise.
1788 * ser-pipe.c: Likewise.
1789 * ser-tcp.c: Likewise.
1790 * ser-unix.c: Likewise.
1791 * serial.c: Likewise.
1792 * sh-tdep.c: Likewise.
1793 * sh64-tdep.c: Likewise.
1794 * shnbsd-tdep.c: Likewise.
1796 * sol-thread.c: Likewise.
1797 * solib-dsbt.c: Likewise.
1798 * solib-frv.c: Likewise.
1799 * solib-osf.c: Likewise.
1800 * solib-som.c: Likewise.
1801 * solib-spu.c: Likewise.
1802 * solib-target.c: Likewise.
1803 * solib.c: Likewise.
1804 * somread.c: Likewise.
1805 * source.c: Likewise.
1806 * sparc-nat.c: Likewise.
1807 * sparc-sol2-tdep.c: Likewise.
1808 * sparc-tdep.c: Likewise.
1809 * sparc64-tdep.c: Likewise.
1810 * sparc64fbsd-tdep.c: Likewise.
1811 * sparc64nbsd-tdep.c: Likewise.
1812 * sparcnbsd-tdep.c: Likewise.
1813 * spu-linux-nat.c: Likewise.
1814 * spu-multiarch.c: Likewise.
1815 * spu-tdep.c: Likewise.
1816 * stabsread.c: Likewise.
1817 * stack.c: Likewise.
1818 * std-regs.c: Likewise.
1819 * symfile.c: Likewise.
1820 * symmisc.c: Likewise.
1821 * symtab.c: Likewise.
1822 * target.c: Likewise.
1823 * thread.c: Likewise.
1824 * tilegx-linux-nat.c: Likewise.
1825 * tilegx-tdep.c: Likewise.
1827 * tracepoint.c: Likewise.
1828 * tui/tui-command.c: Likewise.
1829 * tui/tui-data.c: Likewise.
1830 * tui/tui-disasm.c: Likewise.
1831 * tui/tui-file.c: Likewise.
1832 * tui/tui-layout.c: Likewise.
1833 * tui/tui-out.c: Likewise.
1834 * tui/tui-regs.c: Likewise.
1835 * tui/tui-source.c: Likewise.
1836 * tui/tui-stack.c: Likewise.
1837 * tui/tui-win.c: Likewise.
1838 * tui/tui-windata.c: Likewise.
1839 * tui/tui-winsource.c: Likewise.
1840 * typeprint.c: Likewise.
1841 * ui-file.c: Likewise.
1842 * ui-out.c: Likewise.
1843 * user-regs.c: Likewise.
1844 * utils.c: Likewise.
1845 * v850-tdep.c: Likewise.
1846 * valarith.c: Likewise.
1847 * valops.c: Likewise.
1848 * valprint.c: Likewise.
1849 * value.c: Likewise.
1850 * varobj.c: Likewise.
1851 * vax-tdep.c: Likewise.
1852 * vaxnbsd-tdep.c: Likewise.
1853 * vaxobsd-tdep.c: Likewise.
1854 * windows-nat.c: Likewise.
1855 * xcoffread.c: Likewise.
1856 * xml-support.c: Likewise.
1857 * xstormy16-tdep.c: Likewise.
1858 * xtensa-linux-nat.c: Likewise.
1860 2014-08-07 Gary Benson <gbenson@redhat.com>
1862 * common/common-defs.h: Include gdb_assert.h.
1863 * aarch64-tdep.c: Do not include gdb_assert.h.
1864 * addrmap.c: Likewise.
1865 * aix-thread.c: Likewise.
1866 * alpha-linux-tdep.c: Likewise.
1867 * alpha-mdebug-tdep.c: Likewise.
1868 * alphanbsd-tdep.c: Likewise.
1869 * amd64-nat.c: Likewise.
1870 * amd64-tdep.c: Likewise.
1871 * amd64bsd-nat.c: Likewise.
1872 * amd64fbsd-nat.c: Likewise.
1873 * amd64fbsd-tdep.c: Likewise.
1874 * amd64nbsd-nat.c: Likewise.
1875 * amd64nbsd-tdep.c: Likewise.
1876 * amd64obsd-nat.c: Likewise.
1877 * amd64obsd-tdep.c: Likewise.
1878 * arch-utils.c: Likewise.
1879 * arm-tdep.c: Likewise.
1880 * armbsd-tdep.c: Likewise.
1882 * bcache.c: Likewise.
1883 * bfin-tdep.c: Likewise.
1884 * blockframe.c: Likewise.
1885 * breakpoint.c: Likewise.
1886 * bsd-kvm.c: Likewise.
1887 * bsd-uthread.c: Likewise.
1888 * buildsym.c: Likewise.
1889 * c-exp.y: Likewise.
1890 * c-lang.c: Likewise.
1891 * charset.c: Likewise.
1892 * cleanups.c: Likewise.
1893 * cli-out.c: Likewise.
1894 * cli/cli-decode.c: Likewise.
1895 * cli/cli-dump.c: Likewise.
1896 * cli/cli-logging.c: Likewise.
1897 * cli/cli-script.c: Likewise.
1898 * cli/cli-utils.c: Likewise.
1899 * coffread.c: Likewise.
1900 * common/common-utils.c: Likewise.
1901 * common/queue.h: Likewise.
1902 * common/signals.c: Likewise.
1903 * common/vec.h: Likewise.
1904 * complaints.c: Likewise.
1905 * completer.c: Likewise.
1906 * corelow.c: Likewise.
1907 * cp-abi.c: Likewise.
1908 * cp-name-parser.y: Likewise.
1909 * cp-namespace.c: Likewise.
1910 * cp-support.c: Likewise.
1911 * cris-tdep.c: Likewise.
1912 * dbxread.c: Likewise.
1913 * dictionary.c: Likewise.
1914 * doublest.c: Likewise.
1915 * dsrec.c: Likewise.
1916 * dummy-frame.c: Likewise.
1917 * dwarf2-frame-tailcall.c: Likewise.
1918 * dwarf2-frame.c: Likewise.
1919 * dwarf2expr.c: Likewise.
1920 * dwarf2loc.c: Likewise.
1921 * dwarf2read.c: Likewise.
1923 * event-loop.c: Likewise.
1924 * exceptions.c: Likewise.
1925 * expprint.c: Likewise.
1926 * f-valprint.c: Likewise.
1927 * fbsd-nat.c: Likewise.
1928 * findvar.c: Likewise.
1929 * frame-unwind.c: Likewise.
1930 * frame.c: Likewise.
1931 * frv-tdep.c: Likewise.
1932 * gcore.c: Likewise.
1933 * gdb-dlfcn.c: Likewise.
1934 * gdb_bfd.c: Likewise.
1935 * gdbarch.c: Likewise.
1936 * gdbarch.sh: Likewise.
1937 * gdbtypes.c: Likewise.
1938 * gnu-nat.c: Likewise.
1939 * gnu-v3-abi.c: Likewise.
1940 * go-lang.c: Likewise.
1941 * guile/scm-exception.c: Likewise.
1942 * guile/scm-gsmob.c: Likewise.
1943 * guile/scm-lazy-string.c: Likewise.
1944 * guile/scm-math.c: Likewise.
1945 * guile/scm-pretty-print.c: Likewise.
1946 * guile/scm-safe-call.c: Likewise.
1947 * guile/scm-utils.c: Likewise.
1948 * guile/scm-value.c: Likewise.
1949 * h8300-tdep.c: Likewise.
1950 * hppa-hpux-nat.c: Likewise.
1951 * hppa-tdep.c: Likewise.
1952 * hppanbsd-tdep.c: Likewise.
1953 * hppaobsd-tdep.c: Likewise.
1954 * i386-darwin-nat.c: Likewise.
1955 * i386-darwin-tdep.c: Likewise.
1956 * i386-nto-tdep.c: Likewise.
1957 * i386-tdep.c: Likewise.
1958 * i386bsd-nat.c: Likewise.
1959 * i386fbsd-tdep.c: Likewise.
1960 * i386gnu-nat.c: Likewise.
1961 * i386nbsd-tdep.c: Likewise.
1962 * i386obsd-tdep.c: Likewise.
1963 * i387-tdep.c: Likewise.
1964 * ia64-libunwind-tdep.c: Likewise.
1965 * ia64-tdep.c: Likewise.
1966 * inf-ptrace.c: Likewise.
1967 * inf-ttrace.c: Likewise.
1968 * infcall.c: Likewise.
1969 * infcmd.c: Likewise.
1970 * infrun.c: Likewise.
1971 * inline-frame.c: Likewise.
1972 * interps.c: Likewise.
1973 * jv-lang.c: Likewise.
1974 * jv-typeprint.c: Likewise.
1975 * linux-fork.c: Likewise.
1976 * linux-nat.c: Likewise.
1977 * linux-thread-db.c: Likewise.
1978 * m32c-tdep.c: Likewise.
1979 * m32r-linux-nat.c: Likewise.
1980 * m32r-tdep.c: Likewise.
1981 * m68k-tdep.c: Likewise.
1982 * m68kbsd-nat.c: Likewise.
1983 * m68kbsd-tdep.c: Likewise.
1984 * m88k-tdep.c: Likewise.
1985 * machoread.c: Likewise.
1986 * macroexp.c: Likewise.
1987 * macrotab.c: Likewise.
1988 * maint.c: Likewise.
1989 * mdebugread.c: Likewise.
1990 * memory-map.c: Likewise.
1991 * mep-tdep.c: Likewise.
1992 * mi/mi-common.c: Likewise.
1993 * microblaze-tdep.c: Likewise.
1994 * mingw-hdep.c: Likewise.
1995 * mips-linux-nat.c: Likewise.
1996 * mips-linux-tdep.c: Likewise.
1997 * mips-tdep.c: Likewise.
1998 * mips64obsd-tdep.c: Likewise.
1999 * mipsnbsd-tdep.c: Likewise.
2000 * mn10300-linux-tdep.c: Likewise.
2001 * mn10300-tdep.c: Likewise.
2002 * moxie-tdep.c: Likewise.
2003 * mt-tdep.c: Likewise.
2004 * nat/linux-btrace.c: Likewise.
2005 * nat/linux-osdata.c: Likewise.
2006 * nat/linux-ptrace.c: Likewise.
2007 * nat/mips-linux-watch.c: Likewise.
2008 * nios2-linux-tdep.c: Likewise.
2009 * nios2-tdep.c: Likewise.
2010 * objc-lang.c: Likewise.
2011 * objfiles.c: Likewise.
2012 * obsd-nat.c: Likewise.
2013 * opencl-lang.c: Likewise.
2014 * osabi.c: Likewise.
2015 * parse.c: Likewise.
2016 * ppc-linux-nat.c: Likewise.
2017 * ppc-sysv-tdep.c: Likewise.
2018 * ppcfbsd-nat.c: Likewise.
2019 * ppcfbsd-tdep.c: Likewise.
2020 * ppcnbsd-nat.c: Likewise.
2021 * ppcnbsd-tdep.c: Likewise.
2022 * ppcobsd-nat.c: Likewise.
2023 * ppcobsd-tdep.c: Likewise.
2024 * printcmd.c: Likewise.
2025 * procfs.c: Likewise.
2026 * prologue-value.c: Likewise.
2027 * psymtab.c: Likewise.
2028 * python/py-lazy-string.c: Likewise.
2029 * python/py-value.c: Likewise.
2030 * regcache.c: Likewise.
2031 * reggroups.c: Likewise.
2032 * registry.c: Likewise.
2033 * remote-sim.c: Likewise.
2034 * remote.c: Likewise.
2035 * rs6000-aix-tdep.c: Likewise.
2036 * rs6000-tdep.c: Likewise.
2037 * s390-linux-tdep.c: Likewise.
2038 * score-tdep.c: Likewise.
2039 * ser-base.c: Likewise.
2040 * ser-mingw.c: Likewise.
2041 * sh-tdep.c: Likewise.
2042 * sh64-tdep.c: Likewise.
2043 * solib-darwin.c: Likewise.
2044 * solib-spu.c: Likewise.
2045 * solib-svr4.c: Likewise.
2046 * source.c: Likewise.
2047 * sparc-nat.c: Likewise.
2048 * sparc-sol2-tdep.c: Likewise.
2049 * sparc-tdep.c: Likewise.
2050 * sparc64-sol2-tdep.c: Likewise.
2051 * sparc64-tdep.c: Likewise.
2052 * sparc64fbsd-tdep.c: Likewise.
2053 * sparc64nbsd-tdep.c: Likewise.
2054 * sparc64obsd-tdep.c: Likewise.
2055 * sparcnbsd-tdep.c: Likewise.
2056 * sparcobsd-tdep.c: Likewise.
2057 * spu-multiarch.c: Likewise.
2058 * spu-tdep.c: Likewise.
2059 * stabsread.c: Likewise.
2060 * stack.c: Likewise.
2061 * symfile.c: Likewise.
2062 * symtab.c: Likewise.
2063 * target-descriptions.c: Likewise.
2064 * target-memory.c: Likewise.
2065 * target.c: Likewise.
2066 * tic6x-linux-tdep.c: Likewise.
2067 * tic6x-tdep.c: Likewise.
2068 * tilegx-linux-nat.c: Likewise.
2069 * tilegx-tdep.c: Likewise.
2071 * tramp-frame.c: Likewise.
2072 * tui/tui-out.c: Likewise.
2073 * tui/tui-winsource.c: Likewise.
2074 * ui-out.c: Likewise.
2075 * user-regs.c: Likewise.
2076 * utils.c: Likewise.
2077 * v850-tdep.c: Likewise.
2078 * valops.c: Likewise.
2079 * value.c: Likewise.
2080 * varobj.c: Likewise.
2081 * vax-nat.c: Likewise.
2082 * xml-syscall.c: Likewise.
2083 * xml-tdesc.c: Likewise.
2084 * xstormy16-tdep.c: Likewise.
2085 * xtensa-linux-nat.c: Likewise.
2086 * xtensa-tdep.c: Likewise.
2088 2014-08-07 Gary Benson <gbenson@redhat.com>
2090 * common/common-defs.h: Include common-utils.h.
2091 * defs.h: Do not include common-utils.h.
2092 * common/gdb_assert.h: Likewise.
2093 * darwin-nat.h: Likewise.
2094 * nat/linux-btrace.c: Likewise.
2095 * target/waitstatus.h: Likewise.
2097 2014-08-07 Gary Benson <gbenson@redhat.com>
2099 * common/common-defs.h: Include ptid.h.
2100 * defs.h: Do not include ptid.h.
2101 * inferior.h: Likewise.
2102 * infrun.h: Likewise.
2103 * nat/linux-btrace.h: Likewise.
2104 * nat/linux-osdata.h: Likewise.
2105 * target/waitstatus.h: Likewise.
2107 2014-08-07 Gary Benson <gbenson@redhat.com>
2109 * common/common-defs.h: Include gdb_locale.h.
2110 * defs.h: Do not include gdb_locale.h.
2112 2014-08-07 Gary Benson <gbenson@redhat.com>
2114 * common/common-defs.h: Include gdb/signals.h.
2115 * defs.h: Do not include gdb/signals.h.
2117 2014-08-07 Gary Benson <gbenson@redhat.com>
2119 * common/common-defs.h: Include pathmax.h.
2120 * defs.h: Do not include pathmax.h.
2122 2014-08-07 Gary Benson <gbenson@redhat.com>
2124 * common/common-defs.h: Include libiberty.h.
2125 * defs.h: Do not include libiberty.h.
2126 * common/queue.h: Likewise.
2127 * cp-name-parser.y: Likewise.
2128 * mi/mi-cmd-catch.c: Likewise.
2129 * python/python.c: Likewise.
2131 2014-08-07 Gary Benson <gbenson@redhat.com>
2133 * common/common-defs.h: Include ansidecl.h.
2134 * defs.h: Do not include ansidecl.h.
2135 * common/buffer.h: Likewise.
2136 * common/common-utils.h: Likewise.
2138 2014-08-07 Gary Benson <gbenson@redhat.com>
2140 * common/common-defs.h: Include stddef.h.
2141 * defs.h: Do not include stddef.h.
2142 * common/common-utils.h: Likewise.
2143 * amd64fbsd-nat.c: Likewise.
2144 * bcache.c: Likewise.
2145 * charset.c: Likewise.
2146 * common/buffer.h: Likewise.
2147 * common/vec.h: Likewise.
2148 * i386bsd-nat.c: Likewise.
2149 * nat/linux-btrace.h: Likewise.
2150 * ppcfbsd-nat.c: Likewise.
2151 * ppcnbsd-tdep.h: Likewise.
2152 * ppcobsd-nat.c: Likewise.
2153 * ppcobsd-tdep.h: Likewise.
2154 * python/py-gdb-readline.c: Likewise.
2156 2014-08-07 Gary Benson <gbenson@redhat.com>
2158 * common/common-defs.h: Include stdarg.h.
2159 * defs.h: Do not include stdarg.h.
2160 * ada-lang.c: Likewise.
2161 * common/common-utils.h: Likewise.
2162 * guile/scm-string.c: Likewise.
2163 * guile/scm-utils.c: Likewise.
2164 * m32c-tdep.c: Likewise.
2166 2014-08-07 Gary Benson <gbenson@redhat.com>
2168 * common/common-defs.h: Include stdlib.h.
2169 * defs.h: Do not include stdlib.h.
2170 * addrmap.c: Likewise.
2171 * bcache.c: Likewise.
2172 * common/buffer.c: Likewise.
2173 * common/common-utils.c: Likewise.
2174 * cp-name-parser.y: Likewise.
2175 * go32-nat.c: Likewise.
2176 * mn10300-linux-tdep.c: Likewise.
2177 * nat/linux-osdata.c: Likewise.
2178 * tui/tui.c: Likewise.
2179 * windows-nat.c: Likewise.
2181 2014-08-07 Gary Benson <gbenson@redhat.com>
2183 * common/common-defs.h: Include stdio.h.
2184 * defs.h: Do not include stdio.h.
2185 * ada-lang.c: Likewise.
2186 * common/buffer.c: Likewise.
2187 * common/common-utils.c: Likewise.
2188 * cp-name-parser.y: Likewise.
2189 * gnu-nat.c: Likewise.
2190 * go32-nat.c: Likewise.
2191 * i386gnu-nat.c: Likewise.
2192 * proc-api.c: Likewise.
2193 * proc-events.c: Likewise.
2194 * proc-flags.c: Likewise.
2195 * proc-why.c: Likewise.
2196 * python/python-internal.h: Likewise.
2197 * target-memory.c: Likewise.
2198 * tui/tui-io.c: Likewise.
2199 * tui/tui.c: Likewise.
2201 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2203 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2204 (scan_dyntag_auxv): Same.
2206 2014-08-06 Yao Qi <yao@codesourcery.com>
2208 * amd64-linux-nat.c: Remove duplicated include
2210 * i386-linux-nat.c: Likewise.
2212 2014-08-06 Yao Qi <yao@codesourcery.com>
2214 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2215 operand" with "Special opcode" in comments.
2217 2014-08-05 Gary Benson <gbenson@redhat.com>
2219 * interps.c (initialize_interps): Remove prototype.
2220 (interpreter_initialized): Remove static global.
2221 (interp_add): Do not call initialize_interps.
2222 (initialize_interps): Remove function.
2224 2014-08-05 Gary Benson <gbenson@redhat.com>
2226 * utils.c (vwarning): Remove spurious va_end.
2228 2014-08-05 Alan Modra <amodra@gmail.com>
2230 * charset.c (convert_between_encodings): Cast result of obstack_base.
2231 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2232 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2233 (read_unwind_info): Use size_t for some locals.
2234 * jit.c (finalize_symtab): Likewise.
2235 * utils.c (hashtab_obstack_allocate): Likewise.
2236 * symmisc.c (print_objfile_statistics): Update format strings.
2238 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2240 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2241 (Changes in GDB 7.8): ... here.
2243 2014-08-04 Tom Tromey <tromey@redhat.com>
2245 * target.c (set_targetdebug): New function.
2246 (initialize_targets): Pass set_targetdebug when creating "set
2249 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2251 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2252 if detecting a variable-sized field that is not the last field.
2253 Fix struct type length computation.
2255 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2257 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2260 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2262 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2263 Remove "+ 8" offset in computation of CHAIN_VMA.
2265 2014-07-31 Doug Evans <dje@google.com>
2267 * inflow.c (child_terminal_inferior): Add comment.
2268 (child_terminal_ours_for_output): Add comment.
2269 (child_terminal_ours): Add comment.
2270 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2271 (linux_nat_terminal_ours): Add comment.
2273 2014-07-31 Gary Benson <gbenson@redhat.com>
2275 * common/btrace-common.h: Do not include defs.h or server.h.
2276 * nat/mips-linux-watch.h: Likewise.
2277 * gdb-dlfcn.h: Do not include defs.h.
2278 * tracefile.h: Likewise.
2280 2014-07-30 Roland McGrath <mcgrathr@google.com>
2282 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2284 2014-07-30 Tom Tromey <tromey@redhat.com>
2286 * bsd-kvm.c (bsd_kvm_open): Constify.
2287 * corelow.c (core_open): Constify.
2288 * ctf.c (ctf_open): Constify.
2289 * dbug-rom.c (dbug_open): Constify.
2290 * exec.c (exec_open): Constify.
2291 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2292 * microblaze-rom.c (picobug_open): Constify.
2293 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2295 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2296 * record-btrace.c (record_btrace_open): Constify.
2297 * record-full.c (record_full_core_open_1, record_full_open_1)
2298 (record_full_open): Constify.
2299 * remote-m32r-sdi.c (m32r_open): Constify.
2300 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2301 (rockhopper_open, lsi_open): Constify.
2302 * remote-sim.c (gdbsim_open): Constify.
2303 * remote.c (remote_open, extended_remote_open, remote_open_1):
2305 * target.h (struct target_ops) <to_open>: Make "arg" const.
2306 * tracefile-tfile.c (tfile_open): Constify.
2308 2014-07-30 Tom Tromey <tromey@redhat.com>
2310 * breakpoint.c (map_breakpoint_numbers): Update.
2311 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2312 (get_number_const): New function.
2313 (get_number): Rewrite using get_number_const.
2314 (init_number_or_range): Make "string" const.
2315 (number_is_in_list): Make "list" const.
2316 * cli/cli-utils.h (get_number_const): Declare.
2317 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2318 (init_number_or_range, number_is_in_list): Update.
2319 * printcmd.c (map_display_numbers): Update.
2320 * value.c (value_from_history_ref): Constify.
2321 * value.h (value_from_history_ref): Update.
2323 2014-07-30 Tom Tromey <tromey@redhat.com>
2325 * corefile.c (hook_type, call_extra_exec_file_hooks)
2326 (specify_exec_file_hook): Constify.
2327 * exec.c (exec_file_attach): Make "filename" const.
2328 * gdbcore.h (deprecated_exec_file_display_hook)
2329 (specify_exec_file_hook, exec_file_attach): Constify.
2330 * main.c (captured_main): Use catch_command_errors_const.
2332 2014-07-30 Tom Tromey <tromey@redhat.com>
2334 * target.c (open_target): New function.
2335 (add_target_with_completer, add_deprecated_target_alias): Use
2336 set_cmd_sfunc, set_cmd_context.
2337 (debug_to_open): Remove.
2338 (setup_target_debug): Update.
2340 2014-07-30 Yao Qi <yao@codesourcery.com>
2342 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2344 * parse.c (exp_iterate): Update comments.
2346 2014-07-30 Gary Benson <gbenson@redhat.com>
2348 * common/common-defs.h: New file.
2349 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2350 * defs.h: Include common-defs.h.
2351 Do not include config.h or build-gnulib/config.h.
2353 2014-07-30 Gary Benson <gbenson@redhat.com>
2355 * common/common-utils.h: Do not include config.h.
2356 * nat/linux-btrace.h: Likewise.
2358 2014-07-30 Gary Benson <gbenson@redhat.com>
2360 * btrace.c: Include defs.h.
2361 * common/ptid.c: Include defs.h or server.h as appropriate.
2362 * nat/mips-linux-watch.c: Likewise.
2364 2014-07-29 Tom Tromey <tromey@redhat.com>
2366 * target.c (target_is_pushed): Simplify.
2368 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2372 2014-07-29 Yao Qi <yao@codesourcery.com>
2375 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2377 2014-07-28 Doug Evans <xdje42@gmail.com>
2380 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2381 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2384 2014-07-28 Will Newton <will.newton@linaro.org>
2386 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2387 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2388 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2389 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2390 (THUMB2_EABI_SYSCALL): Likewise.
2391 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2393 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2394 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2396 2014-07-27 Doug Evans <xdje42@gmail.com>
2398 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2400 2014-07-27 Doug Evans <xdje42@gmail.com>
2402 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2404 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2405 Doug Evans <xdje42@gmail.com>
2408 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2409 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2410 * configure.ac: Try to use guild to compile an scm file, if it fails
2411 then disable guile support.
2412 * configure: Regenerate.
2413 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2415 (GUILE_COMPILED_FILES): New variable.
2416 (GUILE_FILES) Update.
2417 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2418 (stamp-guile): Compile scm files.
2419 * guile/guile.c (boot_guile_support): New function.
2420 (standard_throw_args_p): New function.
2421 (print_standard_throw_error, print_throw_error): New functions.
2422 (handle_boot_error): New function.
2423 (initialize_scheme_side): Rewrite to call boot_guile_support.
2424 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2425 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2427 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2428 Doug Evans <xdje42@gmail.com>
2431 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2432 * guile/lib/gdb/support.scm: New file.
2433 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2434 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2436 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2438 (%assert-type): Ditto, and renamed to assert-type.
2439 (%exception-print-style): Delete.
2441 2014-07-26 Doug Evans <xdje42@gmail.com>
2444 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2445 * configure: Regenerate.
2446 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2448 (PYTHON_FILES): New variable.
2449 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2450 (GUILE_FILES): New variable.
2451 (stamp-python, install-python, uninstall-python): Handle empty
2453 (stamp-guile, install-guile, uninstall-guile): Ditto.
2455 2014-07-26 Doug Evans <xdje42@gmail.com>
2458 * guile/lib/gdb.scm (pretty-printers): Export.
2459 (set-pretty-printers!): Export.
2460 * guile/lib/gdb/printing.scm (gdb module): Update.
2461 (prepend-pretty-printer!, append-pretty-printer!): Update.
2462 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2463 (pretty_printer_list_var): Delete.
2464 (pretty_printer_list): New static global.
2465 (gdbscm_pretty_printers): New function.
2466 (gdbscm_set_pretty_printers_x): New function.
2467 (ppscm_find_pretty_printer_from_gdb): Update.
2468 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2469 (gdbscm_initialize_pretty_printers): Update.
2471 2014-07-26 Doug Evans <xdje42@gmail.com>
2474 * configure.ac: Add check for header gc/gc.h.
2475 Add check for function setenv.
2476 * configure: Regenerate.
2477 * config.in: Regenerate.
2478 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2480 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2482 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2483 variation in gdbarch matching.
2485 2014-07-25 Tom Tromey <tromey@redhat.com>
2487 * exec.c (using_exec_ops): Remove.
2488 (exec_close_1): Update. Remove extraneous block, reindent.
2489 (add_target_sections): Use target_is_pushed.
2491 2014-07-25 Pedro Alves <palves@redhat.com>
2493 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2494 * monitor.c (monitor_create_inferior): Likewise.
2495 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2496 * remote-sim.c (gdbsim_create_inferior): Likewise.
2497 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2498 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2499 * windows-nat.c (do_initial_windows_stuff): Likewise.
2501 2014-07-25 Pedro Alves <palves@redhat.com>
2503 * NEWS: Mention signal passing and "signal" command changes.
2504 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2506 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2508 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2509 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2510 (jump_command): Adjust clear_proceed_status call.
2511 (signal_command): Warn if other thread that are resumed have
2512 signals that will be delivered. Adjust clear_proceed_status call.
2513 (until_next_command, finish_command)
2514 (proceed_after_attach_callback, attach_command_post_wait)
2515 (attach_command): Adjust clear_proceed_status call.
2516 * infrun.c (proceed_after_vfork_done): Likewise.
2517 (proceed_after_attach_callback): Adjust comment.
2518 (clear_proceed_status_thread): Clear stop_signal if not in pass
2520 (clear_proceed_status_callback): Delete.
2521 (clear_proceed_status): New 'step' parameter. Only clear the
2522 proceed status of threads the command being prepared is about to
2524 (proceed): If passed in an explicit signal, override stop_signal
2525 with it. Don't pass the last stop signal to the thread we're
2527 (init_wait_for_inferior): Adjust clear_proceed_status call.
2528 (switch_back_to_stepped_thread): Clear the signal if it should not
2530 * infrun.h (clear_proceed_status): New 'step' parameter.
2531 (user_visible_resume_ptid): Add comment.
2532 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2533 signal is in pass state.
2534 * remote.c (append_pending_thread_resumptions): Likewise.
2535 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2537 2014-07-25 Tom Tromey <tromey@redhat.com>
2539 * target.h (target_stopped_data_address)
2540 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2543 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2545 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2547 (avr_pointer_to_address): Likewise.
2549 2014-07-24 Tom Tromey <tromey@redhat.com>
2551 * monitor.c (compile_pattern): Update.
2552 * target.h (struct target_ops) <to_shortname, to_longname,
2555 2014-07-24 Tom Tromey <tromey@redhat.com>
2557 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2558 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2559 (add_info_alias, add_com): Make "doc" const.
2560 (print_doc_line): Make "str" const.
2561 (delete_cmd): Update.
2562 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2563 (print_doc_line): Update.
2564 * cli/cli-script.c (document_command): Update.
2565 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2566 (add_com, add_info, add_info_alias): Update.
2567 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2568 * python/py-cmd.c (cmdpy_destroyer): Update.
2570 2014-07-24 Tom Tromey <tromey@redhat.com>
2572 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2573 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2574 (help_cmd_list): Constify.
2575 (lookup_cmd): Update.
2576 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2578 (help_cmd_list, apropos_cmd): Update.
2579 * cli/cli-script.c (show_user): Update.
2580 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2581 * cli/cli-setshow.h (cmd_show_list): Update.
2582 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2583 (cmd_show_list): Update.
2584 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2585 * python/py-cmd.c (cmdpy_destroyer): Update.
2587 2014-07-24 Tom Tromey <tromey@redhat.com>
2589 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2590 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2592 * command.h (deprecate_cmd): Update.
2593 * maint.c (maintenance_do_deprecate): Add casts.
2595 2014-07-24 Tom Tromey <tromey@redhat.com>
2597 * cli/cli-decode.c (help_cmd): Make parameter "const".
2598 * cli/cli-decode.h (help_cmd): Update.
2600 2014-07-24 Tom Tromey <tromey@redhat.com>
2602 * stack.c (up_silently_base, down_silently_base): Make argument
2605 2014-07-24 Tom Tromey <tromey@redhat.com>
2607 * solib.c (solib_add): Make "pattern" const.
2608 * solib.h (solib_add): Update.
2610 2014-07-24 Tom Tromey <tromey@redhat.com>
2612 * remote.c (remote_serial_open, print_packet, putpkt)
2613 (putpkt_binary): Constify.
2614 * remote.h (putpkt): Update.
2616 2014-07-24 Tom Tromey <tromey@redhat.com>
2618 * monitor.c (monitor_open): Make "args" const.
2619 * monitor.h (monitor_open): Update.
2621 2014-07-24 Tom Tromey <tromey@redhat.com>
2623 * maint.c (match_bfd_flags): Make "string" const.
2624 (print_bfd_section_info): Remove casts.
2625 (print_objfile_section_info): Make "string" const.
2627 2014-07-24 Tom Tromey <tromey@redhat.com>
2629 * inf-child.c (inf_child_open_target): Make "arg" const.
2630 * inf-child.h (inf_child_open_target): Update.
2632 2014-07-24 Tom Tromey <tromey@redhat.com>
2634 * environ.c (unset_in_environ): Make "var" const.
2635 * environ.h (unset_in_environ): Update.
2637 2014-07-24 Tom Tromey <tromey@redhat.com>
2639 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2641 (scan_filename_with_cleanup): Likewise.
2642 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2643 Make arguments const.
2644 (restore_command): Update.
2646 2014-07-24 Pedro Alves <palves@redhat.com>
2648 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2650 2014-07-24 Tom Tromey <tromey@redhat.com>
2651 Gary Benson <gbenson@redhat.com>
2653 * nat/linux-ptrace.c (additional_flags): New global.
2654 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2655 additional_flags; don't check GDBSERVER.
2656 (linux_ptrace_set_additional_flags): New function.
2657 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2659 * linux-nat.c (_initialize_linux_nat): Call
2660 linux_ptrace_set_additional_flags.
2662 2014-07-24 Tom Tromey <tromey@redhat.com>
2664 * make-target-delegates (munge_type, write_debugmethod): New
2666 (debug_names): New global.
2667 ($TARGET_DEBUG_PRINTER): New global.
2668 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2670 Write debug methods. Generate init_debug_target.
2671 * target-debug.h: New file.
2672 * target-delegates.c: Rebuild.
2673 * target.c: Include target-debug.h.
2674 (debug_target): Hoist definition.
2675 (target_kill, target_get_section_table, target_memory_map)
2676 (target_flash_erase, target_flash_done, target_detach)
2677 (target_disconnect, target_wait, target_resume)
2678 (target_pass_signals, target_program_signals, target_follow_fork)
2679 (target_mourn_inferior, target_search_memory)
2680 (target_thread_address_space, target_close)
2681 (target_find_new_threads, target_core_of_thread)
2682 (target_verify_memory, target_insert_mask_watchpoint)
2683 (target_remove_mask_watchpoint): Remove targetdebug code.
2684 (debug_to_post_attach, debug_to_prepare_to_store)
2685 (debug_to_files_info, debug_to_insert_breakpoint)
2686 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2687 (debug_to_region_ok_for_hw_watchpoint)
2688 (debug_to_can_accel_watchpoint_condition)
2689 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2690 (debug_to_watchpoint_addr_within_range)
2691 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2692 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2693 (debug_to_terminal_init, debug_to_terminal_inferior)
2694 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2695 (debug_to_terminal_save_ours, debug_to_terminal_info)
2696 (debug_to_load, debug_to_post_startup_inferior)
2697 (debug_to_insert_fork_catchpoint)
2698 (debug_to_remove_fork_catchpoint)
2699 (debug_to_insert_vfork_catchpoint)
2700 (debug_to_remove_vfork_catchpoint)
2701 (debug_to_insert_exec_catchpoint)
2702 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2703 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2704 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2705 (setup_target_debug): Call init_debug_target.
2706 * target.h (TARGET_DEBUG_PRINTER): New macro.
2707 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2708 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2710 2014-07-24 Gary Benson <gbenson@redhat.com>
2712 * exceptions.h (throw_vfatal): Renamed to...
2713 (throw_vquit): New declaration.
2714 (throw_quit): Likewise.
2715 * exceptions.c (throw_vfatal): Renamed to...
2716 (throw_vquit): New function.
2717 (throw_quit): Likewise.
2718 (throw_error): Call throw_verror rather than throw_it.
2719 * utils.h (vfatal): Removed.
2721 * utils.c (vfatal): Removed.
2723 (internal_verror): Replaced call to fatal with call to throw_quit.
2724 (quit): Replaced calls to fatal with calls to throw_quit.
2726 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2728 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2731 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2733 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2734 less than zero in conditional expression.
2736 2014-07-23 Tom Tromey <tromey@redhat.com>
2738 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2739 ($INTRO_PART): Don't match whitespace.
2740 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2742 ($METHOD): Add $METHOD_TRAILER.
2744 (scan_target_h): New sub.
2745 Change main loop not to collect state.
2746 * target-delegates.c: Rebuild.
2748 2014-07-23 Gary Benson <gbenson@redhat.com>
2750 * cp-support.c (gdb_demangle): Fix build on systems without
2753 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2755 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2756 for reference entry value target data value.
2758 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2760 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2761 value_available_contents_eq.
2763 2014-07-22 Pedro Alves <palves@redhat.com>
2765 * value.c (allocate_optimized_out_value): Don't mark value as
2768 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2770 * MAINTAINERS (Write After Approval): Update my email address.
2772 2014-07-20 Doug Evans <dje@google.com>
2775 * remote.c (putpkt_binary): Add text to error message.
2777 2014-07-20 Yao Qi <yao@codesourcery.com>
2779 * eval.c: Remove "Chill" from comments.
2780 * gdbtypes.h: Likewise.
2781 * symtab.h: Likewise.
2783 2014-07-20 Yao Qi <yao@codesourcery.com>
2785 * std-operator.def: Update comments to TERNOP_SLICE.
2787 2014-07-20 Yao Qi <yao@codesourcery.com>
2789 * std-operator.def: Remove BINOP_RANGE.
2790 * breakpoint.c (watchpoint_exp_is_const): Update.
2791 * expprint.c (dump_subexp_body_standard): Likewise.
2792 * eval.c (init_array_element): Remove dead code.
2793 (evaluate_subexp_standard): Likewise.
2795 2014-07-20 Yao Qi <yao@codesourcery.com>
2797 * std-operator.def: Remove BINOP_IN.
2798 * breakpoint.c (watchpoint_exp_is_const): Update.
2799 * eval.c (evaluate_subexp_standard): Likewise.
2800 * expprint.c (dump_subexp_body_standard): Likewise.
2802 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2804 * microblaze-tdep.c (microblaze_register_names): Add
2805 the rshr and rslr register names.
2806 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2807 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2808 Use of tdesc_numbered_register. Use of
2809 microblaze_register_g_packet_guesses. Use of
2810 tdesc_use_registers. Use of set_gdbarch_register_type.
2811 (microblaze_register_g_packet_guesses): New.
2812 * microblaze-tdep.h (microblaze_reg_num): Add
2813 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2814 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2815 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2816 * features/microblaze-core.xml: New file.
2817 * features/microblaze-stack-protect.xml: New file.
2818 * features/microblaze-with-stack-protect.c: New file.
2819 * features/microblaze-with-stack-protect.xml: New file.
2820 * features/microblaze.xml: New file.
2821 * features/microblaze.c: New file.
2822 * features/Makefile (microblaze-with-stack-protect): Add
2823 microblaze-with-stack-protect microblaze and microblaze-expedite.
2824 * regformats/microblaze-with-stack-protect.dat: New file.
2825 * regformats/microblaze.dat: New file.
2826 * doc/gdb.texinfo (MicroBlaze Features): Added.
2828 2014-07-18 Tom Tromey <tromey@redhat.com>
2830 * exec.c (exec_ops): Now static.
2831 * exec.h (exec_ops): Don't declare.
2833 2014-07-18 Tom Tromey <tromey@redhat.com>
2835 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2836 to find_target_beneath.
2837 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2838 find_target_beneath.
2839 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2841 2014-07-18 Tom Tromey <tromey@redhat.com>
2844 * utils.c (quit): Use target_supports_terminal_ours.
2845 * target.h (target_supports_terminal_ours): Declare.
2846 * target.c (target_supports_delete_record): Don't check
2847 to_delete_record against NULL.
2848 (target_supports_terminal_ours): New function.
2850 2014-07-18 Tom Tromey <tromey@redhat.com>
2853 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2854 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2855 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2856 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2857 * windows-nat.c (windows_xfer_partial): Always delegate.
2858 * record-btrace.c (record_btrace_xfer_partial): Simplify
2860 (record_btrace_fetch_registers, record_btrace_store_registers)
2861 (record_btrace_prepare_to_store, record_btrace_resume)
2862 (record_btrace_wait, record_btrace_find_new_threads)
2863 (record_btrace_thread_alive): Likewise.
2864 * procfs.c (procfs_xfer_partial): Always delegate.
2865 * corelow.c (core_xfer_partial): Always delegate.
2866 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2868 2014-07-18 Tom Tromey <tromey@redhat.com>
2870 * exec.c (exec_make_note_section): Move earlier.
2872 2014-07-17 Doug Evans <dje@google.com>
2875 * maint.c (count_symtabs_and_blocks): Handle NULL
2876 current_program_space.
2877 (report_command_stats): Check global enabled flag in addition to
2878 recorded enabled flag.
2879 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2881 2014-07-16 Pedro Alves <palves@redhat.com>
2883 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2885 2014-07-16 Tom Tromey <tromey@redhat.com>
2887 * target.h (struct target_ops) <to_delete_record>: Reformat
2890 2014-07-16 Tom Tromey <tromey@redhat.com>
2892 * target-delegates.c: Rebuild.
2894 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2896 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2897 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2898 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2899 (avr_pointer_to_address): Likewise.
2900 (avr_address_class_type_flags): New function.
2901 (avr_address_class_type_flags_to_name): Likewise.
2902 (avr_address_class_name_to_type_flags): Likewise.
2903 (avr_gdbarch_init): Set address_class_type_flags,
2904 address_class_type_flags_to_name and
2905 address_class_name_to_type_flags.
2907 2014-07-15 Pedro Alves <palves@redhat.com>
2909 * linux-nat.c (kill_callback): Save errno and work with saved
2912 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2914 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2916 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2918 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2919 breakpoint support correctly.
2921 2014-07-14 Pedro Alves <palves@redhat.com>
2923 * utils.c (prompt_for_continue): Call target_terminal_ours.
2925 2014-07-14 Pedro Alves <palves@redhat.com>
2927 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2928 catch_errors. Don't re-enable stdin or notify observers where,
2930 (fetch_inferior_event_wrapper): Delete.
2932 2014-07-14 Pedro Alves <palves@redhat.com>
2935 * top.c: Include "inf-loop.h".
2936 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2938 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2940 (gdb_readline_wrapper): Store whether the target is async, and
2943 2014-07-14 Pedro Alves <palves@redhat.com>
2946 * top.c (gdb_readline_wrapper_line): Tweak comment.
2947 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2948 the input handler callback.
2950 2014-07-14 Pedro Alves <palves@redhat.com>
2953 * main.c: Include event-top.h.
2954 (handle_command_errors): New function.
2955 (catch_command_errors, catch_command_errors_const): Use it.
2957 2014-07-14 Pedro Alves <palves@redhat.com>
2959 * exceptions.c (catch_command_errors, catch_command_errors_const):
2961 * exceptions.h (catch_command_errors_ftype)
2962 (catch_command_errors_const_ftype): Moved to main.c.
2963 (catch_command_errors, catch_command_errors_const): Delete
2965 * main.c (catch_command_errors_ftype)
2966 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2967 (catch_command_errors, catch_command_errors_const)): Moved here
2968 from exceptions.c and make static.
2970 2014-07-14 Pedro Alves <palves@redhat.com>
2972 * exceptions.c (print_any_exception): Delete.
2973 (catch_exceptions_with_msg): Use exception_print instead of
2974 print_any_exception.
2975 (catch_errors): Use exception_fprintf instead of
2976 print_any_exception.
2977 (catch_command_errors, catch_command_errors_const): Use
2978 exception_print instead of print_any_exception.
2980 2014-07-14 Pedro Alves <palves@redhat.com>
2982 * infcall.c (run_inferior_call): Set 'sync_execution' while
2983 running the inferior call.
2985 2014-07-14 Pedro Alves <palves@redhat.com>
2987 * value.c (value_contents_equal): Delete function.
2988 * value.h (value_contents_equal): Delete declaration.
2990 2014-07-14 Tom Tromey <tromey@redhat.com>
2993 * gdbtypes.c (is_dynamic_type_internal): New function, from
2995 (is_dynamic_type): Rewrite.
2996 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2997 (resolve_dynamic_struct): Likewise.
2998 (resolve_dynamic_type_internal): New function, from
2999 resolve_dynamic_type.
3000 (resolve_dynamic_type): Rewrite.
3002 2014-07-14 Tom Tromey <tromey@redhat.com>
3004 * target.c (target_require_runnable): Also check record_stratum.
3007 2014-07-11 Yao Qi <yao@codesourcery.com>
3009 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3010 thumb_instruction_restores_sp return true.
3012 2014-07-11 Yao Qi <yao@codesourcery.com>
3014 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3015 (thumb_in_function_epilogue_p): Call
3016 thumb_instruction_restores_sp.
3018 2014-07-11 Yao Qi <yao@codesourcery.com>
3020 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3022 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3024 2014-07-11 Gary Benson <gbenson@redhat.com>
3026 * amd64-linux-nat.c (gdbcore.h): Remove include.
3027 (regset.h): Likewise.
3028 (nat/linux-btrace.h): Likewise.
3029 (btrace.h): Likewise.
3030 (gdb_assert.h): Likewise.
3031 (string.h): Likewise.
3032 (sys/uio.h): Likewise.
3033 (sys/debugreg.h): Likewise.
3034 (sys/syscall.h): Likewise.
3035 (sys/procfs.h): Likewise.
3036 (sys/user.h): Likewise.
3037 (asm/ptrace.h): Likewise.
3038 (i386-nat.h): Likewise.
3039 * i386-linux-nat.c (i386-nat.h): Likewise.
3040 (regset.h): Likewise.
3041 (target.h): Likewise.
3042 (linux-nat.h): Likewise.
3043 (nat/linux-btrace.h): Likewise.
3044 (btrace.h): Likewise.
3045 (gdb_assert.h): Likewise.
3046 (string.h): Likewise.
3047 (sys/uio.h): Likewise.
3048 (sys/user.h): Likewise.
3049 (sys/procfs.h): Likewise.
3050 (sys/reg.h): Likewise.
3051 (sys/debugreg.h): Likewise.
3052 (ORIG_EAX): Remove definition.
3054 2014-07-11 Gary Benson <gbenson@redhat.com>
3056 * i386-linux-nat.h: New file.
3057 * x86-linux-nat.h: Likewise.
3058 * x86-linux-nat.c: Likewise.
3059 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3060 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3061 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3062 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3063 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3064 (PTRACE_SETREGSET): Likewise.
3065 (arch_lwp_info): Now in x86-linux-nat.c.
3066 (have_ptrace_getregset): Now in x86-linux-nat.h.
3067 (x86_linux_dr_get): Now in x86-linux-nat.c.
3068 (x86_linux_dr_set): Likewise.
3069 (x86_linux_dr_get_addr): Likewise.
3070 (x86_linux_dr_get_control): Likewise.
3071 (x86_linux_dr_get_status): Likewise.
3072 (update_debug_registers_callback): Likewise.
3073 (x86_linux_dr_set_control): Likewise.
3074 (x86_linux_dr_set_addr): Likewise.
3075 (x86_linux_prepare_to_resume): Likewise.
3076 (x86_linux_new_thread): Likewise.
3077 (x86_linux_new_fork): Likewise.
3078 (x86_linux_get_thread_area): Likewise.
3079 (super_post_startup_inferior): Likewise.
3080 (x86_linux_child_post_startup_inferior): Likewise.
3081 (AMD64_LINUX_USER64_CS): Likewise.
3082 (AMD64_LINUX_X32_DS): Likewise.
3083 (x86_linux_read_description): Likewise.
3084 (x86_linux_enable_btrace): Likewise.
3085 (x86_linux_disable_btrace): Likewise.
3086 (x86_linux_teardown_btrace): Likewise.
3087 (x86_linux_read_btrace): Likewise.
3088 (x86_linux_create_target): Likewise.
3089 (x86_linux_add_target): Likewise.
3090 * i386-linux-nat.c (x86-linux-nat.h): New include.
3091 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3092 (PTRACE_SETREGSET): Likewise.
3093 (arch_lwp_info): Now in x86-linux-nat.c.
3094 (have_ptrace_getregset): Now in x86-linux-nat.h.
3095 (x86_linux_dr_get): Now in x86-linux-nat.c.
3096 (x86_linux_dr_set): Likewise.
3097 (x86_linux_dr_get_addr): Likewise.
3098 (x86_linux_dr_get_control): Likewise.
3099 (x86_linux_dr_get_status): Likewise.
3100 (update_debug_registers_callback): Likewise.
3101 (x86_linux_dr_set_control): Likewise.
3102 (x86_linux_dr_set_addr): Likewise.
3103 (x86_linux_prepare_to_resume): Likewise.
3104 (x86_linux_new_thread): Likewise.
3105 (x86_linux_new_fork): Likewise.
3106 (x86_linux_get_thread_area): Likewise.
3107 (super_post_startup_inferior): Likewise.
3108 (x86_linux_child_post_startup_inferior): Likewise.
3109 (AMD64_LINUX_USER64_CS): Likewise.
3110 (AMD64_LINUX_X32_DS): Likewise.
3111 (x86_linux_read_description): Likewise.
3112 (x86_linux_enable_btrace): Likewise.
3113 (x86_linux_disable_btrace): Likewise.
3114 (x86_linux_teardown_btrace): Likewise.
3115 (x86_linux_read_btrace): Likewise.
3116 (x86_linux_create_target): Likewise.
3117 (x86_linux_add_target): Likewise.
3119 2014-07-11 Gary Benson <gbenson@redhat.com>
3121 * amd64-linux-nat.c: Comment and whitespace changes.
3122 * i386-linux-nat.c: Comment and whitespace changes.
3124 2014-07-11 Gary Benson <gbenson@redhat.com>
3126 * amd64-linux-nat.c (x86_linux_create_target): New function.
3127 (x86_linux_add_target): Likewise.
3128 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3129 * i386-linux-nat.c (x86_linux_create_target): New function.
3130 (x86_linux_add_target): Likewise.
3131 (_initialize_i386_linux_nat): Delegate to the above new functions.
3133 2014-07-11 Gary Benson <gbenson@redhat.com>
3135 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3136 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3137 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3138 (ps_get_thread_area): Delegate to the above.
3140 2014-07-11 Gary Benson <gbenson@redhat.com>
3142 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3143 x86_linux_read_description. All uses updated. amd64-specific
3144 code conditionalized. Conditionalized i386-specific code added.
3145 Redundant cast removed.
3146 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3147 x86_linux_read_description. All uses updated. i386-specific
3148 code conditionalized. Conditionalized amd64-specific code added.
3149 One sizeof replaced with the actual type it is describing.
3151 2014-07-11 Gary Benson <gbenson@redhat.com>
3153 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3154 x86_linux_dr_get. All uses updated.
3155 (amd64_linux_dr_set): Renamed to
3156 x86_linux_dr_set. All uses updated.
3157 (amd64_linux_dr_get_addr): Renamed to
3158 x86_linux_dr_get_addr. All uses updated.
3159 (amd64_linux_dr_get_control): Renamed to
3160 x86_linux_dr_get_control. All uses updated.
3161 (amd64_linux_dr_get_status): Renamed to
3162 x86_linux_dr_get_status. All uses updated.
3163 (amd64_linux_dr_set_control): Renamed to
3164 x86_linux_dr_set_control. All uses updated.
3165 (amd64_linux_dr_set_addr): Renamed to
3166 x86_linux_dr_set_addr. All uses updated.
3167 (amd64_linux_prepare_to_resume): Renamed to
3168 x86_linux_prepare_to_resume. All uses updated.
3169 (amd64_linux_new_thread): Renamed to
3170 x86_linux_new_thread. All uses updated.
3171 (amd64_linux_new_fork): Renamed to
3172 x86_linux_new_fork. All uses updated.
3173 (amd64_linux_child_post_startup_inferior): Renamed to
3174 x86_linux_child_post_startup_inferior. All uses updated.
3175 (amd64_linux_enable_btrace): Renamed to
3176 x86_linux_enable_btrace. All uses updated.
3177 (amd64_linux_disable_btrace): Renamed to
3178 x86_linux_disable_btrace. All uses updated.
3179 (amd64_linux_teardown_btrace): Renamed to
3180 x86_linux_teardown_btrace. All uses updated.
3181 (amd64_linux_read_btrace): Renamed to
3182 x86_linux_read_btrace. All uses updated.
3183 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3184 x86_linux_dr_get. All uses updated.
3185 (i386_linux_dr_set): Renamed to
3186 x86_linux_dr_set. All uses updated.
3187 (i386_linux_dr_get_addr): Renamed to
3188 x86_linux_dr_get_addr. All uses updated.
3189 (i386_linux_dr_get_control): Renamed to
3190 x86_linux_dr_get_control. All uses updated.
3191 (i386_linux_dr_get_status): Renamed to
3192 x86_linux_dr_get_status. All uses updated.
3193 (i386_linux_dr_set_control): Renamed to
3194 x86_linux_dr_set_control. All uses updated.
3195 (i386_linux_dr_set_addr): Renamed to
3196 x86_linux_dr_set_addr. All uses updated.
3197 (i386_linux_prepare_to_resume): Renamed to
3198 x86_linux_prepare_to_resume. All uses updated.
3199 (i386_linux_new_thread): Renamed to
3200 x86_linux_new_thread. All uses updated.
3201 (i386_linux_new_fork): Renamed to
3202 x86_linux_new_fork. All uses updated.
3203 (i386_linux_child_post_startup_inferior): Renamed to
3204 x86_linux_child_post_startup_inferior. All uses updated.
3205 (i386_linux_enable_btrace): Renamed to
3206 x86_linux_enable_btrace. All uses updated.
3207 (i386_linux_disable_btrace): Renamed to
3208 x86_linux_disable_btrace. All uses updated.
3209 (i386_linux_teardown_btrace): Renamed to
3210 x86_linux_teardown_btrace. All uses updated.
3211 (i386_linux_read_btrace): Renamed to
3212 x86_linux_read_btrace. All uses updated.
3214 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3216 * remote.c (extended_remote_post_attach): New function.
3217 (init_extended_remote_ops): Install it as to_post_attach method.
3219 2014-07-09 Pedro Alves <palves@redhat.com>
3221 * infcmd.c (attach_command_post_wait): Don't call
3222 target_terminal_inferior here.
3223 (attach_command): Call it here instead.
3225 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3227 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3229 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3230 from varobj.c, with additional checks.
3231 (c_varobj_ops): Fill in is_path_expr_parent field.
3232 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3233 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3235 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3237 (varobj_default_is_path_expr_parent): New function.
3238 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3239 (varobj_default_is_path_expr_parent): Declare new function.
3241 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3243 * infcmd.c (finish_backward): Turn internal error into normal error.
3245 2014-07-07 Pedro Alves <palves@redhat.com>
3248 * remote.c (async_handle_remote_sigint)
3249 (async_handle_remote_sigint_twice): Call
3250 gdb_call_async_signal_handler instead of
3251 mark_async_signal_handler.
3253 2014-07-07 Tom Tromey <tromey@redhat.com>
3255 * target-delegates.c: Rebuild.
3256 * target.c (target_info_record): Remove.
3257 * record.c (info_record_command): Unconditionally call
3259 * target.h (struct target_ops) <to_info_record>: Use
3260 TARGET_DEFAULT_IGNORE.
3261 (target_info_record): Remove.
3263 2014-07-07 Tom Tromey <tromey@redhat.com>
3265 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3266 TARGET_DEFAULT_NORETURN.
3267 * target.c (generic_tls_error): New function.
3268 (target_translate_tls_address): Don't search target stack.
3269 * target-delegates.c: Rebuild.
3270 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3272 * linux-thread-db.c (thread_db_get_thread_local_address):
3273 Unconditionally call beneath target.
3275 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3277 * cli/cli-logging.c (pop_output_files): Assign targerr to
3280 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3282 * MAINTAINERS (Write After Approval): Update my email address.
3284 2014-07-02 Gary Benson <gbenson@redhat.com>
3286 * proc-service.c (ps_xfer_memory): Update comment.
3287 (ps_pstop): Remove unused function.
3288 (ps_pcontinue): Likewise.
3289 (ps_lstop): Likewise.
3290 (ps_lcontinue): Likewise.
3291 (ps_lgetxregsize): Likewise.
3292 (ps_lgetxregs): Likewise.
3293 (ps_lsetxregs): Likewise.
3294 (ps_plog): Likewise.
3295 (ps_ptread): Likewise.
3296 (ps_ptwrite): Likewise.
3298 2014-07-01 Mark Wielaard <mjw@redhat.com>
3300 * dwarf2read.c (add_array_cv_type): New function.
3301 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3302 (read_tag_volatile_type): Likewise.
3304 2014-07-01 Tom Tromey <tromey@redhat.com>
3306 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3307 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3308 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3309 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3310 * command.h (cmd_cfunc_ftype): Move earlier.
3311 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3312 (add_com, add_info): Use cmd_cfunc_ftype.
3314 2014-06-30 Tom Tromey <tromey@redhat.com>
3316 * symtab.c (operator_chars): Make parameters and return type
3318 (file_matches): Make "files" const.
3319 (struct search_symbols_data) <files>: Now const.
3320 (search_symbols): Make "regexp" and "files" parameters const.
3322 (symtab_symbol_info): Remove cast.
3323 (rbreak_command): Update.
3324 * symtab.h (search_symbols): Update.
3326 2014-06-27 Yao Qi <yao@codesourcery.com>
3328 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3329 Change parameter type to 'struct thread_info *'. Caller
3331 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3333 * dummy-frame.c (struct dummy_frame_id): New.
3334 (dummy_frame_id_eq): New function.
3335 (struct dummy_frame) <id>: Change its type to 'struct
3337 (dummy_frame_push): Add parameter ptid and save it in
3339 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3341 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3343 (lookup_dummy_frame): Change parameter type to 'struct
3344 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3345 instead of frame_id_eq.
3346 (dummy_frame_pop): Add parameter ptid. Callers updated.
3347 Update comments. Compose dummy_frame_id and pass it to
3349 (dummy_frame_discard): Add parameter ptid.
3350 (dummy_frame_sniffer): Compose dummy_frame_id and call
3351 dummy_frame_id_eq instead of frame_id_eq.
3352 (fprint_dummy_frames): Print ptid.
3353 * dummy-frame.h: Remove comments.
3354 (dummy_frame_push): Add ptid in declaration.
3355 (dummy_frame_pop, dummy_frame_discard): Likewise.
3357 2014-06-26 Tom Tromey <tromey@redhat.com>
3359 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3360 * command.h (error_no_arg): Update.
3362 2014-06-26 Tom Tromey <tromey@redhat.com>
3364 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3365 (do_show_command): Make "arg" const.
3366 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3368 2014-06-26 Tom Tromey <tromey@redhat.com>
3370 * record-full.c (record_full_get_bookmark): Make "args" const.
3371 (record_full_goto_bookmark): Make "raw_bookmark" const.
3372 * record.c (record_goto): New function.
3373 (cmd_record_goto): Use it. Now static.
3374 * record.h (record_goto): Declare.
3375 (cmd_record_goto): Remove declaration.
3376 * target-delegates.c: Rebuild.
3377 * target.h (struct target_ops) <to_get_bookmark,
3378 to_goto_bookmark>: Make parameter const.
3380 2014-06-26 Tom Tromey <tromey@redhat.com>
3382 * defs.h (generic_load): Update.
3383 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3384 * monitor.c (monitor_load): Make "args" const.
3385 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3386 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3388 (mips_load): Make "file" const.
3389 * remote-sim.c (gdbsim_load): Make "args" const.
3390 * remote.c (remote_load): Make "name" const.
3391 * symfile.c (generic_load): Make "args" const.
3392 * target-delegates.c: Rebuild.
3393 * target.c (target_load): Make "arg" const.
3394 (debug_to_load): Make "args" const.
3395 * target.h (struct target_ops) <to_load>: Make parameter const.
3396 (target_load): Update.
3398 2014-06-26 Tom Tromey <tromey@redhat.com>
3401 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3402 (dwarf2_physname, read_partial_die)
3403 (guess_partial_die_structure_name, fixup_partial_die)
3404 (guess_full_die_structure_name, anonymous_struct_prefix)
3405 (dwarf2_name): Use per-BFD obstack.
3407 2014-06-26 Yao Qi <yao@codesourcery.com>
3409 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3410 dummyframe and this_id into inner block below.
3412 2014-06-26 Yao Qi <yao@codesourcery.com>
3414 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3415 with "signal_pass[0]" in the initialization of signal_pass.
3417 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3419 * record-btrace.c (record_btrace_generating_corefile)
3420 (record_btrace_prepare_to_generate_core)
3421 (record_btrace_done_generating_core): New.
3422 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3423 (record_btrace_store_registers, record_btrace_prepare_to_store):
3424 Forward request when generating a core file.
3425 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3426 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3427 to_done_generating_core.
3429 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3431 * target.h (target_ops) <to_prepare_to_generate_core>
3432 <to_done_generating_core>: New.
3433 (target_prepare_to_generate_core, target_done_generating_core): New.
3434 * target.c (target_prepare_to_generate_core)
3435 (target_done_generating_core): New.
3436 * target-delegates.c: Regenerate.
3437 * gcore.c: (write_gcore_file): Rename to ...
3438 (write_gcore_file_1): ...this.
3439 (write_gcore_file): Call target_prepare_to_generate_core
3440 and target_done_generating_core.
3442 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3444 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3445 * gcore.c (write_gcore_file): Free memory returned from
3446 make_corefile_notes.
3447 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3448 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3450 2014-06-24 Yao Qi <yao@codesourcery.com>
3452 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3453 (arm_linux_init_abi): Set skip_trampoline_code with
3454 gdbarch_skip_trampoline_code instead of
3455 find_solib_trampoline_target.
3457 2014-06-24 Yao Qi <yao@codesourcery.com>
3459 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3460 arm_skip_bx_reg returns non-zero.
3462 2014-06-24 Yao Qi <yao@codesourcery.com>
3464 * arm-tdep.c (arm_skip_bx_reg): New function.
3465 (arm_skip_stub): Call arm_skip_bx_reg.
3467 2014-06-23 Don Breazeal <donb@codesourcery.com>
3469 * MAINTAINERS: Add myself as write-after-approval maintainer.
3471 2014-06-23 Pedro Alves <palves@redhat.com>
3473 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3474 DR_CONTROL before setting DR0..DR3.
3475 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3476 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3477 bits of DR_CONTROL related to the debug register slot being
3478 disabled. If all slots are vacant, clear local slowdown as well,
3479 and assert DR_CONTROL is 0.
3481 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3483 * python/lib/gdb/command/xmethods.py
3484 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3485 current progspace only if the string "progspace" matches LOCUS_RE.
3487 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3489 Fix --with-system-readline with readline-6.3 patch 5.
3490 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3491 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3494 2014-06-20 Tom Tromey <tromey@redhat.com>
3496 * dwarf2read.c (dw2_get_real_path): Use correct type in
3498 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3500 2014-06-20 Gary Benson <gbenson@redhat.com>
3502 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3503 * common/glibc_thread_db.h: Likewise.
3504 * common/i386-cpuid.h: Likewise.
3505 * common/i386-gcc-cpuid.h: Likewise.
3506 * common/linux-btrace.h: Likewise.
3507 * common/linux-osdata.h: Likewise.
3508 * common/linux-procfs.h: Likewise.
3509 * common/linux-ptrace.h: Likewise.
3510 * common/mips-linux-watch.h: Likewise.
3511 * common/linux-btrace.c: Moved to nat.
3512 * common/linux-osdata.c: Likewise.
3513 * common/linux-procfs.c: Likewise.
3514 * common/linux-ptrace.c: Likewise.
3515 * common/mips-linux-watch.c: Likewise.
3516 * nat/gdb_thread_db.h: Moved from common.
3517 * nat/glibc_thread_db.h: Likewise.
3518 * nat/i386-cpuid.h: Likewise.
3519 * nat/i386-gcc-cpuid.h: Likewise.
3520 * nat/linux-btrace.c: Likewise.
3521 * nat/linux-btrace.h: Likewise.
3522 * nat/linux-osdata.c: Likewise.
3523 * nat/linux-osdata.h: Likewise.
3524 * nat/linux-procfs.c: Likewise.
3525 * nat/linux-procfs.h: Likewise.
3526 * nat/linux-ptrace.c: Likewise.
3527 * nat/linux-ptrace.h: Likewise.
3528 * nat/mips-linux-watch.c: Likewise.
3529 * nat/mips-linux-watch.h: Likewise.
3530 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3531 (object file files): Reordered.
3532 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3533 of glibc_thread_db.h.
3535 2014-06-20 Gary Benson <gbenson@redhat.com>
3537 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3538 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3539 (i386_dr_low): Likewise.
3540 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3541 (i386_dr_low_set_addr): Likewise.
3542 (i386_dr_low_get_addr): Likewise.
3543 (i386_dr_low_can_set_control): Likewise.
3544 (i386_dr_low_set_control): Likewise.
3545 (i386_dr_low_get_control): Likewise.
3546 (i386_dr_low_get_status): Likewise.
3547 (i386_get_debug_register_length): Likewise.
3548 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3549 (i386_dr_low): Likewise.
3550 * nat/i386-dregs.c (i386-low.h): Remove include.
3551 (i386-nat.h): Likewise.
3552 (nat/i386-dregs.h): New include.
3553 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3554 (i386_dr_low_set_addr): Likewise.
3555 (i386_dr_low_get_addr): Likewise.
3556 (i386_dr_low_can_set_control): Likewise.
3557 (i386_dr_low_set_control): Likewise.
3558 (i386_dr_low_get_control): Likewise.
3559 (i386_dr_low_get_status): Likewise.
3560 (i386_get_debug_register_length): Likewise.
3561 (debug_hw_points): Likewise.
3563 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3565 * Makefile.in (SFILES): Add d-exp.y.
3566 (YYFILES): Add d-exp.c.
3567 (YYOBJ): Add d-exp.o.
3568 (local-maintainer-clean): Delete d-exp.c.
3569 * d-exp.y: New file.
3570 * d-lang.h (d_parse): New declaration.
3571 (d_error): New declaration.
3572 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3573 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3574 PREC_ORDER operators.
3575 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3577 2014-06-19 Yao Qi <yao@codesourcery.com>
3579 * gdbthread.h (any_running): Remove the declaration.
3580 * thread.c (any_running): Remove.
3582 2014-06-19 Yao Qi <yao@codesourcery.com>
3584 * gdbthread.h (struct thread_info) <state>: Change its type to
3585 'enum thread_state'. Update comments.
3587 2014-06-19 Pedro Alves <palves@redhat.com>
3589 * gdbthread.h (ALL_THREADS): Delete.
3590 (ALL_NON_EXITED_THREADS): New macro.
3591 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3592 instead of ALL_THREADS.
3593 * infrun.c (find_thread_needs_step_over)
3594 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3595 instead of ALL_THREADS.
3596 * record-btrace.c (record_btrace_open)
3597 (record_btrace_stop_recording, record_btrace_close)
3598 (record_btrace_is_replaying, record_btrace_resume)
3599 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3600 * remote.c (append_pending_thread_resumptions): Likewise.
3601 * thread.c (thread_apply_all_command): Likewise.
3603 2014-06-19 Gary Benson <gbenson@redhat.com>
3605 * i386-nat.c (i386_stopped_by_watchpoint):
3606 Use i386_dr_stopped_by_watchpoint.
3607 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3608 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3610 2014-06-19 Gary Benson <gbenson@redhat.com>
3612 * nat/i386-dregs.c: New file.
3613 * Makefile.in (i386-dregs.o): New rule.
3614 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3615 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3616 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3617 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3618 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3619 * config/i386/go32.mh (NATDEPFILES): Likewise.
3620 * config/i386/linux.mh (NATDEPFILES): Likewise.
3621 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3622 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3623 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3624 * i386-nat.h (debug_hw_points): New declaration.
3625 * i386-nat.c (breakpoint.h): Remove include.
3626 (command.h): Likewise.
3627 (target.h): Likewise.
3628 (gdb_assert.h): Likewise.
3629 (debug_hw_points): Made nonstatic.
3630 (debug_printf): Now in i386-dregs.c.
3631 (TARGET_HAS_DR_LEN_8): Likewise.
3632 (DR_CONTROL_SHIFT): Likewise.
3633 (DR_CONTROL_SIZE): Likewise.
3634 (DR_RW_EXECUTE): Likewise.
3635 (DR_RW_WRITE): Likewise.
3636 (DR_RW_READ): Likewise.
3637 (DR_RW_IORW): Likewise.
3638 (DR_LEN_1): Likewise.
3639 (DR_LEN_2): Likewise.
3640 (DR_LEN_4): Likewise.
3641 (DR_LEN_8): Likewise.
3642 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3643 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3644 (DR_ENABLE_SIZE): Likewise.
3645 (DR_LOCAL_SLOWDOWN): Likewise.
3646 (DR_GLOBAL_SLOWDOWN): Likewise.
3647 (DR_CONTROL_RESERVED): Likewise.
3648 (I386_DR_CONTROL_MASK): Likewise.
3649 (I386_DR_VACANT): Likewise.
3650 (I386_DR_LOCAL_ENABLE): Likewise.
3651 (I386_DR_GLOBAL_ENABLE): Likewise.
3652 (I386_DR_DISABLE): Likewise.
3653 (I386_DR_SET_RW_LEN): Likewise.
3654 (I386_DR_GET_RW_LEN): Likewise.
3655 (I386_DR_WATCH_HIT): Likewise.
3656 (i386_wp_op_t): Likewise.
3657 (i386_show_dr): Likewise.
3658 (i386_length_and_rw_bits): Likewise.
3659 (i386_insert_aligned_watchpoint): Likewise.
3660 (i386_remove_aligned_watchpoint): Likewise.
3661 (i386_handle_nonaligned_watchpoint): Likewise.
3662 (i386_update_inferior_debug_regs): Likewise.
3663 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3664 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3665 (i386_region_ok_for_watchpoint):
3666 Use i386_dr_region_ok_for_watchpoint.
3667 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3669 2014-06-19 Gary Benson <gbenson@redhat.com>
3671 * i386-nat.c (i386_insert_hw_breakpoint): Use
3672 i386_insert_watchpoint.
3673 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3675 2014-06-19 Gary Benson <gbenson@redhat.com>
3677 * i386-nat.c (i386_dr_show): Renamed to
3678 i386_show_dr and made static. All uses updated.
3679 (i386_dr_length_and_rw_bits): Renamed to
3680 i386_length_and_rw_bits and made static.
3682 (i386_dr_insert_aligned_watchpoint): Renamed to
3683 i386_insert_aligned_watchpoint and made static.
3685 (i386_dr_remove_aligned_watchpoint): Renamed to
3686 i386_remove_aligned_watchpoint and made static.
3688 (i386_dr_update_inferior_debug_regs): Renamed to
3689 i386_update_inferior_debug_regs and made static.
3691 * nat/i386-dregs.h (i386_dr_show): Removed.
3692 (i386_dr_length_and_rw_bits): Likewise.
3693 (i386_dr_insert_aligned_watchpoint): Likewise.
3694 (i386_dr_remove_aligned_watchpoint): Likewise.
3695 (i386_dr_update_inferior_debug_regs): Likewise.
3697 2014-06-19 Gary Benson <gbenson@redhat.com>
3699 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3700 * configure: Regenerate.
3701 * config.in: Likewise.
3702 * main.c (signal.h): New include.
3703 (setup_alternate_signal_stack): New function.
3704 (captured_main): Call the above.
3705 * cp-support.c (signal.h): New include.
3706 (catch_demangler_crashes): New flag.
3707 (SIGJMP_BUF): New define.
3708 (SIGSETJMP): Likewise.
3709 (SIGLONGJMP): Likewise.
3710 (gdb_demangle_jmp_buf): New static global.
3711 (gdb_demangle_attempt_core_dump): Likewise.
3712 (gdb_demangle_signal_handler): New function.
3713 (gdb_demangle): If catch_demangler_crashes is set, install the
3714 above signal handler before calling bfd_demangle, and restore
3715 the original signal handler afterwards. Display the offending
3716 symbol and call demangler_warning the first time a segmentation
3718 (_initialize_cp_support): New maint set/show command.
3720 2014-06-19 Gary Benson <gbenson@redhat.com>
3722 * utils.h (resource_limit_kind): New enum.
3723 (can_dump_core): New declaration.
3724 (warn_cant_dump_core): Likewise.
3725 (dump_core): Likewise.
3726 * utils.c (dump_core): Made nonstatic. Added new
3727 parameter "limit_kind".
3728 (can_dump_core): Made nonstatic. Moved printing code to...
3729 (warn_cant_dump_core): New function.
3730 (can_dump_core_warn): Likewise.
3731 (internal_vproblem): Replace calls to can_dump_core with
3732 calls to can_dump_core_warn. Supply new argument to each.
3734 2014-06-19 Gary Benson <gbenson@redhat.com>
3736 * utils.h (demangler_vwarning): New declaration.
3737 (demangler_warning): Likewise.
3738 * utils.c (struct internal_problem)
3739 <user_settable_should_quit>: New field.
3740 <user_settable_should_dump_core>: Likewise
3741 (internal_error_problem): Add values for above new fields.
3742 (internal_warning_problem): Likewise.
3743 (demangler_warning_problem): New static global.
3744 (demangler_vwarning): New function.
3745 (demangler_warning): Likewise.
3746 (add_internal_problem_command): Selectively add commands.
3747 (_initialize_utils): New internal problem command.
3748 * maint.c (maintenance_demangler_warning): New function.
3749 (_initialize_maint_cmds): New command.
3751 2014-06-18 Tom Tromey <tromey@redhat.com>
3753 * f-valprint.c (info_common_command_for_block): Update.
3754 * symtab.h (struct general_symbol_info) <common_block>: Now
3757 2014-06-18 Tom Tromey <tromey@redhat.com>
3759 * symtab.h (struct symtab) <blockvector>: Now const.
3760 * ada-lang.c (ada_add_global_exceptions): Update.
3761 * buildsym.c (augment_type_symtab): Update.
3762 * dwarf2read.c (dw2_lookup_symbol): Update.
3763 * jit.c (finalize_symtab): Update.
3764 * jv-lang.c (add_class_symtab_symbol): Update.
3765 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3767 * objfiles.c (objfile_relocate1): Update.
3768 * psymtab.c (lookup_symbol_aux_psymtabs)
3769 (maintenance_check_psymtabs): Update.
3770 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3772 * spu-tdep.c (spu_catch_start): Update.
3773 * symmisc.c (dump_symtab_1): Update.
3774 * symtab.c (lookup_global_symbol_from_objfile)
3775 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3776 (basic_lookup_transparent_type_quick)
3777 (basic_lookup_transparent_type, find_pc_sect_symtab)
3778 (find_pc_sect_line, search_symbols): Update.
3779 * block.c (find_block_in_blockvector): Make "bl" const.
3780 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3782 (blockvector_contains_pc): Make "bv" const.
3783 (block_for_pc_sect): Update.
3784 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3785 (blockvector_contains_pc): Update.
3786 * breakpoint.c (resolve_sal_pc): Update.
3787 * inline-frame.c (block_starting_point_at): Update.
3789 2014-06-18 Tom Tromey <tromey@redhat.com>
3791 * completer.c (complete_line): Make "line_buffer" const.
3792 * completer.h (complete_line): Update.
3794 2014-06-18 Tom Tromey <tromey@redhat.com>
3796 * symtab.c (add_macro_name): Remove unneeded cast.
3798 2014-06-18 Tom Tromey <tromey@redhat.com>
3800 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3801 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3803 2014-06-18 Tom Tromey <tromey@redhat.com>
3805 * probe.c (info_probes_for_ops): Make "arg" const.
3806 * probe.h (info_probes_for_ops): Update.
3808 2014-06-18 Tom Tromey <tromey@redhat.com>
3810 * varobj.c (varobj_create): Update.
3811 * valops.c (value_of_this): Update.
3812 * tracepoint.c (add_local_symbols, scope_info): Update.
3813 * symtab.h (struct general_symbol_info) <block>: Now const.
3814 * symtab.c (skip_prologue_sal)
3815 (default_make_symbol_completion_list_break_on)
3816 (skip_prologue_using_sal): Update.
3817 * stack.h (iterate_over_block_locals)
3818 (iterate_over_block_local_vars): Update.
3819 * stack.c (print_frame_args): Update.
3820 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3822 (get_selected_block): Make return type const.
3823 * python/py-frame.c (frapy_block): Update.
3824 * python/py-block.c (gdbpy_block_for_pc): Update.
3825 * p-exp.y (%union) <bval>: Now const.
3826 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3827 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3828 * m2-exp.y (%union) <bval>: Now const.
3829 * linespec.c (get_current_search_block): Make return type const.
3830 (create_sals_line_offset, find_label_symbols): Update.
3831 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3833 (block_starting_point_at): Make "block" const.
3834 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3835 (check_exception_resume): Update.
3836 * guile/scm-frame.c (gdbscm_frame_block): Update.
3837 * guile/scm-block.c (gdbscm_lookup_block): Update.
3838 * frame.h (get_frame_block): Update.
3839 (get_selected_block): Make return type const.
3840 * frame.c (frame_id_inner): Update.
3841 * f-valprint.c (info_common_command_for_block)
3842 (info_common_command): Update.
3843 * dwarf2loc.c (dwarf2_find_location_expression)
3844 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3845 (locexpr_describe_location_piece): Update.
3846 * c-exp.y (%union) <bval>: Now const.
3847 * breakpoint.c (resolve_sal_pc): Update.
3848 * blockframe.c (get_frame_block):Make return type const.
3849 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3850 (block_innermost_frame): Update.
3851 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3852 (block_for_pc, block_for_pc_sect): Update.
3853 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3855 (block_for_pc_sect, block_for_pc): Make return type const.
3856 * ax-gdb.c (gen_expr): Update.
3857 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3858 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3859 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3860 (ada_read_var_value): Update.
3861 * ada-exp.y (struct name_info) <block>: Now const.
3863 (block_lookup): Constify.
3865 2014-06-18 Gary Benson <gbenson@redhat.com>
3867 * nat/i386-dregs.h: New file.
3868 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3869 * i386-nat.h (i386-dregs.h): New include.
3870 (DR_FIRSTADDR): Now in i386-dregs.h.
3871 (DR_LASTADDR): Likewise.
3872 (DR_NADDR): Likewise.
3873 (DR_STATUS): Likewise.
3874 (DR_CONTROL): Likewise.
3875 (i386_debug_reg_state): Likewise.
3876 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3878 2014-06-18 Don Breazeal <donb@codesourcery.com>
3880 * breakpoint.c (set_longjmp_breakpoint): Call
3881 momentary_breakpoint_from_master with additional argument.
3882 (set_longjmp_breakpoint_for_call_dummy): Call
3883 momentary_breakpoint_from_master with additional argument.
3884 (set_std_terminate_breakpoint): Call
3885 momentary_breakpoint_from_master with additional argument.
3886 (momentary_breakpoint_from_master): Add argument to function
3887 definition and use it to initialize structure member flag.
3888 (clone_momentary_breakpoint): Call
3889 momentary_breakpoint_from_master with additional argument.
3890 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3891 member flags set in momentary_breakpoint_from_master.
3893 2014-06-18 Gary Benson <gbenson@redhat.com>
3895 * i386-nat.c (i386_show_dr): Renamed to
3896 i386_dr_show and made nonstatic. All uses updated.
3897 (i386_length_and_rw_bits): Renamed to
3898 i386_dr_length_and_rw_bits and made nonstatic.
3900 (i386_insert_aligned_watchpoint): Renamed to
3901 i386_dr_insert_aligned_watchpoint and made nonstatic.
3903 (i386_remove_aligned_watchpoint): Renamed to
3904 i386_dr_remove_aligned_watchpoint and made nonstatic.
3906 (i386_update_inferior_debug_regs): Renamed to
3907 i386_dr_update_inferior_debug_regs and made nonstatic.
3910 2014-06-18 Gary Benson <gbenson@redhat.com>
3912 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3913 (i386_dr_low_can_set_control): Likewise.
3914 (i386_dr_low_set_addr): Likewise.
3915 (i386_dr_low_set_control): Likewise.
3916 (i386_dr_low_get_addr): Likewise.
3917 (i386_dr_low_get_status): Likewise.
3918 (i386_dr_low_get_control): Likewise.
3919 (i386_insert_aligned_watchpoint): Use new macros.
3920 (i386_update_inferior_debug_regs): Likewise.
3921 (i386_stopped_data_address): Likewise.
3923 2014-06-18 Gary Benson <gbenson@redhat.com>
3925 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3926 New parameter. All uses updated.
3928 2014-06-18 Gary Benson <gbenson@redhat.com>
3930 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3933 2014-06-18 Gary Benson <gbenson@redhat.com>
3935 * i386-nat.c (debug_printf): New macro.
3936 (i386_get_debug_register_length): Likewise.
3937 (TARGET_HAS_DR_LEN_8): Use above macro.
3938 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3939 and printf_unfiltered. Use phex to format values.
3941 2014-06-18 Gary Benson <gbenson@redhat.com>
3943 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3946 2014-06-18 Gary Benson <gbenson@redhat.com>
3948 * i386-nat.c: Comment changes.
3950 2014-06-18 Gary Benson <gbenson@redhat.com>
3952 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3954 2014-06-18 Gary Benson <gbenson@redhat.com>
3956 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3957 (i386_insert_aligned_watchpoint): Likewise.
3958 (i386_remove_aligned_watchpoint): Likewise.
3959 (i386_handle_nonaligned_watchpoint): Likewise.
3961 2014-06-18 Gary Benson <gbenson@redhat.com>
3963 * i386-nat.c: Whitespace changes.
3965 2014-06-17 Samuel Bronson <naesten@gmail.com>
3967 * MAINTAINERS: Update Roland McGrath's email address.
3968 Thanks to Sergio Durigan Junior for pointing out that he left
3969 Red Hat a while ago, and giving me a current address.
3971 2014-06-17 Tom Tromey <tromey@redhat.com>
3973 * utils.h (savestring): Remove declaration.
3975 2014-06-17 Tom Tromey <tromey@redhat.com>
3977 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3979 2014-06-16 Keith Seitz <keiths@redhat.com>
3982 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3983 to update the varobj if inferior_ptid is null_ptid.
3985 2014-06-16 Tom Tromey <tromey@redhat.com>
3987 * target.h (struct target_ops) <to_info_proc>: Make parameter
3989 (target_info_proc): Update.
3990 * target.c (target_info_proc): Make "args" const.
3991 * procfs.c (procfs_info_proc): Update.
3992 * linux-tdep.c (linux_info_proc): Update.
3993 (linux_core_info_proc_mappings): Make "args" const.
3994 (linux_core_info_proc): Update.
3995 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3996 * gdbarch.c: Rebuild.
3997 * gdbarch.h: Rebuild.
3998 * corelow.c (core_info_proc): Update.
4000 2014-06-16 Tom Tromey <tromey@redhat.com>
4002 * target.h (struct target_ops) <to_disconnect>: Make parameter
4004 (target_disconnect): Update.
4005 * target.c (target_disconnect): Make "args" const.
4006 * target-delegates.c: Rebuild.
4007 * remote.c (remote_disconnect): Update.
4008 * record.h (record_disconnect): Update.
4009 * record.c (record_disconnect): Update.
4010 * inf-child.c (inf_child_disconnect): Update.
4012 2014-06-16 Tom Tromey <tromey@redhat.com>
4014 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4015 * target.c (debug_to_rcmd, default_rcmd): Update.
4016 * target-delegates.c: Rebuild.
4017 * remote.c (remote_rcmd): Update.
4018 * monitor.c (monitor_rcmd): Update.
4020 2014-06-16 Pedro Alves <palves@redhat.com>
4022 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4023 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4024 have OBJF_SHARED set.
4025 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4026 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4027 instead of OBJF_USERLOADED.
4028 * objfiles.h (OBJF_SHARED): Update comment.
4029 (userloaded_objfile_contains_address_p): Rename to ...
4030 (shared_objfile_contains_address_p): ... this, and update
4032 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4034 (remove_symbol_file_command): Skip objfiles that don't have
4037 2014-06-16 Tom Tromey <tromey@redhat.com>
4039 * minsyms.h (prim_record_minimal_symbol)
4040 (prim_record_minimal_symbol_and_info): Update comments.
4042 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4044 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4045 or --without-guile, according to how GDB was built.
4047 2014-06-13 Tom Tromey <tromey@redhat.com>
4049 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4051 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4053 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4055 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4056 help_list.Pass all_commands, not -1, to help_list.
4057 * cli/cli-dump.c (dump_command, append_command)
4058 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4059 (binary_dump_command, binary_append_command): Pass all_commands,
4060 not -1, to help_list.
4061 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4063 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4065 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4067 * top.c (set_history): Pass all_commands, not -1, to help_list.
4068 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4069 all_commands, not -1, to help_list.
4070 * symfile.c (overlay_command): Pass all_commands, not -1, to
4072 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4074 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4076 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4078 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4079 not -1, to help_list.
4080 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4081 not -1, to help_list.
4082 * maint.c (maintenance_command, maintenance_info_command)
4083 (maintenance_print_command, maintenance_set_cmd): Pass
4084 all_commands, not -1, to help_list.
4085 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4087 * language.c (set_check): Pass all_commands, not -1, to help_list.
4088 * infcmd.c (unset_command): Pass all_commands, not -1, to
4090 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4092 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4094 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4096 * breakpoint.c (save_command): Pass all_commands, not -1, to
4098 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4099 all_commands, not -1, to help_list.
4101 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4103 * regcache.c (struct register_to_invalidate): New structure.
4104 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4106 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4108 2014-06-12 Yao Qi <yao@codesourcery.com>
4110 * varobj.c (varobj_get_num_children): Call
4111 varobj_is_dynamic_p.
4112 (varobj_list_children): Likewise.
4113 (varobj_update): Likewise. Update comments.
4115 2014-06-12 Yao Qi <yao@codesourcery.com>
4117 * varobj.c (varobj_pretty_printed_p): Rename to ...
4118 (varobj_is_dynamic_p): ... this. New function.
4119 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4120 (varobj_is_dynamic_p): Declare.
4121 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4122 (mi_print_value_p, varobj_update_one): Likewise.
4124 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4125 Yao Qi <yao@codesourcery.com>
4127 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4128 (varobj_get_iterator): Wrap up code for pretty-printer by
4129 "#if HAVE_PYTHON" and "#endif".
4130 (update_dynamic_varobj_children): Likewise.
4132 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4133 Yao Qi <yao@codesourcery.com>
4135 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4136 gdb_python_initialized is false. Move some code from varobj.c.
4137 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4138 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4139 (struct varobj_item): Moved to varobj-iter.h".
4140 (varobj_clear_saved_item): New function.
4141 (update_dynamic_varobj_children): Move python-related code to
4143 (free_variable): Call varobj_clear_saved_item and
4146 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4147 Yao Qi <yao@codesourcery.com>
4149 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4150 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4151 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4152 (py-varobj.o): New rule.
4153 * python/py-varobj.c: New file.
4154 * python/python-internal.h (py_varobj_get_iterator): Declare.
4155 * varobj-iter.h: New file.
4156 * varobj.c: Include "varobj-iter.h"
4157 (struct varobj) <child_iter>: Change its type from "PyObject *"
4158 to "struct varobj_iter *".
4159 <saved_item>: Likewise.
4160 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4161 [HAVE_PYTHON] (varobj_get_iterator): New function.
4162 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4163 python-specific code to python/py-varobj.c.
4164 (install_visualizer): Call varobj_iter_delete instead of
4166 * varobj.h (varobj_ensure_python_env): Declare.
4168 2014-06-12 Yao Qi <yao@codesourcery.com>
4170 * varobj.c (struct varobj_item): New structure.
4171 (create_child_with_value): Update declaration.
4172 (varobj_add_child): Replace arguments 'name' and 'value' with
4173 'item'. All callers updated.
4174 (install_dynamic_child): Likewise.
4175 (update_dynamic_varobj_children): Likewise.
4176 (varobj_add_child): Likewise.
4177 (create_child_with_value): Likewise.
4179 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4181 * NEWS: Create a new section for the next release branch.
4182 Rename the section of the current branch, now that it has
4185 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4187 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4188 * version.in: Bump version to 7.8.50.DATE-cvs.
4190 2014-06-11 Pedro Alves <palves@redhat.com>
4193 * ser-mingw.c (net_windows_socket_check_pending): New function.
4194 (net_windows_select_thread): Ignore spurious wakeups. Use
4195 net_windows_socket_check_pending.
4196 (net_windows_wait_handle): Check for pending events with
4197 ioctlsocket, through net_windows_socket_check_pending, instead of
4198 checking the socket's event.
4200 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4202 * python/python-internal.h (gdb_PyObject_GetAttrString)
4203 (gdb_PyObject_HasAttrString): New inline function definitions.
4204 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4205 char * of the second argument to PyObject_GetAttrString.
4207 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4209 * serial.c (serial_write): Fix index of character to be printed
4210 in call to serial_logchar when serial debug traces are enabled.
4212 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4214 * gdbtypes (resolve_dynamic_range): Add function description.
4216 2014-06-09 Pedro Alves <palves@redhat.com>
4218 * linux-nat.c (linux_child_follow_fork): Initialize status with
4219 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4220 inner block. Only pass the signal to PTRACE_DETACH if in pass
4223 2014-06-09 Gary Benson <gbenson@redhat.com>
4225 * common/signals.c (gdb_signal_from_host): Reorder to separate
4226 the always-available ANSI-standard signals from the signals that
4228 (do_gdb_signal_to_host): Likewise.
4229 * proc-events.c (signal_table): Likewise.
4231 2014-06-08 Hui Zhu <hui@codesourcery.com>
4233 * common/linux-ptrace.c (linux_disable_event_reporting): New
4235 * common/linux-ptrace.h (linux_disable_event_reporting): New
4237 * linux-nat.c (linux_child_follow_fork): Do a single step before
4240 2014-06-07 Keith Seitz <keiths@redhat.com>
4244 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4245 from symbol_matches_domain in symtab.c. All local callers
4246 of symbol_matches_domain updated.
4247 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4248 search STRUCT_DOMAIN.
4249 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4250 independently. standard_lookup will do that automatically.
4251 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4252 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4253 (cp_lookup_symbol_in_namespace): Likewise.
4254 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4255 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4256 may return a STRUCT_DOMAIN match.
4257 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4258 * cp-support.c: Include language.h.
4259 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4261 * psymtab.c (match_partial_symbol): Compare the requested
4262 domain with the symbol's domain directly.
4263 (lookup_partial_symbol): Likewise.
4264 * symtab.c (lookup_symbol_in_language): Explain when/why
4265 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4266 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4267 appropriate languages.
4268 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4269 and moved to ada-lang.c
4270 (lookup_block_symbol): Explain that this function only returns
4271 symbol matching the requested DOMAIN.
4272 Compare the requested domain with the symbol's domain directly.
4273 (iterate_over_symbols): Compare the requested domain with the
4274 symbol's domain directly.
4275 * symtab.h (symbol_matches_domain): Remove.
4277 2014-06-06 Doug Evans <xdje42@gmail.com>
4279 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4280 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4281 (gdbscm_guile_version_is_at_least): Declare.
4282 (gdbscm_scm_string_to_int): Declare.
4283 * guile/guile.c (gdbscm_guile_major_version): New global.
4284 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4285 (guile_datadir): New static global.
4286 (gdbscm_guile_data_directory): New function.
4287 (initialize_scheme_side): Update.
4288 (misc_guile_functions): Add guile-data-directory.
4289 (initialize_gdb_module): Fetch guile version number.
4290 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4291 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4292 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4293 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4295 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4296 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4297 * guile/scm-value.c (gdbscm_value_to_string): Only call
4298 scm_port_conversion_strategy if Guile version >= 2.0.6.
4300 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4302 * main.c (print_gdb_help): Add -q and --silent.
4304 2014-06-06 Gary Benson <gbenson@redhat.com>
4306 * common/signals.c: Remove preprocessor conditionals for
4307 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4308 SIGSEGV and SIGTERM.
4309 * proc-events.c: Likewise.
4311 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4313 * symfile.c (symfile_free_objfile): Remove restriction to
4315 * symfile-mem.c (symbol_file_add_from_memory): Call
4316 add_target_sections_of_objfile.
4318 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4320 * guile/scm-value.c (gdbscm_history_append_x): Use
4321 'vlscm_get_value_smob_arg_unsafe' instead of
4322 'vlscm_scm_to_value'.
4324 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4327 * utils.c (printchar): Don't escape at all if quoter is NUL.
4328 Update function documentation to clarify effect of parameter
4330 * remote.c (escape_buffer): Pass '\\' as the quoter to
4331 fputstrn_unfiltered.
4332 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4333 generate the output.
4334 (mi_solib_unloaded): Same.
4336 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4338 * development.sh: Delete.
4339 * Makefile.in (config.status): Adjust dependency on development.sh.
4340 * configure.ac: Adjust development.sh source call.
4341 * configure: Regenerate.
4343 2014-06-04 Doug Evans <xdje42@gmail.com>
4345 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4346 is_scheme_bkpt, spec.
4347 (bpscm_make_breakpoint_smob): Initialize new members.
4348 (gdbscm_create_breakpoint_x): Split into two ...
4349 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4350 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4351 (scheme_function breakpoint_functions): Update.
4352 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4353 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4354 register-breakpoint!.
4356 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4359 * mem-break.c (z_type_supported): Return zero if
4360 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4362 2014-06-04 Tom Tromey <tromey@redhat.com>
4364 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4365 value_from_contents_and_address_unresolved.
4366 (ada_template_to_fixed_record_type_1): Likewise.
4367 (ada_which_variant_applies): Likewise.
4368 * value.h (value_from_contents_and_address_unresolved): Declare.
4369 * value.c (value_from_contents_and_address_unresolved): New
4371 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4372 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4373 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4375 2014-06-04 Tom Tromey <tromey@redhat.com>
4377 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4379 2014-06-04 Tom Tromey <tromey@redhat.com>
4381 * procfs.c (procfs_attach): Make "args" const.
4382 * windows-nat.c (windows_attach): Make "args" const.
4383 * nto-procfs.c (procfs_attach): Make "args" const.
4384 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4385 * go32-nat.c (go32_attach): Make "args" const.
4386 * gnu-nat.c (gnu_attach): Make "args" const.
4387 * darwin-nat.c (darwin_attach): Make "args" const.
4388 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4389 * linux-nat.c (linux_nat_attach): Make "args" const.
4390 * remote.c (extended_remote_attach_1, extended_remote_attach):
4392 * target.h (struct target_ops) <to_attach>: Make "args" const.
4393 (find_default_attach): Likewise.
4394 * utils.c (parse_pid_to_attach): Make "args" const.
4395 * utils.h (parse_pid_to_attach): Update.
4397 2014-06-04 Tom Tromey <tromey@redhat.com>
4399 * target-delegates.c: Rebuild.
4400 * target.c (default_thread_address_space): New function.
4401 (target_thread_address_space): Simplify.
4402 * target.h (struct target_ops) <to_thread_address_space>: Add
4403 TARGET_DEFAULT_FUNC.
4405 2014-06-04 Doug Evans <xdje42@gmail.com>
4407 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4409 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4411 * record-btrace.c: Include event-loop.h and inf-loop.h.
4412 (record_btrace_resume_exec_dir)
4413 (record_btrace_async_inferior_event_handler)
4414 (record_btrace_handle_async_inferior_event): New.
4415 (record_btrace_open): Create async event handler.
4416 (record_btrace_close): Delete async event handler.
4417 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4418 Mark async event handler.
4419 (record_btrace_execution_direction): New.
4420 (init_record_btrace_ops): Initialize to_execution_direction.
4422 2014-06-03 Doug Evans <xdje42@gmail.com>
4424 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4425 (gdbscm_make_parameter): Ditto.
4427 2014-06-03 Doug Evans <dje@google.com>
4429 * exec.c (exec_close_1): Call clear_section_table instead of
4430 resize_section_table.
4431 (clear_section_table): New function.
4432 (resize_section_table): Make static. Rename arg num_added to
4434 * exec.h (clear_section_table): Declare.
4435 (resize_section_table): Delete.
4436 * progspace.c (release_program_space): Call clear_section_table
4437 instead of resize_section_table.
4439 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4441 * NEWS (Python Scripting): Add entry about the new xmethods
4444 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4446 * python/py-xmethods.c: New file.
4447 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4448 (objfpy_dealloc): XDECREF on the new xmethods field.
4449 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4451 (objfpy_get_xmethods): New function.
4452 (objfile_getset): New entry 'xmethods'.
4453 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4454 (pspy_dealloc): XDECREF on the new xmethods field.
4455 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4457 (pspy_get_xmethods): New function.
4458 (pspace_getset): New entry 'xmethods'.
4459 * python/python-internal.h: Add declarations for new functions.
4460 * python/python.c (_initialize_python): Invoke
4461 gdbpy_initialize_xmethods.
4462 * python/lib/gdb/__init__.py (xmethods): New
4464 * python/lib/gdb/xmethod.py: New file.
4465 * python/lib/gdb/command/xmethods.py: New file.
4467 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4469 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4470 best match method returned by find_overload_match is an xmethod.
4471 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4472 the best matching operator returned by find_overload_match is an
4474 * valops.c: #include "extension.h".
4475 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4476 Return void. The list of matching source methods is returned in
4477 "fn_list" and a vector of matching debug method workers is
4478 returned in "xm_worker_vec". Update all callers.
4479 (value_find_oload_method_list): Likewise.
4480 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4481 non-NULL, then the index of the best matching method in this
4482 vector is returned. Update all callers.
4483 (find_overload_match): Include xmethods while performing overload
4486 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4488 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4489 * extension-priv.h (struct extension_language_ops): Add the
4491 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4492 get_matching_xmethod_workers, get_xmethod_argtypes,
4493 invoke_xmethod, free_xmethod_worker,
4494 free_xmethod_worker_vec): New functions.
4495 * extension.h: #include "common/vec.h".
4496 New function declarations.
4497 (struct xmethod_worker): New struct.
4498 (VEC (xmethod_worker_ptr)): New vector type.
4499 (xmethod_worker_ptr): New typedef.
4500 (xmethod_worker_vec): Likewise.
4501 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4503 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4504 (struct builtin_type): New field "xmethod".
4505 * valarith.c (value_ptradd): Assert that the value argument is not
4507 * valops.c (value_must_coerce_to_target): Return 0 for
4508 lval_xcallable values.
4509 * value.c (struct value): New field XM_WORKER in the field
4511 (value_address, value_raw_address): Return 0 for lval_xcallable
4513 (set_value_address): Assert that the value is not an
4515 (value_free): Free the associated xmethod worker when freeing
4516 lval_xcallable values.
4517 (set_value_component_location): Assert that the WHOLE value is not
4519 (value_of_xmethod, call_xmethod): New functions.
4520 * value.h: Declare "struct xmethod_worker".
4521 Declare new functions value_of_xmethod, call_xmethod.
4523 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4524 Pedro Alves <palves@redhat.com>
4526 PR breakpoints/17000
4527 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4528 New function, extracted from software_breakpoint_inserted_here_p.
4529 (software_breakpoint_inserted_here_p): Replace factored out code
4530 by call to find_non_raw_software_breakpoint_inserted_here.
4531 (bp_target_info_copy_insertion_state): New function.
4532 (bkpt_insert_location): Handle the case of a single-step
4533 breakpoint already inserted at the same address.
4534 (bkpt_remove_location): Handle the case of a single-step
4535 breakpoint still inserted at the same address.
4536 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4537 breakpoint already inserted at the same address.
4538 (deprecated_remove_raw_breakpoint): Handle the case of a
4539 non-raw breakpoint still inserted at the same address.
4540 (find_single_step_breakpoint): New function, extracted from
4541 single_step_breakpoint_inserted_here_p.
4542 (find_single_step_breakpoint): New function,
4543 factored out from single_step_breakpoint_inserted_here_p.
4544 (single_step_breakpoint_inserted_here_p): Reimplement.
4546 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4548 Pushed by Joel Brobecker <brobecker@adacore.com>
4549 * source.c (show_substitute_path_command): Fix display of matching
4552 2014-06-03 Gary Benson <gbenson@redhat.com>
4554 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4556 2014-06-02 Doug Evans <xdje42@gmail.com>
4558 Add parameter support for Guile.
4559 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4560 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4561 (scm-param.o): New rule.
4562 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4563 (gdbscm_misc_error): Declare.
4564 (gdbscm_canonicalize_command_name): Declare.
4565 (gdbscm_scm_to_host_string): Declare.
4566 (gdbscm_scm_from_host_string): Declare.
4567 (gdbscm_initialize_parameters): Declare.
4568 * guile/guile.c (initialize_gdb_module): Call
4569 gdbscm_initialize_parameters.
4570 * guile/lib/gdb.scm: Export parameter symbols.
4571 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4572 cmdscm_canonicalize_name and made public. All callers updated.
4573 * guile/scm-exception.c (gdbscm_misc_error): New function.
4574 * guile/scm-param.c: New file.
4575 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4576 (gdbscm_scm_to_host_string): New function.
4577 (gdbscm_scm_from_host_string): New function.
4578 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4580 2014-06-02 Doug Evans <xdje42@gmail.com>
4582 Add command support for Guile.
4583 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4584 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4585 (scm-cmd.o): New rule.
4586 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4587 (gdbscm_user_error_p): Declare.
4588 (gdbscm_parse_command_name): Declare.
4589 (gdbscm_valid_command_class_p): Declare.
4590 (gdbscm_initialize_commands): Declare.
4591 * guile/guile.c (initialize_gdb_module): Call
4592 gdbscm_initialize_commands.
4593 * guile/lib/gdb.scm: Export command symbols.
4594 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4595 (throw-user-error): New function.
4596 * guile/scm-cmd.c: New file.
4597 * guile/scm-exception.c (user_error_symbol): New static global.
4598 (gdbscm_user_error_p): New function.
4599 (gdbscm_initialize_exceptions): Set user_error_symbol.
4600 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4602 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4604 * top.c (command_loop): Handle comments here...
4605 (command_line_input): ... not here.
4607 2014-06-02 Doug Evans <xdje42@gmail.com>
4609 Add progspace support for Guile.
4610 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4611 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4612 (scm-progspace.o): New rule.
4613 * guile/guile-internal.h (pspace_smob): New typedef.
4614 (psscm_pspace_smob_pretty_printers): Declare.
4615 (psscm_pspace_smob_from_pspace): Declare.
4616 (psscm_scm_from_pspace): Declare.
4617 * guile/guile.c (initialize_gdb_module): Call
4618 gdbscm_initialize_pspaces.
4619 * guile/lib/gdb.scm: Export progspace symbols.
4620 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4622 (append-pretty-printer!): Ditto.
4623 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4625 * guile/scm-progspace.c: New file.
4627 2014-06-03 Alan Modra <amodra@gmail.com>
4629 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4630 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4632 2014-06-02 Doug Evans <dje@google.com>
4634 Add support for skeletonless type units.
4635 * dwarf2read.c (struct dwarf2_per_objfile): New member
4636 n_allocated_type_units.
4637 (struct dwarf2_per_objfile) <tu_stats>: New member
4638 nr_all_type_units_reallocs.
4639 (create_signatured_type_table_from_index): Initialize
4640 n_allocated_type_units
4641 (create_all_type_units): Ditto.
4642 (add_type_unit): Move up in file. New arg slot.
4643 All callers updated. Increase space for all_type_units more
4645 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4646 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4647 (lookup_dwp_signatured_type): Ditto.
4648 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4649 All callers updated.
4650 (build_type_psymtabs_1): Leave type_unit_groups as
4651 NULL if no TUs present.
4652 (print_tu_stats): New function.
4653 (process_skeletonless_type_unit): New function.
4654 (process_dwo_file_for_skeletonless_type_units): New
4656 (process_skeletonless_type_units): New function.
4657 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4658 Call print tu_stats if debugging enabled.
4660 2014-06-02 Pedro Alves <palves@redhat.com>
4662 * breakpoint.c (build_target_command_list): Don't build a command
4663 list if we have any duplicate location that isn't a dprintf.
4665 2014-06-02 Pedro Alves <palves@redhat.com>
4667 * breakpoint.c (dprintf_breakpoint_hit): New function.
4668 (initialize_breakpoint_ops): Install it as dprintf's
4669 breakpoint_hit method.
4671 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4673 * source.c (substitute_path_rule_matches): Simplify using
4674 filename_ncmp instead of FILENAME_CMP.
4676 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4678 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4680 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4682 * configure.ac: When Guile is available, check for the
4683 availability of 'scm_new_smob'.
4684 * configure, config.h.in: Regenerate.
4685 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4688 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4690 * frame.c (struct frame_info): Add stop_string field.
4691 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4692 (get_prev_frame_always): Old content moved into
4693 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4694 TRY_CATCH, handle MEMORY_ERROR exceptions.
4695 (frame_stop_reason_string): New function definition.
4696 * frame.h (unwind_stop_reason_to_string): Extend comment to
4697 mention frame_stop_reason_string.
4698 (frame_stop_reason_string): New function declaration.
4699 * stack.c (frame_info): Switch to frame_stop_reason_string.
4700 (backtrace_command_1): Switch to frame_stop_reason_string.
4701 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4702 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4703 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4705 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4707 * frame.c (frame_stop_reason_string): Rename to ...
4708 (unwind_stop_reason_to_string): this.
4709 * frame.h (frame_stop_reason_string): Rename to ...
4710 (unwind_stop_reason_to_string): this.
4711 * stack.c (frame_info): Update call to frame_stop_reason_string.
4712 (backtrace_command_1): Likewise.
4713 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4714 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4716 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4718 * frame.c (remove_prev_frame): New function.
4719 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4722 2014-05-29 Pedro Alves <palves@redhat.com>
4724 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4725 and make it const. When a single-step decays to a continue,
4726 clear 'step', not 'hw_step'. Pass whether the caller wanted
4727 to step to user_visible_resume_ptid, not what we ask the
4730 2014-05-29 Pedro Alves <palves@redhat.com>
4732 * infrun.c (process_event_stop_test, handle_step_into_function)
4733 (handle_step_into_function_backward): Adjust.
4734 Don't set the even thread's stop_step and call stop_waiting before
4735 calling end_stepping_range. Instead do that ...
4736 (end_stepping_range): ... here. Take an ecs pointer parameter.
4738 2014-05-29 Pedro Alves <palves@redhat.com>
4740 * infrun.c (stop_stepping): Rename to ...
4741 (stop_waiting): ... this.
4742 (proceed): Update comment.
4743 (process_event_stop_test, handle_inferior_event)
4744 (handle_signal_stop, handle_step_into_function)
4745 (handle_step_into_function_backward): Update.
4747 2014-05-29 Pedro Alves <palves@redhat.com>
4749 * infcall.c (run_inferior_call): Don't check whether the current
4750 thread is running after the proceed call.
4752 2014-05-29 Pedro Alves <palves@redhat.com>
4753 Tom Tromey <tromey@redhat.com>
4755 * NEWS: Mention "maint set target-async", "set mi-async", and that
4756 background execution commands are now always available.
4757 * target.h (target_async_permitted): Update comment.
4758 * target.c (target_async_permitted, target_async_permitted_1):
4760 (set_target_async_command): Rename to ...
4761 (maint_set_target_async_command): ... this.
4762 (show_target_async_command): Rename to ...
4763 (maint_show_target_async_command): ... this.
4764 (_initialize_target): Adjust.
4765 * infcmd.c (prepare_execution_command): Make extern.
4766 * inferior.h (prepare_execution_command): Declare.
4767 * infrun.c (set_observer_mode): Leave target async alone.
4768 * mi/mi-interp.c (mi_interpreter_init): Install
4769 mi_on_sync_execution_done as sync_execution_done observer.
4770 (mi_on_sync_execution_done): New function.
4771 (mi_execute_command_input_handler): Don't print the prompt if we
4772 just started a synchronous command with an async target.
4773 (mi_on_resume): Check sync_execution before printing prompt.
4774 * mi/mi-main.h (mi_async_p): Declare.
4775 * mi/mi-main.c: Include gdbcmd.h.
4776 (mi_async_p): New function.
4777 (mi_async, mi_async_1): New globals.
4778 (set_mi_async_command, show_mi_async_command, mi_async): New
4780 (exec_continue): Call prepare_execution_command.
4781 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4782 (mi_execute_async_cli_command): Use mi_async_p.
4783 (_initialize_mi_main): Install "set mi-async". Make
4784 "target-async" a deprecated alias.
4786 2014-05-29 Pedro Alves <palves@redhat.com>
4788 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4789 (_initialize_cli_interp): Adjust.
4790 * event-loop.c: Include "observer.h".
4791 (start_event_loop): Notify 'command_error' observers instead of
4792 calling display_gdb_prompt. Remove FIXME comment.
4793 * event-top.c (display_gdb_prompt): Remove call into the
4795 * inf-loop.c: Include "observer.h".
4796 (inferior_event_handler): Notify 'command_error' observers instead
4797 of calling display_gdb_prompt.
4798 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4799 observers instead of calling display_gdb_prompt.
4800 * interps.c (interp_set): Don't call display_gdb_prompt.
4801 (current_interp_display_prompt_p): Delete.
4802 * interps.h (interp_prompt_p): Delete declaration.
4803 (interp_prompt_p_ftype): Delete.
4804 (struct interp_procs) <prompt_proc_p>: Delete field.
4805 (current_interp_display_prompt_p): Delete declaration.
4806 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4807 (_initialize_mi_interp): Adjust.
4808 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4809 'command_error' observers.
4810 (tui_on_sync_execution_done, tui_on_command_error): New
4812 (tui_display_prompt_p): Delete.
4813 (_initialize_tui_interp): Adjust.
4815 2014-05-29 Pedro Alves <palves@redhat.com>
4818 * cli/cli-interp.c: Include infrun.h and observer.h.
4819 (cli_uiout, cli_interp): New globals.
4820 (cli_on_signal_received, cli_on_end_stepping_range)
4821 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4823 (cli_interpreter_init): Install them as 'end_stepping_range',
4824 'signal_received' 'signal_exited', 'exited' and 'no_history'
4826 (_initialize_cli_interp): Remove cli_interp local.
4827 * infrun.c (handle_inferior_event): Call the several stop reason
4828 observers instead of printing the stop reason directly.
4829 (end_stepping_range): New function.
4830 (print_end_stepping_range_reason, print_signal_exited_reason)
4831 (print_exited_reason, print_signal_received_reason)
4832 (print_no_history_reason): Make static, and add an uiout
4833 parameter. Print to that instead of to CURRENT_UIOUT.
4834 * infrun.h (print_end_stepping_range_reason)
4835 (print_signal_exited_reason, print_exited_reason)
4836 (print_signal_received_reason print_no_history_reason): New
4838 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4840 <cli_uiout>: New field.
4841 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4842 uiout for CLI output. Install 'signal_received',
4843 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4845 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4846 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4847 (mi_on_no_history): New functions.
4848 (ui_out_free_cleanup): Delete function.
4849 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4850 instead use the one already stored in the MI interpreter data.
4851 (mi_ui_out): Adjust.
4852 * tui/tui-interp.c: Include infrun.h and observer.h.
4853 (tui_interp): New global.
4854 (tui_on_signal_received, tui_on_end_stepping_range)
4855 (tui_on_signal_exited, tui_on_exited)
4856 (tui_on_no_history): New functions.
4857 (tui_init): Install them as 'end_stepping_range',
4858 'signal_received' 'signal_exited', 'exited' and 'no_history'
4860 (_initialize_tui_interp): Delete tui_interp local.
4862 2014-05-29 Pedro Alves <palves@redhat.com>
4865 * linux-nat.c (linux_nat_resume_callback): Rename the second
4866 parameter to 'except'. Skip LP if it points to EXCEPT.
4867 (linux_nat_resume): Don't mark the event lwp as not stopped
4868 before resuming sibling lwps. Instead ask
4869 linux_nat_resume_callback to skip the event lwp. Mark it as not
4870 stopped after actually resuming it.
4871 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4873 (wait_lwp): Mark the lwp as stopped here.
4874 (stop_wait_callback): Mark the lwp as not stopped right after
4875 resuming it. Don't mark lwps as stopped here.
4876 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4877 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4879 2014-05-29 Pedro Alves <palves@redhat.com>
4882 * infrun.c (resume): Determine how much to resume depending on
4883 whether the caller wanted a step, not whether we can hardware step
4884 the target. Mark all threads that we intend to run as running,
4885 unless we're calling an inferior function.
4886 (normal_stop): If the thread is running an infcall, don't finish
4888 * target.c (target_resume): Don't mark threads as running here.
4890 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4892 * serial.c (_initialize_serial): Remove support for
4893 the "set remotebaud" and "show remotebaud" commands.
4894 * NEWS: Add entry documenting the removal of that command.
4896 2014-05-28 Yao Qi <yao@codesourcery.com>
4898 * charset.c: Fix typo in comments.
4900 2014-05-27 Gary Benson <gbenson@redhat.com>
4902 * utils.c (internal_vproblem): Prompt for a bug report.
4904 2014-05-26 Andy Wingo <wingo@igalia.com>
4906 * guile/scm-arch.c (arscm_mark_arch_smob):
4907 * guile/scm-block.c (bkscm_mark_block_smob)
4908 (bkscm_mark_block_syms_progress_smob):
4909 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4910 * guile/scm-exception.c (exscm_mark_exception_smob):
4911 * guile/scm-frame.c (frscm_mark_frame_smob):
4912 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4913 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4914 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4915 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4916 (ppscm_mark_pretty_printer_worker_smob):
4917 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4918 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4919 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4920 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4922 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4925 2014-05-26 Andy Wingo <wingo@igalia.com>
4926 Doug Evans <xdje42@gmail.com>
4928 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4929 empty_base_class. All uses updated.
4930 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4931 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4933 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4934 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4935 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4936 (gdbscm_gsmob_has_property_p, add_property_name)
4937 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4938 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4939 (gdb-object-has-property?, gdb-object-properties): Remove.
4940 (gdb-object-kind): Renamed from gsmob-kind.
4942 2014-05-26 Andy Wingo <wingo@igalia.com>
4944 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4945 * configure: Regenerate.
4947 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4949 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4951 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4953 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4954 (replay_memory_access_read_only, replay_memory_access_read_write)
4955 (replay_memory_access_types, replay_memory_access)
4956 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4957 (cmd_set_record_btrace, cmd_show_record_btrace)
4958 (cmd_show_replay_memory_access): New.
4959 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4960 (record_btrace_remove_breakpoint): Replace
4961 record_btrace_allow_memory_access with replay_memory_access.
4962 (_initialize_record_btrace): Add commands.
4963 * NEWS: Announce it.
4965 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4967 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4969 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4971 * MAINTAINERS (Write After Approval): Move self back from
4974 2014-05-22 Pedro Alves <palves@redhat.com>
4976 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4977 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4978 (disable_randomization, enum exec_direction_kind)
4979 (execution_direction, stop_registers, start_remote)
4980 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4981 (wait_for_inferior, normal_stop, get_last_target_status)
4982 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4983 (insert_step_resume_breakpoint_at_sal)
4984 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4985 (set_step_info, print_stop_event, signal_stop_state)
4986 (signal_print_state, signal_pass_state, signal_stop_update)
4987 (signal_print_update, signal_pass_update)
4988 (update_signals_program_target, clear_exit_convenience_vars)
4989 (displaced_step_dump_bytes, update_observer_mode)
4990 (signal_catch_update, gdb_signal_from_command): Move
4992 * infrun.h: ... to this new file.
4993 * amd64-tdep.c: Include infrun.h.
4994 * annotate.c: Include infrun.h.
4995 * arch-utils.c: Include infrun.h.
4996 * arm-linux-tdep.c: Include infrun.h.
4997 * arm-tdep.c: Include infrun.h.
4998 * break-catch-sig.c: Include infrun.h.
4999 * breakpoint.c: Include infrun.h.
5000 * common/agent.c: Include infrun.h instead of inferior.h.
5001 * corelow.c: Include infrun.h.
5002 * event-top.c: Include infrun.h.
5003 * go32-nat.c: Include infrun.h.
5004 * i386-tdep.c: Include infrun.h.
5005 * inf-loop.c: Include infrun.h.
5006 * infcall.c: Include infrun.h.
5007 * infcmd.c: Include infrun.h.
5008 * infrun.c: Include infrun.h.
5009 * linux-fork.c: Include infrun.h.
5010 * linux-nat.c: Include infrun.h.
5011 * linux-thread-db.c: Include infrun.h.
5012 * monitor.c: Include infrun.h.
5013 * nto-tdep.c: Include infrun.h.
5014 * procfs.c: Include infrun.h.
5015 * record-btrace.c: Include infrun.h.
5016 * record-full.c: Include infrun.h.
5017 * remote-m32r-sdi.c: Include infrun.h.
5018 * remote-mips.c: Include infrun.h.
5019 * remote-notif.c: Include infrun.h.
5020 * remote-sim.c: Include infrun.h.
5021 * remote.c: Include infrun.h.
5022 * reverse.c: Include infrun.h.
5023 * rs6000-tdep.c: Include infrun.h.
5024 * s390-linux-tdep.c: Include infrun.h.
5025 * solib-irix.c: Include infrun.h.
5026 * solib-osf.c: Include infrun.h.
5027 * solib-svr4.c: Include infrun.h.
5028 * target.c: Include infrun.h.
5029 * top.c: Include infrun.h.
5030 * windows-nat.c: Include infrun.h.
5031 * mi/mi-interp.c: Include infrun.h.
5032 * mi/mi-main.c: Include infrun.h.
5033 * python/py-threadevent.c: Include infrun.h.
5035 2014-05-22 Pedro Alves <palves@redhat.com>
5037 * infrun.c (handle_inferior_event): Store the exit code for
5038 --return-child-result here, instead of ...
5039 (print_exited_reason): ... here.
5041 2014-05-21 Pedro Alves <palves@redhat.com>
5044 * gdbthread.h (struct thread_control_state): New field
5046 * infrun.c (follow_fork): Copy the new thread control field to the
5048 (clear_proceed_status_thread): Clear the new thread control field.
5049 (proceed): Set the new thread control field.
5050 * interps.h (command_interp): Declare.
5051 * interps.c (command_interpreter): New global.
5052 (command_interp): New function.
5053 (interp_exec): Set `command_interpreter' while here.
5054 * cli-out.c (cli_uiout_dtor): New function.
5055 (cli_ui_out_impl): Install it.
5056 * mi/mi-interp.c: Include cli-out.h.
5057 (mi_cmd_interpreter_exec): Add comment.
5058 (restore_current_uiout_cleanup): New function.
5059 (ui_out_free_cleanup): New function.
5060 (mi_on_normal_stop): If finishing an execution command started by
5061 a CLI command, or any kind of breakpoint-like event triggered,
5062 print the stop event to the output (CLI) stream.
5063 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5065 2014-05-21 Pedro Alves <palves@redhat.com>
5067 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5068 current source line having changed.
5069 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5070 * infrun.c (normal_stop): Adjust call to
5071 set_current_sal_from_frame.
5072 * source.c (clear_lines_listed_range): New function.
5073 (set_current_source_symtab_and_line, identify_source_line): Clear
5074 the lines listed range.
5075 (line_info): Handle the first "info line" after the current source
5076 line having changed.
5077 * stack.c (print_stack_frame): Remove center handling.
5078 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5081 2014-05-21 Pedro Alves <palves@redhat.com>
5083 * inf-child.c (inf_child_mourn_inferior): New function.
5084 * inf-child.h (inf_child_mourn_inferior): New declaration.
5085 * darwin-nat.c (darwin_mourn_inferior): Use
5086 inf_child_mourn_inferior.
5087 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5088 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5089 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5090 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5091 * windows-nat.c (windows_mourn_inferior): Likewise.
5093 2014-05-21 Doug Evans <xdje42@gmail.com>
5095 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5097 2014-05-21 Doug Evans <xdje42@gmail.com>
5099 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5100 (gdbscm_out_of_range_error): Ditto.
5101 (gdbscm_memory_error): Ditto.
5102 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5103 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5104 (gdbscm_out_of_range_error): Update.
5105 (gdbscm_memory_error): Update.
5106 (gdbscm_scm_to_target_string_unsafe): Delete.
5108 2014-05-21 Pedro Alves <palves@redhat.com>
5110 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5112 (inf_child_open_target): New function.
5113 (inf_child_open): Use inf_child_open_target to push the target
5114 instead of erroring out.
5115 (inf_child_disconnect, inf_child_close)
5116 (inf_child_maybe_unpush_target): New functions.
5117 (inf_child_target): Install inf_child_disconnect and
5118 inf_child_close. Store a pointer to the returned object.
5119 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5121 * target.c (auto_connect_native_target): New global.
5122 (show_default_run_target): New function.
5123 (find_default_run_target): Return NULL if automatically connecting
5124 to the native target is disabled.
5125 (_initialize_target): Install set/show auto-connect-native-target.
5126 * NEWS: Mention "set auto-connect-native-target", and "target
5128 * linux-nat.c (super_close): New global.
5129 (linux_nat_close): Call super_close.
5130 (linux_nat_add_target): Store a pointer to the base class's
5132 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5133 inf_child_maybe_unpush.
5134 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5136 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5137 the inferior. Use inf_child_maybe_unpush_target.
5138 (inf_ttrace_attach): Don't push the target if it is already
5140 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5141 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5142 after mourning the inferior. Use inf_child_maybe_unpush_target.
5143 (darwin_attach_pid): Don't push the target if it is already
5145 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5146 mourning the inferior. Use inf_child_maybe_unpush_target.
5147 (gnu_detach): Use inf_child_maybe_unpush_target.
5148 * go32-nat.c (go32_create_inferior): Don't push the target if it
5150 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5151 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5152 (procfs_open): Rename to ...
5153 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5154 comments. Can target_preopen before changing node. Call
5155 inf_child_open_target to push the target explicitly.
5156 (procfs_attach): Don't push the target if it is already pushed.
5157 (procfs_detach): Use inf_child_maybe_unpush_target.
5158 (procfs_create_inferior): Don't push the target if it is already
5160 (nto_native_ops): New global.
5161 (procfs_open): Reimplement.
5162 (procfs_native_open): New function.
5163 (init_procfs_targets): Install procfs_native_open as to_open of
5164 "target native". Store a pointer to the "native" target in
5166 * procfs.c (procfs_attach): Don't push the target if it is already
5168 (procfs_detach): Use inf_child_maybe_unpush_target.
5169 (procfs_mourn_inferior): Only unpush the target after mourning the
5170 inferior. Use inf_child_maybe_unpush_target.
5171 (procfs_init_inferior): Don't push the target if it is already
5173 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5174 if it is already pushed.
5176 2014-05-21 Pedro Alves <palves@redhat.com>
5178 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5179 and "procfs" targets are now called "native" instead.
5181 2014-05-21 Pedro Alves <palves@redhat.com>
5183 * go32-nat.c (go32_open): Delete.
5184 (go32_target): Don't override the to_open method.
5186 2014-05-21 Pedro Alves <palves@redhat.com>
5188 * nto-procfs.c (procfs_can_run): New function.
5189 (nto_procfs_ops): New global.
5190 (init_procfs_targets): New, based on procfs_target. Install
5191 "target native" in addition to "target procfs".
5192 (_initialize_procfs): Call init_procfs_targets instead of adding
5195 2014-05-21 Pedro Alves <palves@redhat.com>
5197 * windows-nat.c (windows_target): Don't override to_shortname,
5198 to_longname or to_doc.
5200 2014-05-21 Pedro Alves <palves@redhat.com>
5202 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5205 2014-05-21 Pedro Alves <palves@redhat.com>
5207 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5208 to_shortname, to_longname or to_doc.
5210 2014-05-21 Pedro Alves <palves@redhat.com>
5212 * go32-nat.c (go32_target): Don't override to_shortname,
5213 to_longname or to_doc.
5215 2014-05-21 Pedro Alves <palves@redhat.com>
5217 * inf-child.c (inf_child_open): Remove mention of "child".
5218 (inf_child_target): Rename target to "native" instead of "child".
5220 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5222 * Makefile.in (SFILES): Delete "regset.c".
5223 (COMMON_OBS): Delete "regset.o".
5225 * regset.h (regset_alloc): Delete prototype.
5227 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5229 * sparc-linux-tdep.c (sparc32_linux_gregset)
5230 (sparc32_linux_fpregset): New static regset structures.
5231 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5232 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5234 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5235 (sparc64_linux_fpregset): New static regset structures.
5236 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5237 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5238 New static regset structures.
5239 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5240 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5241 New static regset structures.
5242 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5243 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5244 New static regset structures.
5245 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5246 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5247 New static regset structures.
5248 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5250 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5252 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5253 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5254 register maps ("regmaps") from "*regset" to "*regmap". Do this
5255 for all regmap types and variables.
5256 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5257 (sparc32_linux_supply_core_gregset)
5258 (sparc32_linux_collect_core_gregset)
5259 (sparc32_linux_supply_core_fpregset)
5260 (sparc32_linux_collect_core_fpregset): Likewise.
5261 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5262 (sparc_gregmap, sparc_fpregmap): ... these.
5263 (sparc_supply_gregset, sparc_collect_gregset)
5264 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5265 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5266 (_initialize_sparc_nat): Rename regmaps.
5267 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5268 (sparc_gregmap, sparc_fpregmap): ... these.
5269 (sparc_supply_gregset, sparc_collect_gregset)
5270 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5271 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5273 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5274 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5276 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5278 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5279 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5280 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5282 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5283 (sparc32_bsd_fpregset): Rename to...
5284 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5285 (sparc32_bsd_fpregmap): ... these.
5286 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5287 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5288 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5289 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5290 (struct sparc_gregmap, struct sparc_fpregmap)
5291 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5292 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5293 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5294 (sparc32_supply_regset, sparc32_collect_gregset)
5295 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5297 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5298 (sparc64_linux_ptrace_gregmap): ... this.
5299 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5300 (_initialize_sparc64_linux_nat): Rename regmaps.
5301 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5302 (sparc64_linux_core_gregmap): ... this.
5303 (sparc64_linux_supply_core_gregset)
5304 (sparc64_linux_collect_core_gregset)
5305 (sparc64_linux_supply_core_fpregset)
5306 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5307 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5308 (sparc64_sol2_fpregset): Rename to...
5309 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5310 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5311 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5313 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5314 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5315 (sparc64_bsd_fpregset): Rename to...
5316 (struct sparc_gregmap, sparc64_sol2_gregmap)
5317 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5318 (sparc64_bsd_fpregmap): ... these.
5319 (sparc64_supply_gregset, sparc64_collect_gregset)
5320 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5322 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5323 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5324 (sparc64fbsd_gregmap): ... this.
5325 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5326 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5328 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5329 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5330 (sparc64nbsd_collect_fpregset): Likewise.
5331 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5332 (sparc64nbsd_gregmap): ... this.
5333 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5335 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5336 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5337 (sparc64obsd_gregmap): ... this.
5338 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5340 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5341 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5342 (sparc32nbsd_gregmap): ... this.
5343 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5346 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5348 * score-tdep.c (score7_linux_gregset): New static regset
5350 (score7_linux_regset_from_core_section): Remove dynamic regset
5352 (score_gdbarch_init): Drop allocation of tdep structure.
5353 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5355 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5357 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5359 (am33_regset_from_core_section): Remove dynamic regset
5362 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5364 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5365 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5367 (mips_linux_regset_from_core_section): Remove dynamic regset
5369 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5370 'gregset64', 'fpregset', and 'fpregset64'.
5371 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5372 deleted tdep fields.
5374 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5376 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5378 (amd64_regset_from_core_section): Remove dynamic regset
5380 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5382 (amd64obsd_regset_from_core_section): Remove dynamic regset
5384 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5386 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5387 x86-common regset supply function.
5388 * i386-tdep.c (i386_collect_gregset): Make static.
5389 (i386_gregset): New global regset structure.
5390 (i386_fpregset, i386_xstateregset): New static regset structures.
5391 (i386_regset_from_core_section): Remove dynamic regset
5393 (i386_gdbarch_init): Remove initialization of tdep fields
5394 'gregset', 'fpregset', and 'xstateregset'.
5395 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5396 'fpregset', and 'xstateregset'.
5397 (i386_collect_gregset): Remove prototype.
5398 (i386_gregset): New declaration.
5399 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5401 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5404 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5406 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5407 (arm_linux_vfpregset): New static regset structures.
5408 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5410 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5411 and 'vfpregset' fields.
5413 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5415 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5416 (aarch64_linux_fpregset): New static regset structures.
5417 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5418 of regset structures.
5419 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5422 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5424 * regset.h (struct regset): Remove gdbarch field.
5425 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5426 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5427 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5429 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5430 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5431 (ppc32_linux_vsxregset): Likewise.
5432 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5433 via the regcache instead of the regset.
5434 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5435 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5436 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5437 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5440 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5442 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5443 Constify structures.
5444 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5445 (alphanbsd_aout_gregset): Likewise.
5446 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5447 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5449 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5450 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5452 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5453 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5454 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5455 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5456 * m88k-tdep.c (m88k_gregset): Likewise.
5457 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5458 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5459 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5460 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5461 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5462 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5463 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5464 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5465 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5467 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5468 * sh-tdep.h (sh_corefile_gregset): Likewise.
5469 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5470 * vax-tdep.c (vax_gregset): Likewise.
5472 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5474 Fix TLS access for -static -pthread.
5475 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5476 (try_thread_db_load_1): Initialize it.
5477 (thread_db_get_thread_local_address): Call it if LM is zero.
5478 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5479 * target.h (struct target_ops) (to_get_thread_local_address): Add
5480 load_module_addr comment.
5482 2014-05-21 Pedro Alves <palves@redhat.com>
5484 * dcache.c (dcache_read_memory_partial): If reading the cache line
5485 fails, fallback to reading just the memory the caller wanted.
5487 2014-05-20 Doug Evans <dje@google.com>
5489 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5490 instead of get_current_arch.
5492 2014-05-20 Pedro Alves <palves@redhat.com>
5494 * NEWS: Mention that compare-sections now works with all targets.
5496 * remote.c (PACKET_qCRC): New enum value.
5497 (remote_verify_memory): Don't send qCRC if the target has no
5498 execution. Use packet_support/packet_ok. If the target doesn't
5499 support the qCRC packet, fallback to a deep memory copy.
5500 (compare_sections_command): Say "target image" instead of "remote
5502 (_initialize_remote): Add PACKET_qCRC to the list of config
5503 packets that have no associated command. Extend comment.
5504 * target.c (simple_verify_memory, default_verify_memory): New
5506 * target.h (struct target_ops) <to_verify_memory>: Default to
5507 default_verify_memory.
5508 (simple_verify_memory): New declaration.
5509 * target-delegates.c: Regenerate.
5511 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5513 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5515 2014-05-20 Hui Zhu <hui@codesourcery.com>
5516 Yao Qi <yao@codesourcery.com>
5519 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5520 and change address of sp and pc.
5522 2014-05-19 Tom Tromey <tromey@redhat.com>
5524 * gdbtypes.c (rank_function): Use XNEWVEC.
5525 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5527 2014-05-19 Doug Evans <dje@google.com>
5529 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5530 build_type_unit_groups and moved closer to only caller. Remove
5531 arguments. All references updated. Remove outdated .gdb_index
5533 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5534 build_type_psymtabs_1.
5536 2014-05-19 Doug Evans <dje@google.com>
5538 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5539 n_type_unit_groups, all_type_unit_groups. All uses removed.
5540 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5541 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5542 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5543 (add_type_unit_group_to_table): Delete.
5545 2014-05-19 Doug Evans <dje@google.com>
5547 * eval.c (evaluate_subexp_standard): Add some comments.
5549 2014-05-17 Doug Evans <xdje42@gmail.com>
5551 * progspace.c (remove_program_space): Delete, unused.
5552 * progspace.h (remove_program_space): Ditto.
5554 2014-05-17 Doug Evans <xdje42@gmail.com>
5556 * inferior.c (prune_inferiors): Fix comment.
5557 (remove_inferior_command): Call prune_program_spaces.
5559 2014-05-16 Doug Evans <dje@google.com>
5561 New command line option -D.
5563 * main.c (set_gdb_data_directory): New function.
5564 (captured_main): Recognize -D. Flag error for --data-directory "".
5565 Call set_gdb_data_directory.
5566 (print_gdb_help): Print --data-directory, -D.
5567 * main.h (set_gdb_data_directory): Declare.
5568 * top.c (staged_gdb_datadir): New static global.
5569 (set_gdb_datadir): Call set_gdb_data_directory
5570 (show_gdb_datadir): New function.
5571 (init_main): Update init of data-directory parameter.
5573 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5575 Import the "dirfd" gnulib module.
5576 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5577 * gnulib/aclocal.m4: Update.
5578 * gnulib/config.in: Update.
5579 * gnulib/configure: Update.
5580 * gnulib/import/Makefile.am: Update.
5581 * gnulib/import/Makefile.in: Update.
5582 * gnulib/import/dirfd.c: New.
5583 * gnulib/import/m4/dirfd.m4: New.
5584 * gnulib/import/m4/gnulib-cache.m4: Update.
5585 * gnulib/import/m4/gnulib-comp.m4: Update.
5587 2014-05-16 Pierre Muller <muller@sourceware.org>
5588 Yao Qi <yao@codesourcery.com>
5590 * valprint.c (print_wchar): Move the code on checking whether
5591 W is a printable wide char to the default branch of switch
5592 statement below. Call wchar_printable instead of gdb_iswprint.
5594 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5596 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5597 ldr.w and ldrd instructions.
5599 2014-05-15 Doug Evans <dje@google.com>
5601 * dwarf2read.c (read_structure_type): Delete outdated comments.
5603 2014-05-14 Tom Tromey <tromey@redhat.com>
5605 * macrocmd.c (print_macro_definition): Reindent.
5607 2014-05-13 Doug Evans <xdje42@gmail.com>
5609 * python/py-cmd.c (cmdpy_completer): Add comment.
5610 (completers): Make const.
5612 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5614 * infrun.c (resume): Remove should_resume (unused). Move up
5615 declaration of resume_ptid.
5617 2014-05-13 Tom Tromey <tromey@redhat.com>
5619 * language.h (unop_type_check): Remove.
5620 (binop_type_check): Don't declare.
5622 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5624 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5625 call to regcache_raw_collect.
5627 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5629 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5630 mi_console->quote as the quoting character.
5632 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5634 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5636 2014-04-29 Tom Tromey <tromey@redhat.com>
5638 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5639 "show debug varobj".
5641 2014-05-07 Kyle McMartin <kyle@redhat.com>
5643 Pushed by Joel Brobecker <brobecker@adacore.com>.
5644 * aarch64-tdep.c (aarch64_software_single_step): New function.
5645 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5646 with aarch64_software_single_step.
5648 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5652 2014-05-05 Keith Seitz <keiths@redhat.com>
5654 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5655 variable or history value is successfully parsed.
5657 2014-05-05 Yao Qi <yao@codesourcery.com>
5658 Pedro Alves <palves@redhat.com>
5660 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5661 address of blocks that intersects the requested range. Trim
5662 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5664 * ctf.c (ctf_xfer_partial): Likewise.
5666 2014-05-05 Yao Qi <yao@codesourcery.com>
5668 * printcmd.c (display_command): Remove the check to
5669 target_has_execution.
5671 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5673 * ppcobsd-nat.c: Include "obsd-nat.h".
5674 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5676 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5678 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5680 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5681 and 16-bit signed and unsigned arguments. Update comment.
5682 (stap_parse_probe_arguments): Extend code to handle such
5683 arguments. Use warning instead of complaint to notify about
5684 unrecognized bitness.
5686 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5688 PR breakpoints/16889
5689 * stap-probe.c (stap_parse_probe_arguments): Simplify
5690 check for non-prefixed probes (i.e., probes whose
5691 arguments do not start with "N@"). Always set the
5692 argument type to a sane value.
5694 2014-05-01 David Taylor <dtaylor@emc.com>
5696 * remote.c (compare_sections_command): Add -r option to compare
5697 all loadable read-only sections.
5699 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5701 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5702 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5704 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5705 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5706 Remove unused CORE_ADDR argument. Update all callers.
5708 2014-04-29 Pedro Alves <palves@redhat.com>
5710 * remote.c (struct packet_config) <detect>: Extend comment.
5711 (add_packet_config_cmd): Don't set the config's detect or support
5713 (init_all_packet_configs): Also initialize the config's 'detect'
5715 (reset_all_packet_configs_support): New function.
5716 (remote_open_1): Call reset_all_packet_configs_support instead of
5717 init_all_packet_configs.
5718 (_initialize_remote): Initialize all packet configs. Assert that
5719 all packets have an associated command, except a few known
5722 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5724 * dwarf2read.c (read_subrange_type): Handle dynamic
5725 DW_AT_lower_bound attributes.
5727 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5729 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5730 dynamic bounds before computing its upper bound.
5731 (ada_discrete_type_low_bound): Same as above with the lower bound.
5733 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5735 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5736 range types. Adjust the array handling implementation to
5737 take advantage of this change.
5738 (resolve_dynamic_range): New function, mostly extracted from
5739 resolve_dynamic_bounds.
5740 (resolve_dynamic_array): New function, mostly extracted from
5741 resolve_dynamic_bounds.
5742 (resolve_dynamic_bounds): Delete.
5743 (resolve_dynamic_type): Reimplement. Add handling of
5744 TYPE_CODE_RANGE types.
5746 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5748 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5749 handling of parallel ___XA types.
5751 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5753 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5754 unnecessary second call to static_unwrap_type.
5756 2014-04-27 Hui Zhu <hui@codesourcery.com>
5758 * stack.c (print_frame_info): Call do_gdb_disassembly with
5759 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5761 2014-04-26 Doug Evans <xdje42@gmail.com>
5763 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5765 2014-04-25 Pedro Alves <palves@redhat.com>
5768 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5769 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5770 and newline from built string.
5771 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5772 (linux_ptrace_attach_fail_reason): ... this.
5773 * linux-nat.c (linux_nat_attach): Adjust to use
5774 linux_ptrace_attach_fail_reason.
5776 2014-04-25 Pedro Alves <palves@redhat.com>
5778 * remote.c (struct remote_state): Remove multi_process_aware,
5779 non_stop_aware, cond_tracepoints, cond_breakpoints,
5780 breakpoint_commands, fast_tracepoints, static_tracepoints,
5781 install_in_trace, disconnected_tracing,
5782 enable_disable_tracepoints, string_tracing, and
5783 augmented_libraries_svr4_read fields.
5784 (remote_multi_process_p): Move further below in the file.
5785 (struct packet_config): Add comments.
5786 (update_packet_config): Delete function.
5787 (show_packet_config_cmd): Use packet_config_support.
5788 (add_packet_config_cmd): Use NULL as set callback.
5789 (packet_ok): "set remote foo-packet"-style commands no longer
5790 change config->supported -- adjust.
5791 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5792 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5793 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5794 (PACKET_QNonStop, PACKET_multiprocess_feature)
5795 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5796 (PACKET_DisconnectedTracing_feature)
5797 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5798 (set_remote_protocol_packet_cmd): Delete function.
5799 (packet_config_support, packet_support): New functions.
5800 (set_remote_protocol_Z_packet_cmd): Don't call
5801 update_packet_config.
5802 (remote_query_attached, remote_pass_signals)
5803 (remote_program_signals, remote_threads_info)
5804 (remote_threads_extra_info, remote_start_remote): Use
5806 (remote_start_remote): Use packet_config_support and
5808 (init_all_packet_configs): Set all packets to unknown support,
5809 instead of calling update_packet_config.
5810 (remote_check_symbols): Use packet_support.
5811 (remote_supported_packet): Unconditionally set the packet config's
5813 (remote_multi_process_feature, remote_non_stop_feature)
5814 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5815 (remote_breakpoint_commands_feature)
5816 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5817 (remote_install_in_trace_feature)
5818 (remote_disconnected_tracing_feature)
5819 (remote_enable_disable_tracepoint_feature)
5820 (remote_string_tracing_feature)
5821 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5822 (remote_protocol_features): Adjust to use remote_supported_packet
5823 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5824 "ConditionalTracepoints", "ConditionalBreakpoints",
5825 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5826 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5827 "EnableDisableTracepoints", and "tracenz".
5828 (remote_query_supported): Use packet_support.
5829 (remote_open_1): Adjust.
5830 (extended_remote_attach_1): Use packet_support. Switch on the
5831 result of packet_ok instead of checking whether the packet ended
5833 (remote_vcont_resume): Use packet_support.
5834 (remote_resume, remote_stop_ns, fetch_register_using_p)
5835 (remote_prepare_to_store, store_register_using_P)
5836 (check_binary_download, remote_write_bytes): Use packet_support.
5837 (remote_vkill): Use packet_support. Switch on the result of
5838 packet_ok instead of checking whether the packet ended up
5840 (extended_remote_supports_disable_randomization): Use
5842 (extended_remote_run): Switch on the result of packet_ok instead
5843 of checking whether the packet ended up disabled.
5844 (remote_insert_breakpoint, remote_remove_breakpoint)
5845 (remote_insert_watchpoint, remote_remove_watchpoint)
5846 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5848 (remote_search_memory): Use packet_config_support.
5849 (remote_get_thread_local_address, remote_get_tib_address)
5850 (remote_hostio_send_command, remote_can_execute_reverse): Use
5852 (remote_supports_cond_tracepoints)
5853 (remote_supports_cond_breakpoints)
5854 (remote_supports_fast_tracepoints)
5855 (remote_supports_static_tracepoints)
5856 (remote_supports_install_in_trace)
5857 (remote_supports_enable_disable_tracepoint)
5858 (remote_supports_string_tracing)
5859 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5860 the packet config says the feature is enabled or disabled.
5861 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5862 (remote_get_trace_status): Use packet_support.
5863 (remote_set_disconnected_tracing): Adjust to check whether the
5864 feature is enabled with packet_support.
5865 (remote_set_trace_buffer_size, remote_use_agent)
5866 (remote_can_use_agent, remote_supports_btrace): Use
5868 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5869 Use packet_config_support.
5870 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5871 the packet config says the feature is enabled or disabled.
5872 (set_range_stepping): Use packet_support.
5874 2014-04-25 Tom Tromey <tromey@redhat.com>
5876 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5879 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5881 * NEWS: Mention support for C99 variable length arrays.
5883 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5885 * ada-lang.c (standard_exc): Expand introductory comment.
5887 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5888 Walfred Tedeschi <walfred.tedeschi@intel.com>
5890 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5892 (amd64_linux_read_description): Add code to handle AVX512 xstate
5893 mask and return respective tdesc.
5894 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5895 and features/i386/x32-avx512-linux.c.
5896 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5897 (amd64_linux_core_read_description): Add code to handle AVX512
5898 xstate mask and return respective tdesc.
5899 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5900 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5902 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5903 (tdesc_amd64_avx512_linux): New prototype.
5904 (tdesc_x32_avx512_linux): Likewise.
5905 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5906 features/i386/x32-avx512.c.
5907 (amd64_ymm_avx512_names): New register names for pseudo
5909 (amd64_ymmh_avx512_names): New register names for raw registers
5911 (amd64_k_names): New register names for K registers.
5912 (amd64_zmmh_names): New register names for ZMM raw registers.
5913 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5914 (amd64_xmm_avx512_names): New register names for XMM16-31
5916 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5918 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5919 if feature is present.
5920 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5921 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5922 (AMD64_NUM_REGS): Adjust to new number of registers.
5923 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5924 registers supplied via XSTATE by AVX512 registers.
5925 (i386_linux_read_description): Add case for AVX512.
5926 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5927 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5928 (i386_linux_core_read_description): Add case for AVX512.
5929 (i386_linux_init_abi): Install supported register note section
5931 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5933 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5934 registers to be number of zmm7h + 1.
5935 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5936 * i386-tdep.c: Include features/i386/i386-avx512.c.
5937 (i386_zmm_names): Add ZMM pseudo register names array.
5938 (i386_zmmh_names): Add ZMM raw register names array.
5939 (i386_k_names): Add K raw register names array.
5940 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5941 registers. AVX512 has 16 more ZMM registers than there are YMM
5943 (i386_zmmh_regnum_p): Add function to look up register number of
5945 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5946 (i386_k_regnum_p): Likewise for K raw registers.
5947 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5948 registers added by AVX512.
5949 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5950 registers added by AVX512.
5951 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5953 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5954 (i386_pseudo_register_name): Add ZMM pseudo registers.
5955 (i386_zmm_type): Construct and return vector registers type for ZMM
5957 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5958 ZMM0-31 pseudo registers and K registers.
5959 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5960 and YMM16-31 registers from register cache.
5961 (i386_pseudo_register_write): Add code to write K, ZMM and
5963 (i386_register_reggroup_p): Add code to include/exclude AVX512
5964 registers in/from respective register groups.
5965 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5966 registers if feature is present in xcr0.
5967 (i386_gdbarch_init): Add code to initialize AVX512 feature
5968 variables in tdep structure, wire in pseudo registers and call
5969 initialize_tdesc_i386_avx512.
5970 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5972 (i386_regnum): Add AVX512 registers.
5973 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5974 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5975 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5976 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5978 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5979 (i386_ymm_avx512_regnum_p): Likewise.
5980 (i386_k_regnum_p): Likewise.
5981 (i386_zmm_regnum_p): Likewise.
5982 (i386_zmmh_regnum_p): Likewise.
5983 * i387-tdep.c : Update year in copyright notice.
5984 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5986 (XSAVE_YMM_AVX512_ADDR): New macro.
5987 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5989 (XSAVE_XMM_AVX512_ADDR): New macro.
5990 (xsave_avx512_k_offset): New table for K register offsets in
5992 (XSAVE_AVX512_K_ADDR): New macro.
5993 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5995 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5996 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5998 (i387_collect_xsave): Add code to collect AVX512 registers from
6000 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6001 of XMM16-31 registers.
6002 (I387_NUM_K_REGS): New define for number of K registers.
6003 (I387_K0_REGNUM): New define for K0 register number.
6004 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6005 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6006 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6008 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6009 (I387_XMM16_REGNUM): New define for XMM16 register number.
6010 (I387_YMM0_REGNUM): New define for YMM0 register number.
6011 (I387_KEND_REGNUM): New define for last K register number.
6012 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6013 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6015 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6017 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6019 * features/Makefile: Add AVX512 related files.
6020 * features/i386/32bit-avx512.xml: New file.
6021 * features/i386/64bit-avx512.xml: Likewise.
6022 * features/i386/amd64-avx512-linux.c: Likewise.
6023 * features/i386/amd64-avx512-linux.xml: Likewise.
6024 * features/i386/amd64-avx512.c: Likewise.
6025 * features/i386/amd64-avx512.xml: Likewise.
6026 * features/i386/i386-avx512-linux.c: Likewise.
6027 * features/i386/i386-avx512-linux.xml: Likewise.
6028 * features/i386/i386-avx512.c: Likewise.
6029 * features/i386/i386-avx512.xml: Likewise.
6030 * features/i386/x32-avx512-linux.c: Likewise.
6031 * features/i386/x32-avx512-linux.xml: Likewise.
6032 * features/i386/x32-avx512.c: Likewise.
6033 * features/i386/x32-avx512.xml: Likewise.
6034 * regformats/i386/amd64-avx512-linux.dat: New file.
6035 * regformats/i386/amd64-avx512.dat: Likewise.
6036 * regformats/i386/i386-avx512-linux.dat: Likewise.
6037 * regformats/i386/i386-avx512.dat: Likewise.
6038 * regformats/i386/x32-avx512-linux.dat: Likewise.
6039 * regformats/i386/x32-avx512.dat: Likewise.
6040 * NEWS: Add note about new support for AVX512.
6043 2014-04-23 Pedro Alves <palves@redhat.com>
6045 * breakpoint.c (insert_bp_location): Tolerate errors if the
6046 breakpoint is set in a user-loaded objfile.
6047 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6048 location is marked shlib_disabled. If the breakpoint is set in a
6049 user-loaded objfile is a GDB-side memory breakpoint, validate it
6050 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6051 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6053 * mem-break.c (memory_validate_breakpoint): New function.
6054 * objfiles.c (userloaded_objfile_contains_address_p): New
6056 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6057 * target.h (memory_validate_breakpoint): New declaration.
6059 2014-04-23 Pedro Alves <palves@redhat.com>
6061 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6062 the breakpoint is set in a shared library, only suppress
6063 errors for software breakpoints, not hardware breakpoints.
6065 2014-04-22 Pedro Alves <palves@redhat.com>
6067 * infrun.c (schedlock_applies): New function, factored out from
6068 find_thread_needs_step_over.
6069 (find_thread_needs_step_over): Use it.
6070 (switch_back_to_stepped_thread): Always clear trap_expected if the
6071 step over is finished. Return early if scheduler locking applies.
6072 Look for the stepping thread and a potential step-over thread with
6074 (currently_stepping_or_nexting_callback): Delete.
6076 2014-04-22 Nick Clifton <nickc@redhat.com>
6078 * NEWS: Mention that ARM sim now supports tracing.
6080 2014-04-22 Yao Qi <yao@codesourcery.com>
6082 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6084 * tracefile.c (tracefile_fetch_registers): ... it. New
6086 * tracefile.h (tracefile_fetch_registers): Declare.
6087 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6088 tracefile_fetch_registers.
6090 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6093 * windows-nat.c (thread_rec): Don't display a warning when
6094 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6095 fails for any reason, set th->suspended to -1, so that we don't
6096 try to resume such a thread. Also, don't return NULL in these
6097 cases, to avoid completely ruin the session due to "PC register is
6098 not available" error.
6099 (do_windows_fetch_inferior_registers): Check errors in
6100 GetThreadContext call.
6101 (windows_continue): Accept an additional argument KILLED; if not
6102 zero, ignore errors in the SetThreadContext call, since the
6103 inferior was killed and is shutting down.
6104 (windows_resume, get_windows_debug_event)
6105 (windows_create_inferior, windows_mourn_inferior)
6106 (windows_kill_inferior): All callers of windows_continue changed
6107 to adjust to its new calling sequence.
6109 2014-04-19 Yao Qi <yao@codesourcery.com>
6111 * ctf.c (ctf_open): Call post_create_inferior.
6113 2014-04-19 Yao Qi <yao@codesourcery.com>
6115 * ctf.c (handle_id): New static variable.
6116 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6117 value. Get the declaration of event "register" and get length
6118 of field "contents".
6120 2014-04-19 Yao Qi <yao@codesourcery.com>
6122 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6124 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6126 * valops.c (oload_method_static): Remove unnecessary argument
6127 METHOD. Update all callers.
6129 2014-04-18 Pedro alves <palves@redhat.com>
6130 Tom Tromey <tromey@redhat.com>
6133 * frame.c (get_prev_frame_1): Rename to ...
6134 (get_prev_frame_always): ... this, and make extern. Adjust.
6135 (skip_artificial_frames): Use get_prev_frame_always.
6136 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6137 (get_frame_unwind_stop_reason): Adjust to rename.
6138 * frame.h (get_prev_frame_always): Declare.
6139 * inline-frame.c: Include frame.h.
6140 (inline_frame_this_id): Use get_prev_frame_always.
6142 2014-04-18 Tristan Gingold <gingold@adacore.com>
6144 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6145 code by using bfd_mach_o_get_base_address.
6147 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6149 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6150 (spu_ax_pseudo_register_collect): New function.
6151 (spu_ax_pseudo_register_push_stack): Likewise.
6152 (spu_dwarf_reg_to_regnum): Likewise.
6153 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6155 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6157 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6158 Replace FRAME argument with FRAME_ID.
6159 * gdbarch.c, gdbarch.h: Regenerate.
6160 * findvar.c (default_value_from_register): Add GDBARCH argument;
6161 replace FRAME by FRAME_ID. No longer call get_frame_id.
6162 (value_from_register): Update call to gdbarch_value_from_register.
6163 * value.h (default_value_from_register): Update prototype.
6164 * s390-linux-tdep.c (s390_value_from_register): Update interface
6165 and call to default_value_from_register.
6166 * spu-tdep.c (spu_value_from_register): Likewise.
6168 * findvar.c (address_from_register): Remove TYPE argument.
6169 Do not call value_from_register; use gdbarch_value_from_register
6170 with null_frame_id instead.
6171 * value.h (address_from_register): Update prototype.
6172 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6173 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6174 address_from_register interface change.
6176 2014-04-17 Yao Qi <yao@codesourcery.com>
6178 * gdbtypes.h: Update comments to link to types and macros'
6181 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6183 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6185 2014-04-16 Keith Seitz <keiths@redhat.com>
6188 * dwarf2read.c (skip_one_die): Check that all relative-offset
6189 sibling DIEs fall within range of the current reader's buffer.
6190 (read_partial_die): Likewise.
6192 2014-04-16 Keith Seitz <keiths@redhat.com>
6195 * cp-namespace.c (lookup_symbol_file): If the type name of
6196 `this' is NULL, return immediately.
6198 2014-04-14 Keith Seitz <keiths@redhat.com>
6201 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6202 from symbol_matches_domain in symtab.c. All local callers
6203 of symbol_matches_domain updated.
6204 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6205 search STRUCT_DOMAIN.
6206 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6207 independently. standard_lookup will do that automatically.
6208 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6209 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6210 (cp_lookup_symbol_in_namespace): Likewise.
6211 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6212 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6213 may return a STRUCT_DOMAIN match.
6214 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6215 * cp-support.c: Include language.h.
6216 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6218 * psymtab.c (match_partial_symbol): Compare the requested
6219 domain with the symbol's domain directly.
6220 (lookup_partial_symbol): Likewise.
6221 * symtab.c (lookup_symbol_in_language): Explain when/why
6222 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6223 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6224 appropriate languages.
6225 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6226 and moved to ada-lang.c
6227 (lookup_block_symbol): Explain that this function only returns
6228 symbol matching the requested DOMAIN.
6229 Compare the requested domain with the symbol's domain directly.
6230 (iterate_over_symbols): Compare the requested domain with the
6231 symbol's domain directly.
6232 * symtab.h (symbol_matches_domain): Remove.
6234 2014-04-14 Tom Tromey <tromey@redhat.com>
6237 * c-exp.y (type_aggregate_p): New function.
6238 (qualified_name, classify_inner_name): Use it.
6239 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6240 and TYPE_TARGET_TYPE of an enum type.
6241 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6243 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6244 handle TYPE_DECLARED_CLASS.
6245 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6247 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6248 * valops.c (enum_constant_from_type): New function.
6249 (value_aggregate_elt): Use it.
6250 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6253 2014-04-14 Tom Tromey <tromey@redhat.com>
6255 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6256 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6258 * value.h (value_aggregate_elt): Update.
6260 2014-04-14 Tom Tromey <tromey@redhat.com>
6262 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6264 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6266 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6267 (evaluate_subexp_standard): Pass noside argument.
6268 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6269 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6270 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6271 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6272 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6274 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6276 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6277 points to a constant blob.
6279 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6281 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6282 property and store it as the high bound and flag the range accordingly.
6283 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6284 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6285 * gdbtypes.h (enum range_flags): New enum.
6286 (struct range_bounds): Add flags member.
6288 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6290 * c-typeprint.c (c_type_print_varspec_suffix): Added
6291 check for not yet resolved high bound. If unresolved, print
6292 "variable length" string to the console instead of random
6295 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6297 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6299 (ada_template_to_fixed_record_type_1): Likewise.
6300 (ada_to_fixed_type_1): Likewise.
6301 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6302 (cp_print_value): Likewise.
6303 * d-valprint.c (dynamic_array_type): Likewise.
6304 * findvar.c (address_of_variable): Likewise.
6305 * jv-valprint.c (java_value_print): Likewise.
6306 * valops.c (value_ind): Likewise.
6307 * value.c (coerce_ref): Likewise.
6309 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6311 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6312 value and retrieve the dynamic type size.
6314 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6316 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6317 passed to sizeof is dynamic evaluate the argument to compute the length.
6319 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6320 Joel Brobecker <brobecker@adacore.com>
6322 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6323 (dwarf2_evaluate_property): New function.
6324 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6325 * dwarf2read.c (attr_to_dynamic_prop): New function.
6326 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6328 * gdbtypes.c: Include dwarf2loc.h.
6329 (is_dynamic_type): New function.
6330 (resolve_dynamic_type): New function.
6331 (resolve_dynamic_bounds): New function.
6332 (get_type_length): New function.
6333 (check_typedef): Use get_type_length to compute type length.
6334 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6335 (TYPE_LOW_BOUND_KIND): New macro.
6336 (is_dynamic_type): New function prototype.
6337 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6338 to resolve dynamic properties of the type. Update comment.
6339 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6341 2014-04-14 Richard Henderson <rth@redhat.com>
6343 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6345 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6346 Doug Evans <xdje42@gmail.com>
6348 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6349 dereference TYPE_CODE_REF values.
6351 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6353 Revert the following changes due to regressions:
6355 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6356 (dwarf2_evaluate_property): New function.
6357 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6358 * dwarf2read.c (attr_to_dynamic_prop): New function.
6359 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6361 * gdbtypes.c: Include dwarf2loc.h.
6362 (is_dynamic_type): New function.
6363 (resolve_dynamic_type): New function.
6364 (resolve_dynamic_bounds): New function.
6365 (get_type_length): New function.
6366 (check_typedef): Use get_type_length to compute type length.
6367 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6368 (TYPE_LOW_BOUND_KIND): New macro.
6369 (is_dynamic_type): New function prototype.
6370 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6371 to resolve dynamic properties of the type. Update comment.
6372 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6374 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6375 passed to sizeof is dynamic evaluate the argument to compute the length.
6377 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6378 value and retrieve the dynamic type size.
6380 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6381 (ada_template_to_fixed_record_type_1): Likewise.
6382 (ada_to_fixed_type_1): Likewise.
6383 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6384 (cp_print_value): Likewise.
6385 * d-valprint.c (dynamic_array_type): Likewise.
6386 * eval.c (evaluate_subexp_with_coercion): Likewise.
6387 * findvar.c (address_of_variable): Likewise.
6388 * jv-valprint.c (java_value_print): Likewise.
6389 * valops.c (value_ind): Likewise.
6390 * value.c (coerce_ref): Likewise.
6392 * c-typeprint.c (c_type_print_varspec_suffix): Added
6393 check for not yet resolved high bound. If unresolved, print
6394 "variable length" string to the console instead of random
6397 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6398 property and store it as the high bound and flag the range accordingly.
6399 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6400 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6401 * gdbtypes.h (enum range_flags): New enum.
6402 (struct range_bounds): Add flags member.
6404 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6405 points to a constant blob.
6407 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6408 (evaluate_subexp_standard): Pass noside argument.
6409 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6410 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6411 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6412 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6413 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6415 2014-04-11 Keith Seitz <keiths@redhat.com>
6418 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6419 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6422 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6424 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6425 (evaluate_subexp_standard): Pass noside argument.
6426 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6427 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6428 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6429 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6430 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6432 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6434 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6435 points to a constant blob.
6437 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6439 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6440 property and store it as the high bound and flag the range accordingly.
6441 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6442 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6443 * gdbtypes.h (enum range_flags): New enum.
6444 (struct range_bounds): Add flags member.
6446 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6448 * c-typeprint.c (c_type_print_varspec_suffix): Added
6449 check for not yet resolved high bound. If unresolved, print
6450 "variable length" string to the console instead of random
6453 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6455 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6456 (ada_template_to_fixed_record_type_1): Likewise.
6457 (ada_to_fixed_type_1): Likewise.
6458 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6459 (cp_print_value): Likewise.
6460 * d-valprint.c (dynamic_array_type): Likewise.
6461 * eval.c (evaluate_subexp_with_coercion): Likewise.
6462 * findvar.c (address_of_variable): Likewise.
6463 * jv-valprint.c (java_value_print): Likewise.
6464 * valops.c (value_ind): Likewise.
6465 * value.c (coerce_ref): Likewise.
6467 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6469 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6470 value and retrieve the dynamic type size.
6472 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6474 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6475 passed to sizeof is dynamic evaluate the argument to compute the length.
6477 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6479 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6480 (dwarf2_evaluate_property): New function.
6481 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6482 * dwarf2read.c (attr_to_dynamic_prop): New function.
6483 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6485 * gdbtypes.c: Include dwarf2loc.h.
6486 (is_dynamic_type): New function.
6487 (resolve_dynamic_type): New function.
6488 (resolve_dynamic_bounds): New function.
6489 (get_type_length): New function.
6490 (check_typedef): Use get_type_length to compute type length.
6491 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6492 (TYPE_LOW_BOUND_KIND): New macro.
6493 (is_dynamic_type): New function prototype.
6494 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6495 to resolve dynamic properties of the type. Update comment.
6496 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6498 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6500 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6501 declaring high/low bounds and change uses accordingly. Call
6502 create_range_type instead of create_static_range_type.
6503 * gdbtypes.c (create_range_type): New function.
6504 (create_range_type): Convert bounds into struct bound_prop and pass
6505 them to create_range_type.
6506 * gdbtypes.h (struct bound_prop): New struct.
6507 (create_range_type): New function prototype.
6508 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6509 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6510 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6512 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6514 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6516 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6517 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6518 * ada-lang.c: All uses of create_range_type updated.
6519 * coffread.c: All uses of create_range_type updated.
6520 * dwarf2read.c: All uses of create_range_type updated.
6521 * f-exp.y: All uses of create_range_type updated.
6522 * m2-valprint.c: All uses of create_range_type updated.
6523 * mdebugread.c: All uses of create_range_type updated.
6524 * stabsread.c: All uses of create_range_type updated.
6525 * valops.c: All uses of create_range_type updated.
6526 * valprint.c: All uses of create_range_type updated.
6528 2014-04-10 Pedro Alves <palves@redhat.com>
6530 * breakpoint.c (single_step_breakpoints)
6531 (single_step_gdbarch): Move up in the file.
6532 (one_breakpoint_xfer_memory): New function, factored out from ...
6533 (breakpoint_xfer_memory): ... here. Also process single-step
6536 2014-04-09 Tristan Gingold <gingold@adacore.com>
6538 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6540 (darwin_decode_exception_message): Free port only after use.
6542 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6544 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6545 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6546 when setting the size of call_length.
6548 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6550 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6551 dereference TYPE_CODE_REF values.
6553 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6555 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6556 end of warning message.
6558 2014-04-03 Doug Evans <dje@google.com>
6560 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6561 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6563 2014-04-02 Alan Modra <amodra@gmail.com>
6565 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6566 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6567 (struct symbol_file_add_from_memory_args): Add size field.
6568 (find_vdso_size): New function.
6569 (add_vsyscall_page): Attempt to find vdso size.
6571 2014-04-01 Doug Evans <dje@google.com>
6573 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6575 2014-04-01 Tristan Gingold <gingold@adacore.com>
6577 * darwin-nat.c (darwin_encode_reply): Add prototype.
6578 (darwin_decode_exception_message): Reply to unknown inferiors.
6579 (darwin_decode_message): Handle message by id. Ignore message
6580 to unknown inferior.
6581 (darwin_wait): Discard unknown messages, add debug trace.
6583 2014-03-31 Doug Evans <dje@google.com>
6585 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6588 2014-03-31 Doug Evans <dje@google.com>
6590 New option "set print symbol-loading".
6592 * solib.c (solib_read_symbols): Only print symbol loading messages
6594 (solib_add): If symbol loading is in "brief" mode, notify user
6595 symbols are being loaded.
6596 (reload_shared_libraries_1): Ditto.
6597 * symfile.c (print_symbol_loading_off): New static global.
6598 (print_symbol_loading_brief): New static global.
6599 (print_symbol_loading_full): New static global.
6600 (print_symbol_loading_enums): New static global.
6601 (print_symbol_loading): New static global.
6602 (print_symbol_loading_p): New function.
6603 (symbol_file_add_with_addrs): Only print symbol loading messages
6605 (_initialize_symfile): Register "print symbol-loading" set/show
6607 * symfile.h (print_symbol_loading_p): Declare.
6609 2014-03-30 Doug Evans <xdje42@gmail.com>
6611 * infrun.c (set_last_target_status): New function.
6612 (handle_inferior_event): Call it.
6614 2014-03-30 Doug Evans <xdje42@gmail.com>
6616 * inferior.h (enum stop_kind): Improve comment.
6618 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6620 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6621 a reference, strip the reference layer before calling
6622 the lang_ops value_has_mutated callback.
6624 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6626 Remove some globals from our parser.
6627 * language.c (unk_lang_parser): Add "struct parser_state"
6629 * language.h (struct language_defn) <la_parser>: Likewise.
6630 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6631 (initialize_expout): Add "struct parser_state" argument.
6632 Rewrite function to use the parser state.
6633 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6634 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6635 write_exp_elt_longcst, write_exp_elt_dblcst,
6636 write_exp_elt_decfloatcst, write_exp_elt_type,
6637 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6638 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6639 write_dollar_variable): Likewise.
6640 (parse_exp_in_context_1): Use parser state.
6641 (insert_type_address_space): Add "struct parser_state" argument.
6643 (increase_expout_size): New function.
6644 * parser-defs.h: Forward declare "struct language_defn" and
6645 "struct parser_state".
6646 (expout, expout_size, expout_ptr): Remove extern declarations.
6647 (parse_gdbarch, parse_language): Rewrite macro declarations to
6648 accept the parser state.
6649 (struct parser_state): New struct.
6650 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6651 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6652 write_exp_elt_decfloatcst, write_exp_elt_type,
6653 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6654 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6655 write_exp_msymbol, write_dollar_variable,
6656 mark_struct_expression, insert_type_address_space): Add "struct
6657 parser_state" argument.
6658 (increase_expout_size): New function.
6659 * utils.c (do_clear_parser_state): New function.
6660 (make_cleanup_clear_parser_state): Likewise.
6661 * utils.h (make_cleanup_clear_parser_state): New function
6663 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6664 Update calls to write_exp* in order to pass the parser state.
6665 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6666 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6667 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6668 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6669 * stap-probe.c (stap_parse_register_operand): Likewise.
6670 (stap_parse_single_operand): Likewise.
6671 (stap_parse_argument_1): Likewise.
6672 (stap_parse_argument): Use parser state.
6673 * stap-probe.h: Include "parser-defs.h".
6674 (struct stap_parse_info) <pstate>: New field.
6675 * c-exp.y (parse_type): Rewrite to use parser state.
6676 (yyparse): Redefine to c_parse_internal.
6677 (pstate): New global variable.
6678 (parse_number): Add "struct parser_state" argument.
6679 (write_destructor_name): Likewise.
6680 (type_exp): Update calls to write_exp* and similars in order to
6682 (exp1, exp, variable, qualified_name, space_identifier,
6683 typename, typebase): Likewise.
6684 (write_destructor_name, parse_number, lex_one_token,
6685 classify_name, classify_inner_name, c_parse): Add "struct
6686 parser_state" argument. Update function to use parser state.
6687 * c-lang.h: Forward declare "struct parser_state".
6688 (c_parse): Add "struct parser_state" argument.
6689 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6690 (yyparse): Redefine macro to ada_parse_internal.
6691 (pstate): New variable.
6692 (write_int, write_object_renaming, write_var_or_type,
6693 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6694 type_int, type_long, type_long_long, type_float, type_double,
6695 type_long_double, type_char, type_boolean, type_system_address):
6696 Add "struct parser_state" argument.
6697 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6698 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6699 var_or_type, aggregate, aggregate_component_list,
6700 positional_list, others, component_group,
6701 component_associations): Update calls to write_exp* and similar
6702 functions in order to use parser state.
6703 (ada_parse, write_var_from_sym, write_int,
6704 write_exp_op_with_string, write_object_renaming,
6705 find_primitive_type, write_selectors, write_ambiguous_var,
6706 write_var_or_type, write_name_assoc, type_int, type_long,
6707 type_long_long, type_float, type_double, type_long_double,
6708 type_char, type_boolean, type_system_address): Add "struct
6709 parser_state" argument. Adjust function to use parser state.
6710 * ada-lang.c (parse): Likewise.
6711 * ada-lang.h: Forward declare "struct parser_state".
6712 (ada_parse): Add "struct parser_state" argument.
6713 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6714 calls to both functions.
6715 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6717 (yyparse): Redefine macro to f_parse_internal.
6718 (pstate): New variable.
6719 (parse_number): Add "struct parser_state" argument.
6720 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6721 and similars in order to use parser state.
6722 (parse_number): Adjust code to use parser state.
6724 (f_parse): New function.
6725 * f-lang.h: Forward declare "struct parser_state".
6726 (f_parse): Add "struct parser_state" argument.
6727 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6729 (yyparse): Redefine macro for java_parse_internal.
6730 (pstate): New variable.
6731 (push_expression_name, push_expression_name, insert_exp): Add
6732 "struct parser_state" argument.
6733 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6734 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6735 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6736 PostIncrementExpression, PostDecrementExpression,
6737 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6738 UnaryExpressionNotPlusMinus, CastExpression,
6739 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6740 RelationalExpression, EqualityExpression, AndExpression,
6741 ExclusiveOrExpression, InclusiveOrExpression,
6742 ConditionalAndExpression, ConditionalOrExpression,
6743 ConditionalExpression, Assignment, LeftHandSide): Update
6744 calls to write_exp* and similars in order to use parser state.
6745 (parse_number): Ajust code to use parser state.
6747 (java_parse): New function.
6748 (push_variable): Add "struct parser_state" argument. Adjust
6749 code to user parser state.
6750 (push_fieldnames, push_qualified_expression_name,
6751 push_expression_name, insert_exp): Likewise.
6752 * jv-lang.h: Forward declare "struct parser_state".
6753 (java_parse): Add "struct parser_state" argument.
6754 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6756 (yyparse): Redefine macro to m2_parse_internal.
6757 (pstate): New variable.
6758 (type_exp, exp, fblock, variable, type): Update calls to
6759 write_exp* and similars to use parser state.
6761 (m2_parse): New function.
6762 * m2-lang.h: Forward declare "struct parser_state".
6763 (m2_parse): Add "struct parser_state" argument.
6764 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6765 * objc-lang.h: Forward declare "struct parser_state".
6766 (end_msglist): Add "struct parser_state" argument.
6767 * p-exp.y (parse_type): Rewrite macro to use parser state.
6768 (yyparse): Redefine macro to pascal_parse_internal.
6769 (pstate): New variable.
6770 (parse_number): Add "struct parser_state" argument.
6771 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6772 write_exp* and similars in order to use parser state.
6773 (parse_number, yylex): Adjust code to use parser state.
6774 (pascal_parse): New function.
6775 * p-lang.h: Forward declare "struct parser_state".
6776 (pascal_parse): Add "struct parser_state" argument.
6777 * go-exp.y (parse_type): Rewrite macro to use parser state.
6778 (yyparse): Redefine macro to go_parse_internal.
6779 (pstate): New variable.
6780 (parse_number): Add "struct parser_state" argument.
6781 (type_exp, exp1, exp, variable, type): Update calls to
6782 write_exp* and similars in order to use parser state.
6783 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6784 to use parser state.
6785 (go_parse): Likewise.
6786 * go-lang.h: Forward declare "struct parser_state".
6787 (go_parse): Add "struct parser_state" argument.
6789 2014-03-27 Doug Evans <dje@google.com>
6791 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6793 2014-03-27 Doug Evans <dje@google.com>
6795 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6796 Remove argument abbrev_section. All callers updated.
6798 2014-03-27 Doug Evans <dje@google.com>
6800 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6801 addr_base, ranges_base.
6803 2014-03-26 Keith Seitz <keiths@redhat.com>
6805 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6806 types, not VAR_DOMAIN.
6808 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6810 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6812 * features/nios2-linux.c: Regenerated.
6813 * features/nios2.c: Regenerated.
6815 2014-03-25 Pedro Alves <palves@redhat.com>
6817 * cli/cli-script.c (script_from_file): Force the interpreter to
6820 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6822 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6823 small stack allocation.
6825 2014-03-24 Tristan Gingold <gingold@adacore.com>
6827 * darwin-nat.c (exc_server): Remove unused prototype.
6828 (darwin_dump_message): Correctly display data on x86_64.
6829 (darwin_encode_reply): Fix style.
6830 Add comments and fix indentation.
6832 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6834 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6836 2014-03-22 Doug Evans <xdje42@gmail.com>
6838 * infcmd.c: Whitespace fixes.
6839 (interrupt_command): Merge two function comments into one.
6841 2014-03-22 Doug Evans <xdje42@gmail.com>
6843 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6846 2014-03-22 Yao Qi <yao@codesourcery.com>
6848 * remote.c (target_read_live_memory): Remove.
6849 (memory_xfer_live_readonly_partial): Rename it to
6850 remote_xfer_live_readonly_partial. Remove argument 'object'.
6851 All callers updated. Call remote_read_bytes_1
6852 instead of target_read_live_memory.
6853 * tracepoint.c (set_traceframe_number): Remove.
6854 (make_cleanup_restore_traceframe_number): Likewise .
6855 * tracepoint.h (set_traceframe_number): Remove declaration.
6856 (make_cleanup_restore_traceframe_number): Likewise.
6858 2014-03-22 Yao Qi <yao@codesourcery.com>
6860 * remote.c (remote_read_bytes): Move code on reading from the
6862 (remote_read_bytes_1): ... here. New function.
6864 2014-03-22 Yao Qi <yao@codesourcery.com>
6866 * ctf.c (ctf_xfer_partial): Check the return value of
6867 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6868 return TARGET_XFER_UNAVAILABLE.
6869 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6870 * target.c (target_read_live_memory): Move it to remote.c.
6871 (memory_xfer_live_readonly_partial): Likewise.
6872 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6873 * remote.c (target_read_live_memory): Moved from target.c.
6874 (memory_xfer_live_readonly_partial): Likewise.
6875 (remote_read_bytes): Factored out from
6876 memory_xfer_partial_1.
6878 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6880 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6883 2014-03-21 Pedro Alves <palves@redhat.com>
6885 * infrun.c (normal_stop): Extend comment.
6887 2014-03-21 Hui Zhu <hui@codesourcery.com>
6888 Pedro Alves <palves@redhat.com>
6890 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6892 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6893 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6894 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6896 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6898 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6899 `z' formatted output modifier.
6901 2014-03-20 Tom Tromey <tromey@redhat.com>
6902 Sergio Durigan Junior <sergiodj@redhat.com>
6904 * probe.c (parse_probes): Turn assert into an ordinary error.
6905 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6906 exceptions when parsing probes. Rearrange the code for clarity.
6908 2014-03-20 Tom Tromey <tromey@redhat.com>
6911 * top.c (execute_command): Only dispatch events if the command
6914 2014-03-20 Tom Tromey <tromey@redhat.com>
6917 * infcall.c: Include event-top.h.
6918 (run_inferior_call): Call async_disable_stdin if needed.
6920 2014-03-20 Pedro Alves <palves@redhat.com>
6922 * infrun.c (prepare_to_proceed): Delete.
6923 (thread_still_needs_step_over): New function.
6924 (find_thread_needs_step_over): New function.
6925 (proceed): If the current thread needs a step-over, set its
6926 steping_over_breakpoint flag. Adjust to use
6927 find_thread_needs_step_over instead of prepare_to_proceed.
6928 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6929 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6931 (switch_back_to_stepped_thread): Step over breakpoints of all
6932 threads not the stepping thread, before switching back to the
6935 2014-03-20 Pedro Alves <palves@redhat.com>
6937 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6939 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6940 * infrun.c (saved_singlestep_ptid)
6941 (stepping_past_singlestep_breakpoint): Delete.
6942 (resume): Remove stepping_past_singlestep_breakpoint handling.
6943 (proceed): Store the prev_pc of the stepping thread too.
6944 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6946 (enum infwait_states): Delete infwait_thread_hop_state.
6947 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6949 (handle_inferior_event): Adjust.
6950 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6951 handling and the thread-hop code. Before removing single-step
6952 breakpoints, check whether the thread hit a single-step breakpoint
6953 of another thread. If it did, the trap is not a random signal.
6954 (switch_back_to_stepped_thread): If the event thread hit a
6955 single-step breakpoint, unblock it before switching to the
6956 stepping thread. Handle the case of the stepped thread having
6958 (keep_going): Handle the case of the current thread moving past a
6959 single-step breakpoint.
6961 2014-03-20 Pedro Alves <palves@redhat.com>
6964 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6965 are being stepped over.
6966 (breakpoint_address_match): Make extern.
6967 * breakpoint.h (breakpoint_address_match): New declaration.
6968 * inferior.h (stepping_past_instruction_at): New declaration.
6969 * infrun.c (struct step_over_info): New type.
6970 (step_over_info): New global.
6971 (set_step_over_info, clear_step_over_info)
6972 (stepping_past_instruction_at): New functions.
6973 (handle_inferior_event): Clear the step-over info when
6974 trap_expected is cleared.
6975 (resume): Remove now stale comment.
6976 (clear_proceed_status): Clear step-over info.
6977 (proceed): Adjust step-over handling to set or clear the step-over
6978 info instead of removing all breakpoints.
6979 (handle_signal_stop): When setting up a thread-hop, don't remove
6981 (stop_stepping): Clear step-over info.
6982 (keep_going): Adjust step-over handling to set or clear step-over
6983 info and then always inserting breakpoints, instead of removing
6984 all breakpoints when stepping over one.
6986 2014-03-20 Pedro Alves <palves@redhat.com>
6988 * infrun.c (previous_inferior_ptid): Adjust comment.
6989 (deferred_step_ptid): Delete.
6990 (infrun_thread_ptid_changed, prepare_to_proceed)
6991 (init_wait_for_inferior): Adjust.
6992 (handle_signal_stop): Delete deferred_step_ptid handling.
6994 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6997 * defs.h (sync_quit_force_run): New declaration.
6998 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6999 * event-top.c (async_sigterm_handler): New declaration.
7000 (async_sigterm_token): New variable.
7001 (async_init_signals): Create also async_sigterm_token.
7002 (async_sigterm_handler): New function.
7003 (sync_quit_force_run): New variable.
7004 (handle_sigterm): Replace quit_force call by other calls.
7005 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7007 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7009 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7010 offset into SPE pseudo registers.
7012 2014-03-18 Pedro Alves <palves@redhat.com>
7015 * inferior.h (print_stop_event): Declare.
7016 * infrun.c (print_stop_event): New, factored out from ...
7017 (normal_stop): ... this.
7018 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7019 of bpstat_print/print_stack_frame.
7021 2014-03-17 Tom Tromey <tromey@redhat.com>
7023 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7025 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7027 * ada-lang.c (decode_constrained_packed_array): Perform a
7028 minimal coercion for reference with coerce_ref instead of
7031 2014-03-17 Tristan Gingold <gingold@adacore.com>
7033 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7034 (darwin_solib_create_inferior_hook): Emit a warning if version
7037 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7039 * python/py-value.c (get_field_flag): Cast flag_name argument to
7040 PyObject_GetAttrString to support Python 2.4.
7042 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7044 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7045 (Global Maintainers): Remove Jan Kratochvil.
7047 2014-03-14 Pedro Alves <palves@redhat.com>
7049 * inferior.h (terminal_ours_for_output): Rename to ...
7050 (child_terminal_ours_for_output): ... this.
7051 (terminal_save_ours): Rename to ...
7052 (child_terminal_save_ours): ... this.
7053 (terminal_ours): Rename to ...
7054 (child_terminal_ours): ... this.
7055 (terminal_inferior): Rename to ...
7056 (child_terminal_inferior): ... this.
7057 (terminal_init_inferior): Rename to ...
7058 (child_terminal_init_inferior): ... this.
7059 (terminal_init_inferior_with_pgrp): Rename to ...
7060 (child_terminal_init_inferior_with_pgrp): ... this.
7061 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7062 (child_terminal_init_with_pgrp): ... this.
7063 (terminal_save_ours): Rename to ...
7064 (child_terminal_save_ours): ... this.
7065 (terminal_init_inferior): Rename to ...
7066 (child_terminal_init): ... this. Adjust.
7067 (terminal_inferior): Rename to ...
7068 (child_terminal_inferior): ... this.
7069 (terminal_ours_for_output): Rename to ...
7070 (child_terminal_ours_for_output): ... this. Adjust.
7071 (terminal_ours): Rename to ...
7072 (child_terminal_ours): ... this.
7073 (terminal_ours_1): Rename to ...
7074 (child_terminal_ours_1): ... this. Adjust.
7075 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7076 * windows-nat.c (do_initial_windows_stuff): Adjust.
7077 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7078 (gnu_terminal_init): ... this. Adjust.
7079 (gnu_target): Adjust.
7080 * inf-child.c (inf_child_target): Adjust.
7082 2014-03-13 Doug Evans <xdje42@gmail.com>
7085 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7088 2014-03-13 Doug Evans <xdje42@gmail.com>
7090 * value.c (record_latest_value): Call release_value_or_incref
7091 instead of release_value.
7093 2014-03-13 Pedro Alves <palves@redhat.com>
7095 * procfs.c (procfs_target): Don't override to_shortname,
7096 to_longname or to_doc.
7098 2014-03-13 Pedro Alves <palves@redhat.com>
7100 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7101 Unix in user visible strings.
7103 2014-03-12 Stan Shebs <stan@codesourcery.com>
7105 * gdbtypes.h: Annotate comments for Doxygen, add a page
7106 block comment with some general info.
7108 2014-03-12 Pedro Alves <palves@redhat.com>
7110 * infcmd.c (prepare_execution_command): New function, factored out
7111 from several execution commands.
7112 (run_command_1, continue_command, step_1, jump_command)
7113 (signal_command, until_command, advance_command, finish_command)
7114 (attach_command): Use prepare_execution_command.
7116 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7118 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7121 (struct arm_linux_thread_points): Removed.
7122 (struct arm_linux_process_info): New.
7123 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7124 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7125 (arm_linux_find_breakpoints_by_tid): Removed.
7126 (struct arch_lwp_info): New.
7127 (arm_linux_find_process_pid): New functions.
7128 (arm_linux_add_process): New functions.
7129 (arm_linux_process_info_get): New functions.
7130 (arm_linux_forget_process): New function.
7131 (arm_linux_get_debug_reg_state): New function.
7132 (struct update_registers_data): New.
7133 (update_registers_callback): New function.
7134 (arm_linux_insert_hw_breakpoint1): Updated.
7135 (arm_linux_remove_hw_breakpoint1): Updated.
7136 (arm_linux_insert_hw_breakpoint): Updated.
7137 (arm_linux_remove_hw_breakpoint): Updated.
7138 (arm_linux_insert_watchpoint): Updated.
7139 (arm_linux_remove_watchpoint): Updated.
7140 (arm_linux_new_thread): Updated.
7141 (arm_linux_prepare_to_resume): New function.
7142 (arm_linux_new_fork): New function.
7143 (_initialize_arm_linux_nat): Updated.
7145 2014-03-12 Pedro Alves <palves@redhat.com>
7147 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7149 2014-03-12 Tom Tromey <tromey@redhat.com>
7151 * inf-child.c (return_zero): New function.
7152 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7153 * aix-thread.c (aix_thread_inferior_created): New function.
7154 (aix_thread_attach): Remove.
7155 (init_aix_thread_ops): Don't set to_attach.
7156 (_initialize_aix_thread): Register inferior_created observer.
7157 * corelow.c (init_core_ops): Don't set to_attach or
7159 * exec.c (init_exec_ops): Don't set to_attach or
7161 * infcmd.c (run_command_1): Use find_run_target. Make direct
7163 (attach_command): Use find_attach_target. Make direct target
7165 * record-btrace.c (init_record_btrace_ops): Don't set
7167 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7169 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7170 set to_create_inferior.
7171 * target.c (complete_target_initialization): Add assertion.
7172 (target_create_inferior): Remove.
7173 (find_default_attach, find_default_create_inferior): Remove.
7174 (find_attach_target, find_run_target): New functions.
7175 (find_default_is_async_p, find_default_can_async_p)
7176 (target_supports_non_stop, target_attach): Remove.
7177 (init_dummy_target): Don't set to_create_inferior or
7178 to_supports_non_stop.
7179 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7180 TARGET_DEFAULT_FUNC.
7181 <to_create_inferior>: Add comment.
7182 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7183 TARGET_DEFAULT_RETURN.
7184 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7185 (find_attach_target, find_run_target): Declare.
7186 (target_create_inferior): Remove.
7187 (target_has_execution_1): Update comment.
7188 (target_supports_non_stop): Remove.
7189 * target-delegates.c: Rebuild.
7191 2014-03-12 Pedro Alves <palves@redhat.com>
7193 * inf-child.h: Update comment to not mention Unix.
7195 2014-03-12 Pedro Alves <palves@redhat.com>
7197 * inf-child.c: Update top comment to not mention Unix. Add
7198 generic comment describing how this target is meant to be used.
7199 (inf_child_post_attach, inf_child_post_startup_inferior)
7200 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7203 2014-03-12 Pedro Alves <palves@redhat.com>
7205 * nto-procfs.c: Include inf-child.h.
7206 (procfs_ops): Delete global.
7207 (procfs_can_run): Delete method.
7208 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7209 target pointer instead of referencing procfs_ops.
7210 (procfs_prepare_to_store): Delete.
7211 (init_procfs_ops): Delete function.
7212 (procfs_target): New function, based on init_procfs_ops, but
7213 inherit inf_child_target.
7214 (_initialize_procfs): Use procfs_target.
7216 2014-03-12 Pedro Alves <palves@redhat.com>
7218 * windows-nat.c: Include inf-child.h.
7219 (windows_ops): Delete global.
7220 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7222 (init_windows_ops): Delete function.
7223 (windows_target): New function, based on init_windows_ops, but
7224 inherit inf_child_target.
7225 (_initialize_windows_nat): Use windows_target. Install x86
7226 specific target methods here.
7228 2014-03-10 Doug Evans <xdje42@gmail.com>
7230 * guile/guile.c (call_initialize_gdb_module): New function.
7231 (initialize_guile): Replace call to scm_init_guile with call to
7234 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7236 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7237 in call to TYPE_CODE macro.
7239 2014-03-10 Jerome Guitton <guitton@adacore.com>
7241 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7242 Resolve tagged types to full view.
7244 2014-03-10 Hui Zhu <hui@codesourcery.com>
7246 * target.h (target_insert_breakpoint): Remove "hardware" from its
7249 2014-03-07 Doug Evans <dje@google.com>
7251 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7253 2014-03-07 Doug Evans <dje@google.com>
7255 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7256 Remove unused local comp_dir_attr. Assert exactly one of
7257 stub_comp_unit_die, stub_comp_dir is non-NULL.
7259 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7261 * target.h (complete_target_initialization, add_target):
7264 2014-03-07 Pedro Alves <palves@redhat.com>
7266 * go32-nat.c: Include inf-child.h.
7267 (go32_ops): Delete global.
7268 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7270 (go32_create_inferior): Push the passed in target pointer instead
7271 of referencing go32_ops.
7272 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7273 (go32_target): New function, based on init_go32_ops, but inherit
7275 (_initialize_go32_nat): Use go32_target. Move parts of
7278 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7280 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7281 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7282 SYMBOL_VALUE_ADDRESS.
7283 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7285 2014-03-06 Yao Qi <yao@codesourcery.com>
7287 * breakpoint.c (get_tracepoint_by_number): Remove argument
7288 optional_p. All callers updated. Adjust comments. Update
7290 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7292 2014-03-06 Yao Qi <yao@codesourcery.com>
7294 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7295 early if get_number returns zero. Use 'p' instead of 'args'.
7297 2014-03-06 Yao Qi <yao@codesourcery.com>
7299 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7302 2014-03-06 Yao Qi <yao@codesourcery.com>
7304 PR breakpoints/16508
7305 * tracepoint.c (check_trace_running): New function.
7306 (trace_find_command): Move code to check_trace_running and
7307 call check_trace_running.
7308 (trace_find_pc_command): Likewise.
7309 (trace_find_tracepoint_command): Likewise.
7310 (trace_find_line_command): Likewise.
7311 (trace_find_range_command): Likewise.
7312 * tracepoint.h (check_trace_running): Likewise.
7313 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7315 2014-03-06 Yao Qi <yao@codesourcery.com>
7317 * target.h (struct target_ops) <to_traceframe_info>: Use
7318 TARGET_DEFAULT_NORETURN (tcomplain ()).
7319 * target-delegates.c: Regenerated.
7321 2014-03-05 Pedro Alves <palves@redhat.com>
7324 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7325 void. Update comment.
7326 (dcache_xfer_memory): Delete.
7327 (dcache_read_memory_partial): New, based on the read bits of
7329 (dcache_update): Add status parameter. Use ULONGEST for len, and
7330 adjust. Discard cache lines if the reason for the update was
7332 * dcache.h (dcache_xfer_memory): Delete declaration.
7333 (dcache_read_memory_partial): New declaration.
7334 (dcache_update): Update prototype.
7335 * target.c (raw_memory_xfer_partial): Update the dcache here.
7336 (memory_xfer_partial_1): Don't handle dcache writes here.
7338 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7340 * remote-sim.c (gdbsim_load): Add const to prog.
7342 2014-03-03 Tom Tromey <tromey@redhat.com>
7344 * elfread.c (probe_key): Change to bfd_data.
7345 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7346 now per-BFD, not per-objfile.
7347 * stap-probe.c (stap_probe_destroy): Update comment.
7348 (handle_stap_probe): Allocate on the per-BFD obstack.
7350 2014-03-03 Tom Tromey <tromey@redhat.com>
7352 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7353 * breakpoint.c (create_longjmp_master_breakpoint): Use
7355 (add_location_to_breakpoint, bkpt_probe_insert_location)
7356 (bkpt_probe_remove_location): Update.
7357 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7358 * elfread.c (elf_symfile_relocate_probe): Remove.
7359 (elf_probe_fns): Update.
7360 (insert_exception_resume_breakpoint): Change type of "probe"
7361 parameter to bound_probe.
7362 (check_exception_resume): Update.
7363 * objfiles.c (objfile_relocate1): Don't relocate probes.
7364 * probe.c (bound_probe_s): New typedef.
7365 (parse_probes): Use get_probe_address. Set sal's objfile.
7366 (find_probe_by_pc): Return a bound_probe.
7367 (collect_probes): Return a VEC(bound_probe_s).
7368 (compare_probes): Update.
7369 (gen_ui_out_table_header_info): Change type of "probes"
7371 (info_probes_for_ops): Update.
7372 (get_probe_address): New function.
7373 (probe_safe_evaluate_at_pc): Update.
7374 * probe.h (struct probe_ops) <get_probe_address>: New field.
7375 <set_semaphore, clear_semaphore>: Add objfile parameter.
7376 (struct probe) <objfile>: Remove field.
7378 <address>: Update comment.
7379 (struct bound_probe): New.
7380 (find_probe_by_pc): Return a bound_probe.
7381 (get_probe_address): Declare.
7382 * solib-svr4.c (struct probe_and_action) <address>: New field.
7383 (hash_probe_and_action, equal_probe_and_action): Update.
7384 (register_solib_event_probe): Add address parameter.
7385 (solib_event_probe_at): Update.
7386 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7388 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7389 (stap_get_probe_address): New function.
7390 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7391 (compile_probe_arg): Update.
7392 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7394 (handle_stap_probe): Don't relocate the probe.
7395 (stap_relocate): Remove.
7396 (stap_gen_info_probes_table_values): Update.
7397 (stap_probe_ops): Remove stap_relocate.
7398 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7399 (debug_sym_probe_fns): Update.
7400 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7401 * symtab.c (init_sal): Use memset.
7402 * symtab.h (struct symtab_and_line) <objfile>: New field.
7403 * tracepoint.c (start_tracing, stop_tracing): Update.
7405 2014-03-03 Tom Tromey <tromey@redhat.com>
7407 * probe.h (parse_probes, find_probe_by_pc)
7408 (find_probes_in_objfile): Fix comments.
7410 2014-03-02 Doug Evans <xdje42@gmail.com>
7412 * infrun.c (handle_signal_stop): Replace test for
7413 TARGET_WAITKIND_STOPPED with an assert.
7415 2014-03-02 Doug Evans <xdje42@gmail.com>
7417 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7419 2014-03-02 Doug Evans <xdje42@gmail.com>
7421 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7423 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7425 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7427 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7429 * i386obsd-nat.c: Include "obsd-nat.h".
7430 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7432 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7434 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7436 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7438 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7440 * mips64obsd-nat.c: Include "obsd-nath".
7441 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7443 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7445 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7447 * amd64obsd-nat.c: Include "obsd-nat,h.
7448 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7450 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7452 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7454 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7455 (find_overload_match): Update call to find_oload_champ.
7456 (find_oload_champ_namespace_loop): Likewise
7458 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7460 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7462 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7463 * config/sparc/obsd64.mh: New file.
7464 * sparc64obsd-nat.c: New file.
7466 * obsd-nat.h: New file.
7467 * obsd-nat.c: New file.
7468 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7469 (ALLDEPFILES): Add obsd-nat.c.
7471 2014-02-28 Tom Tromey <tromey@redhat.com>
7473 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7474 * cli-out.h (cli_ui_out_impl): Now const.
7475 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7476 * ui-out.c (struct ui_out) <impl>: Now const.
7477 (default_ui_out_impl): Now const.
7478 (ui_out_new): Make 'impl' parameter const.
7479 * ui-out.h (ui_out_new): Update.
7481 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7483 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7485 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7487 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7489 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7491 Additional PR 8882 fix.
7492 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7494 2014-02-27 Pedro Alves <palves@redhat.com>
7496 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7499 2014-02-27 Pedro Alves <palves@redhat.com>
7502 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7503 * nat/linux-waitpid.c: Include string.h.
7504 (status_to_str): Moved here and made extern.
7505 * nat/linux-waitpid.h (status_to_str): New declaration.
7507 2014-02-27 Hui Zhu <hui@codesourcery.com>
7510 * infrun.c (ptid_match): Move ...
7511 * common/ptid.c (ptid_match): ... here.
7512 * inferior.h (ptid_match): Move ...
7513 * common/ptid.h (ptid_match): ... here.
7515 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7517 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7518 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7521 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7523 * obsd-tdep.c (obsd_auxv_parse): New function.
7524 (obsd_init_abi): Set auxv_parse.
7526 * gdbarch.sh (auxv_parse): New.
7527 * gdbarch.h: Regenerated.
7528 * gdbarch.c: Regenerated.
7529 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7531 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7533 * guile/scm-value.c (gdbscm_history_append_x): New function.
7534 (value_functions): Add it.
7536 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7538 * dwarf2read.c (attr_value_as_address): New function.
7539 (dwarf2_find_base_address, read_call_site_scope): Use
7540 attr_value_as_address in place of DW_ADDR.
7541 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7542 the low and high addresses. Slight rework of the handling
7543 of the high pc being a constant form, and limit it to
7544 DWARF verson 4 or higher.
7545 (dwarf2_record_block_ranges): Likewise.
7546 (read_partial_die): Likewise.
7547 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7549 2014-02-26 Tom Tromey <tromey@redhat.com>
7551 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7553 2014-02-26 Tom Tromey <tromey@redhat.com>
7555 * elfread.c (elf_read_minimal_symbols): Return early if
7556 minimal symbols have already been read. Add "ei" parameter.
7557 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7558 * minsyms.c (prim_record_minimal_symbol_full): Update.
7559 * objfiles.h (struct objstats) <n_minsyms>: Move...
7560 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7561 * symmisc.c (print_objfile_statistics): Update.
7563 2014-02-26 Tom Tromey <tromey@redhat.com>
7565 * elfread.c (elf_read_minimal_symbols): New function, from
7567 (elf_symfile_read): Call it.
7569 2014-02-26 Tom Tromey <tromey@redhat.com>
7571 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7572 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7573 (lookup_minimal_symbol_solib_trampoline)
7574 (lookup_minimal_symbol_by_pc_section_1)
7575 (lookup_minimal_symbol_and_objfile): Update.
7576 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7577 Don't allocate a minimal symbol if minsyms have already been read.
7578 (build_minimal_symbol_hash_tables): Update.
7579 (install_minimal_symbols): Do nothing if minsyms already read.
7580 Use the per-BFD obstack.
7581 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7582 * objfiles.c (allocate_objfile): Call
7583 terminate_minimal_symbol_table later.
7584 (have_minimal_symbols): Update.
7585 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7586 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7587 Move from struct objfile.
7588 <minsyms_read>: New field.
7589 (struct objfile) <msymbols, minimal_symbol_count,
7590 msymbol_hash, msymbol_demangled_hash>: Move.
7591 (ALL_OBJFILE_MSYMBOLS): Update.
7592 * symfile.c (read_symbols): Set minsyms_read.
7593 (reread_symbols): Update.
7594 * symmisc.c (dump_objfile, dump_msymbols): Update.
7596 2014-02-26 Tom Tromey <tromey@redhat.com>
7598 * minsyms.c (msymbols_sort): Remove.
7599 * minsyms.h (msymbols_sort): Remove.
7600 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7601 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7602 * elfread.c (elf_symtab_read): Don't add section offsets.
7603 * xcoffread.c (record_minimal_symbol): Don't add section offset
7604 to minimal symbol address.
7605 * somread.c (text_offset, data_offset): Remove.
7606 (som_symtab_read): Don't add section offsets to minimal symbol
7608 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7609 Don't add section offsets to minimal symbols.
7610 * coffread.c (coff_symtab_read): Don't add section offsets
7611 to minimal symbol addresses.
7612 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7613 to minimal symbol addresses.
7614 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7615 section offset to minimal symbol addresses.
7616 * mdebugread.c (parse_partial_symbols): Don't add section
7617 offset to minimal symbol addresses.
7618 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7619 offset to minimal symbol addresses.
7621 2014-02-26 Tom Tromey <tromey@redhat.com>
7623 * ada-lang.c (ada_main_name): Update.
7624 (ada_add_standard_exceptions): Update.
7625 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7626 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7627 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7628 * auxv.c (ld_so_xfer_auxv): Update.
7629 * avr-tdep.c (avr_scan_prologue): Update.
7630 * ax-gdb.c (gen_var_ref): Update.
7631 * blockframe.c (get_pc_function_start)
7632 (find_pc_partial_function_gnu_ifunc): Update.
7633 * breakpoint.c (create_overlay_event_breakpoint)
7634 (create_longjmp_master_breakpoint)
7635 (create_std_terminate_master_breakpoint)
7636 (create_exception_master_breakpoint): Update.
7637 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7638 * c-valprint.c (c_val_print): Update.
7639 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7640 * common/agent.c (agent_look_up_symbols): Update.
7641 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7642 * dwarf2loc.c (call_site_to_target_addr): Update.
7643 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7644 * elfread.c (elf_gnu_ifunc_record_cache)
7645 (elf_gnu_ifunc_resolve_by_got): Update.
7646 * findvar.c (default_read_var_value): Update.
7647 * frame.c (inside_main_func): Update.
7648 * frv-tdep.c (frv_frame_this_id): Update.
7649 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7650 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7652 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7653 (hppa_hpux_find_dummy_bpaddr): Update.
7654 * hppa-tdep.c (hppa_symbol_address): Update.
7655 * infcmd.c (until_next_command): Update.
7656 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7658 * linespec.c (minsym_found, add_minsym): Update.
7659 * linux-nat.c (get_signo): Update.
7660 * linux-thread-db.c (inferior_has_bug): Update.
7661 * m32c-tdep.c (m32c_return_value)
7662 (m32c_m16c_address_to_pointer): Update.
7663 * m32r-tdep.c (m32r_frame_this_id): Update.
7664 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7665 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7666 * maint.c (maintenance_translate_address): Update.
7667 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7668 (frob_address): New function.
7669 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7670 frob_address. Rename parameter to "pc_in".
7671 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7673 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7675 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7676 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7677 * objc-lang.c (find_objc_msgsend): Update.
7678 * objfiles.c (objfile_relocate1): Update.
7679 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7680 * p-valprint.c (pascal_val_print): Update.
7681 * parse.c (write_exp_msymbol): Update.
7682 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7683 (ppc_elfv2_skip_entrypoint): Update.
7684 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7685 * printcmd.c (build_address_symbolic, msym_info)
7686 (address_info): Update.
7687 * proc-service.c (ps_pglobal_lookup): Update.
7688 * psymtab.c (find_pc_sect_psymtab_closer)
7689 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7690 Change msymbol parameter to bound_minimal_symbol.
7691 * ravenscar-thread.c (get_running_thread_id): Update.
7692 * remote.c (remote_check_symbols): Update.
7693 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7695 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7696 * solib-dsbt.c (lm_base): Update.
7697 * solib-frv.c (lm_base, main_got): Update.
7698 * solib-irix.c (locate_base): Update.
7699 * solib-som.c (som_solib_create_inferior_hook)
7700 (link_map_start): Update.
7701 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7702 * solib-svr4.c (elf_locate_base, enable_break): Update.
7703 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7704 (flush_ea_cache): Update.
7705 * stabsread.c (define_symbol, scan_file_globals): Update.
7706 * stack.c (find_frame_funname): Update.
7707 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7708 (debug_qf_find_pc_sect_symtab): Update.
7709 * symfile.c (simple_read_overlay_table)
7710 (simple_overlay_update): Update.
7711 * symfile.h (struct quick_symbol_functions)
7712 <find_pc_sect_symtab>: Change type of msymbol to
7713 bound_minimal_symbol.
7714 * symmisc.c (dump_msymbols): Update.
7715 * symtab.c (find_pc_sect_symtab_via_partial)
7716 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7717 (search_symbols, print_msymbol_info): Update.
7718 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7719 (MSYMBOL_VALUE_ADDRESS): Redefine.
7720 (BMSYMBOL_VALUE_ADDRESS): New macro.
7721 * tracepoint.c (scope_info): Update.
7722 * tui/tui-disasm.c (tui_find_disassembly_address)
7723 (tui_get_begin_asm_address): Update.
7724 * valops.c (find_function_in_inferior): Update.
7725 * value.c (value_static_field, value_fn_field): Update.
7727 2014-02-26 Tom Tromey <tromey@redhat.com>
7729 * ada-lang.c (ada_update_initial_language): Update.
7730 (ada_main_name, ada_has_this_exception_support): Update.
7731 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7732 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7733 * arm-tdep.c (arm_skip_stub): Update.
7734 * auxv.c (ld_so_xfer_auxv): Update.
7735 * avr-tdep.c (avr_scan_prologue): Update.
7736 * ax-gdb.c (gen_var_ref): Update.
7737 * breakpoint.c (struct breakpoint_objfile_data)
7738 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7739 type to bound_minimal_symbol.
7740 (create_overlay_event_breakpoint)
7741 (create_longjmp_master_breakpoint)
7742 (create_std_terminate_master_breakpoint)
7743 (create_exception_master_breakpoint): Update.
7744 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7745 * c-exp.y (classify_name): Update.
7746 * coffread.c (coff_symfile_read): Update.
7747 * common/agent.c (agent_look_up_symbols): Update.
7748 * d-lang.c (d_main_name): Update.
7749 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7750 * dec-thread.c (enable_dec_thread): Update.
7751 * dwarf2loc.c (call_site_to_target_addr): Update.
7752 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7753 * eval.c (evaluate_subexp_standard): Update.
7754 * findvar.c (struct minsym_lookup_data) <result>: Change type
7755 to bound_minimal_symbol.
7757 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7758 * frame.c (inside_main_func): Update.
7759 * frv-tdep.c (frv_frame_this_id): Update.
7760 * gcore.c (call_target_sbrk): Update.
7761 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7762 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7764 * go-lang.c (go_main_name): Update.
7765 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7766 (hppa_hpux_find_import_stub_for_addr): Update.
7767 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7768 Update. Change return type.
7769 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7771 * jit.c (jit_breakpoint_re_set_internal): Update.
7772 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7774 * linux-nat.c (get_signo): Update.
7775 * linux-thread-db.c (inferior_has_bug): Update
7776 * m32c-tdep.c (m32c_return_value)
7777 (m32c_m16c_address_to_pointer): Update.
7778 * m32r-tdep.c (m32r_frame_this_id): Update.
7779 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7780 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7781 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7782 lookup_minimal_symbol. Change return type.
7783 (lookup_minimal_symbol): Remove.
7784 (lookup_bound_minimal_symbol): Update.
7785 (lookup_minimal_symbol_text): Change return type.
7786 (lookup_minimal_symbol_solib_trampoline): Change return type.
7787 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7788 (lookup_minimal_symbol_solib_trampoline): Change return type.
7789 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7790 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7791 (value_nsstring, find_imps): Update.
7792 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7793 * p-lang.c (pascal_main_name): Update.
7794 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7795 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7796 * proc-service.c (ps_pglobal_lookup): Update.
7797 * ravenscar-thread.c (get_running_thread_msymbol): Change
7799 (has_ravenscar_runtime, get_running_thread_id): Update.
7800 * remote.c (remote_check_symbols): Update.
7801 * sol-thread.c (ps_pglobal_lookup): Update.
7802 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7803 * solib-dsbt.c (lm_base): Update.
7804 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7806 * solib-irix.c (locate_base): Update.
7807 * solib-som.c (som_solib_create_inferior_hook)
7808 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7810 * solib-spu.c (spu_enable_break): Update.
7811 * solib-svr4.c (elf_locate_base, enable_break): Update.
7812 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7813 (flush_ea_cache): Update.
7814 * stabsread.c (define_symbol): Update.
7815 * symfile.c (simple_read_overlay_table): Update.
7816 * symtab.c (find_pc_sect_line): Update.
7817 * tracepoint.c (scope_info): Update.
7818 * tui-disasm.c (tui_get_begin_asm_address): Update.
7819 * value.c (value_static_field): Update.
7821 2014-02-26 Tom Tromey <tromey@redhat.com>
7823 * minsyms.c (prim_record_minimal_symbol_full): Use
7824 SET_MSYMBOL_VALUE_ADDRESS.
7825 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7826 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7827 SET_MSYMBOL_VALUE_ADDRESS.
7828 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7829 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7831 2014-02-26 Tom Tromey <tromey@redhat.com>
7833 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7834 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7835 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7836 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7837 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7838 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7839 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7840 * ada-lang.c (ada_main_name): Update.
7841 (ada_lookup_simple_minsym): Update.
7842 (ada_make_symbol_completion_list): Update.
7843 (ada_add_standard_exceptions): Update.
7844 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7845 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7846 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7847 * arm-tdep.c (skip_prologue_function): Update.
7848 (arm_skip_stack_protector, arm_skip_stub): Update.
7849 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7850 (arm_wince_skip_main_prologue): Update.
7851 * auxv.c (ld_so_xfer_auxv): Update.
7852 * avr-tdep.c (avr_scan_prologue): Update.
7853 * ax-gdb.c (gen_var_ref): Update.
7854 * block.c (call_site_for_pc): Update.
7855 * blockframe.c (get_pc_function_start): Update.
7856 (find_pc_partial_function_gnu_ifunc): Update.
7857 * breakpoint.c (create_overlay_event_breakpoint): Update.
7858 (create_longjmp_master_breakpoint): Update.
7859 (create_std_terminate_master_breakpoint): Update.
7860 (create_exception_master_breakpoint): Update.
7861 (resolve_sal_pc): Update.
7862 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7863 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7865 * c-valprint.c (c_val_print): Update.
7866 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7867 * coffread.c (coff_symfile_read): Update.
7868 * common/agent.c (agent_look_up_symbols): Update.
7869 * dbxread.c (find_stab_function_addr): Update.
7870 (end_psymtab): Update.
7871 * dwarf2loc.c (call_site_to_target_addr): Update.
7872 (func_verify_no_selftailcall): Update.
7873 (tailcall_dump): Update.
7874 (call_site_find_chain_1): Update.
7875 (dwarf_expr_reg_to_entry_parameter): Update.
7876 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7877 (elf_gnu_ifunc_resolve_by_got): Update.
7878 * f-valprint.c (info_common_command): Update.
7879 * findvar.c (read_var_value): Update.
7880 * frame.c (get_prev_frame_1): Update.
7881 (inside_main_func): Update.
7882 * frv-tdep.c (frv_skip_main_prologue): Update.
7883 (frv_frame_this_id): Update.
7884 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7885 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7886 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7887 (gnuv3_skip_trampoline): Update.
7888 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7889 (hppa64_hpux_in_solib_call_trampoline): Update.
7890 (hppa_hpux_skip_trampoline_code): Update.
7891 (hppa64_hpux_search_dummy_call_sequence): Update.
7892 (hppa_hpux_find_import_stub_for_addr): Update.
7893 (hppa_hpux_find_dummy_bpaddr): Update.
7894 * hppa-tdep.c (hppa_symbol_address)
7895 (hppa_lookup_stub_minimal_symbol): Update.
7896 * i386-tdep.c (i386_skip_main_prologue): Update.
7897 (i386_pe_skip_trampoline_code): Update.
7898 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7899 * infcall.c (get_function_name): Update.
7900 * infcmd.c (until_next_command): Update.
7901 * jit.c (jit_breakpoint_re_set_internal): Update.
7902 (jit_inferior_init): Update.
7903 * linespec.c (minsym_found): Update.
7904 (add_minsym): Update.
7905 * linux-fork.c (info_checkpoints_command): Update.
7906 * linux-nat.c (get_signo): Update.
7907 * linux-thread-db.c (inferior_has_bug): Update.
7908 * m32c-tdep.c (m32c_return_value): Update.
7909 (m32c_m16c_address_to_pointer): Update.
7910 (m32c_m16c_pointer_to_address): Update.
7911 * m32r-tdep.c (m32r_frame_this_id): Update.
7912 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7913 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7914 * maint.c (maintenance_translate_address): Update.
7915 * minsyms.c (add_minsym_to_hash_table): Update.
7916 (add_minsym_to_demangled_hash_table): Update.
7917 (msymbol_objfile): Update.
7918 (lookup_minimal_symbol): Update.
7919 (iterate_over_minimal_symbols): Update.
7920 (lookup_minimal_symbol_text): Update.
7921 (lookup_minimal_symbol_by_pc_name): Update.
7922 (lookup_minimal_symbol_solib_trampoline): Update.
7923 (lookup_minimal_symbol_by_pc_section_1): Update.
7924 (lookup_minimal_symbol_and_objfile): Update.
7925 (prim_record_minimal_symbol_full): Update.
7926 (compare_minimal_symbols): Update.
7927 (compact_minimal_symbols): Update.
7928 (build_minimal_symbol_hash_tables): Update.
7929 (install_minimal_symbols): Update.
7930 (terminate_minimal_symbol_table): Update.
7931 (find_solib_trampoline_target): Update.
7932 (minimal_symbol_upper_bound): Update.
7933 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7934 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7935 (mips_skip_pic_trampoline_code): Update.
7936 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7937 * objc-lang.c (selectors_info): Update.
7938 (classes_info): Update.
7939 (find_methods): Update.
7940 (find_imps): Update.
7941 (find_objc_msgsend): Update.
7942 * objfiles.c (objfile_relocate1): Update.
7943 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7944 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7945 * p-valprint.c (pascal_val_print): Update.
7946 * parse.c (write_exp_msymbol): Update.
7947 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7948 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7949 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7950 * printcmd.c (build_address_symbolic): Update.
7952 (address_info): Update.
7953 * proc-service.c (ps_pglobal_lookup): Update.
7954 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7955 (find_pc_sect_psymtab): Update.
7956 * python/py-framefilter.c (py_print_frame): Update.
7957 * ravenscar-thread.c (get_running_thread_id): Update.
7958 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7960 * remote.c (remote_check_symbols): Update.
7961 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7962 (rs6000_skip_trampoline_code): Update.
7963 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7964 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7965 * solib-dsbt.c (lm_base): Update.
7966 * solib-frv.c (lm_base): Update.
7968 * solib-irix.c (locate_base): Update.
7969 * solib-som.c (som_solib_create_inferior_hook): Update.
7970 (som_solib_desire_dynamic_linker_symbols): Update.
7971 (link_map_start): Update.
7972 * solib-spu.c (spu_enable_break): Update.
7973 (ocl_enable_break): Update.
7974 * solib-svr4.c (elf_locate_base): Update.
7975 (enable_break): Update.
7976 * spu-tdep.c (spu_get_overlay_table): Update.
7977 (spu_catch_start): Update.
7978 (flush_ea_cache): Update.
7979 * stabsread.c (define_symbol): Update.
7980 (scan_file_globals): Update.
7981 * stack.c (find_frame_funname): Update.
7982 (frame_info): Update.
7983 * symfile.c (simple_read_overlay_table): Update.
7984 (simple_overlay_update): Update.
7985 * symmisc.c (dump_msymbols): Update.
7986 * symtab.c (fixup_section): Update.
7987 (find_pc_sect_line): Update.
7988 (skip_prologue_sal): Update.
7989 (search_symbols): Update.
7990 (print_msymbol_info): Update.
7991 (rbreak_command): Update.
7992 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7993 (completion_list_objc_symbol): Update.
7994 (default_make_symbol_completion_list_break_on): Update.
7995 * tracepoint.c (scope_info): Update.
7996 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7997 (tui_get_begin_asm_address): Update.
7998 * valops.c (find_function_in_inferior): Update.
7999 * value.c (value_static_field): Update.
8000 (value_fn_field): Update.
8002 2014-02-26 Tom Tromey <tromey@redhat.com>
8004 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8005 bound minimal symbols. Move code that knows about minsym
8007 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8009 * minsyms.h (minimal_symbol_upper_bound): Declare.
8010 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8011 minimal_symbol_upper_bound.
8013 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8015 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8016 Use the type's name if its basic type does not have a tag.
8018 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8020 * dwarf2read.c (read_subrange_type): Add comment.
8022 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8024 * dwarf2read.c (update_enumeration_type_from_children): New
8025 function, mostly extracted from process_structure_scope.
8026 (read_enumeration_type): Call update_enumeration_type_from_children.
8027 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8028 and flag_flag_enum fields.
8030 2014-02-26 Pedro Alves <palves@redhat.com>
8032 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8033 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8034 to_xfer_partial method.
8036 2014-02-26 Pedro Alves <palves@redhat.com>
8038 * target.c (complete_target_initialization): Don't install
8039 default_xfer_partial as to_xfer_partial hook.
8041 (update_current_target): Don't INHERIT nor de_fault
8042 deprecated_xfer_memory. Delete de_fault macro.
8043 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8044 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8045 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8048 2014-02-26 Pedro Alves <palves@redhat.com>
8050 * go32-nat.c (my_write_child): New function.
8051 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8052 (go32_xfer_partial): New function.
8053 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8054 Instead install a to_xfer_partial hook.
8056 2014-02-26 Pedro Alves <palves@redhat.com>
8058 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8059 to_xfer_partial helper. Rewrite.
8060 (procfs_xfer_partial): New function.
8061 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8062 Install a to_xfer_partial hook.
8064 2014-02-26 Pedro Alves <palves@redhat.com>
8066 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8067 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8068 (m32r_xfer_partial): New function.
8069 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8070 Install a to_xfer_partial hook.
8072 2014-02-26 Pedro Alves <palves@redhat.com>
8074 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8076 (mips_xfer_partial): New function.
8077 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8078 hook. Install a to_xfer_partial hook.
8080 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8082 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8083 * gdbtypes.c (create_array_type_with_stride): New function,
8084 renaming create_array_type, but with an added parameter
8085 called "bit_stride".
8086 (create_array_type): Re-implement using
8087 create_array_type_with_stride.
8088 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8089 and DW_AT_bit_stride attributes.
8091 2014-02-26 Pedro Alves <palves@redhat.com>
8093 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8094 task-specific breakpoints.
8096 2014-02-25 Pedro Alves <palves@redhat.com>
8098 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8099 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8101 2014-02-25 Stan Shebs <stan@codesourcery.com>
8103 * defs.h: Annotate comments for Doxygen.
8105 2014-02-25 Tom Tromey <tromey@redhat.com>
8107 * target.h (target_ignore): Don't declare.
8108 * target.c (target_ignore): Remove.
8110 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8113 * auto-load.c (auto_load_objfile_script_1): Change filename to
8116 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8118 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8119 documentation. Adjust prototype to match the target_ops
8120 to_xfer_partial method. Adjust implementation accordingly.
8122 2014-02-25 Hui Zhu <hui@codesourcery.com>
8124 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8127 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8129 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8130 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8131 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8132 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8133 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8134 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8135 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8136 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8138 (rl78_register_type): Use a data pointer type for SP and
8139 new pseudo registers mentioned above. Use a 16 bit integer
8140 type for all other register pairs.
8141 (rl78_register_name, rl78_g10_register_name): Update for
8142 new pseudo registers.
8143 (rl78_pseudo_register_read): Likewise.
8144 (rl78_pseudo_register_write): Likewise.
8145 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8146 to the newly added pseudo registers.
8148 2014-02-24 Doug Evans <dje@google.com>
8150 * value.c (record_latest_value): Fix comment.
8151 * printcmd.c (print_command_1): Remove code to handle -1 return from
8152 record_latest_value.
8154 2014-02-24 Pedro Alves <palves@redhat.com>
8156 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8157 deprecated_xfer_memory hook.
8158 (procfs_xfer_partial): Call procfs_xfer_memory instead
8159 of the deprecated_xfer_memory target hook.
8160 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8163 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8165 * windows-nat.c (windows_xfer_shared_libraries): Return
8166 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8167 requested object is TARGET_OBJECT_LIBRARIES.
8169 2014-02-24 Yao Qi <yao@codesourcery.com>
8171 * target.h (enum target_xfer_status)
8172 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8173 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8175 * corefile.c (memory_error_message): User updated.
8176 * exec.c (section_table_read_available_memory): Likewise.
8177 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8178 * target.c (target_xfer_status_to_string): Likewise.
8179 (raw_memory_xfer_partial): Likewise.
8180 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8181 * valops.c (read_value_memory): Likewise.
8182 * exec.h: Update comments.
8184 2014-02-24 Yao Qi <yao@codesourcery.com>
8186 * target.c (target_xfer_status_to_string): Rename argument err
8188 * target.h (target_xfer_status_to_string): Update declaration.
8189 Replace target_xfer_error_to_string with
8190 target_xfer_status_to_string in comment.
8192 2014-02-24 Yao Qi <yao@codesourcery.com>
8194 * mips-linux-nat.c (super_close): Update its type.
8195 (mips_linux_close): Pass 'self' to super_close.
8197 2014-02-24 Yao Qi <yao@codesourcery.com>
8199 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8200 * corefile.c (read_memory): Adjusted.
8201 * target.c (target_write_with_progress): Adjusted.
8203 2014-02-23 Yao Qi <yao@codesourcery.com>
8207 2013-10-25 Yao Qi <yao@codesourcery.com>
8209 * remote.c (remote_traceframe_info): Return early if
8210 traceframe is not selected.
8212 2013-07-19 Yao Qi <yao@codesourcery.com>
8214 * target.c (update_current_target): Change the default action
8215 of 'to_traceframe_info' from tcomplain to return_zero.
8216 * target.h (struct target_ops) <to_traceframe_info>: Add more
8219 2014-02-23 Yao Qi <yao@codesourcery.com>
8221 * valops.c (read_value_memory): Rewrite it. Call
8222 target_xfer_partial in a loop.
8223 * exec.h (section_table_available_memory): Remove declaration.
8224 Move comments to ...
8225 * exec.c (section_table_available_memory): ... here. Make it
8228 2014-02-23 Yao Qi <yao@codesourcery.com>
8230 * exec.c (section_table_read_available_memory): New function.
8231 * exec.h (section_table_read_available_memory): Declare.
8232 * ctf.c (ctf_xfer_partial): Call
8233 section_table_read_available_memory.
8234 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8236 2014-02-23 Yao Qi <yao@codesourcery.com>
8238 * ctf.c (ctf_xfer_partial): Move code to ...
8239 * exec.c (exec_read_partial_read_only): ... it. New function.
8240 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8241 * tracefile.c: Include "exec.h".
8242 * exec.h (exec_read_partial_read_only): Declare.
8244 2014-02-23 Yao Qi <yao@codesourcery.com>
8246 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8247 (tfile_has_memory): Remove.
8248 (init_tfile_ops): Don't set fields to_has_all_memory and
8249 to_has_memory of tfile_ops.
8250 * tracefile.c (tracefile_has_all_memory): New function.
8251 (tracefile_has_memory): New function.
8252 (init_tracefile_ops): Initialize fields to_has_all_memory and
8253 to_has_memory of 'ops'.
8255 2014-02-23 Yao Qi <yao@codesourcery.com>
8257 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8258 (ctf_thread_alive, ctf_get_trace_status): Remove.
8259 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8261 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8262 (tfile_has_stack, tfile_has_registers): Remove.
8263 (tfile_thread_alive): Remove.
8264 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8266 * tracefile.c (tracefile_has_stack): New function.
8267 (tracefile_has_registers): New function.
8268 (tracefile_thread_alive): New function.
8269 (tracefile_get_trace_status): New function.
8270 (init_tracefile_ops): New function.
8271 * tracefile.h (init_tracefile_ops): Declare.
8273 2014-02-23 Yao Qi <yao@codesourcery.com>
8275 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8276 (O_LARGEFILE): Likewise.
8277 (tfile_ops): Likewise.
8278 (TRACE_HEADER_SIZE): Likewise.
8279 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8280 (cur_data_size): Likewise.
8281 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8282 (tfile_close, tfile_files_info): Likewise.
8283 (tfile_get_trace_status): Likewise.
8284 (tfile_get_tracepoint_status): Likewise.
8285 (tfile_get_traceframe_address): Likewise.
8286 (tfile_trace_find, match_blocktype): Likewise.
8287 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8288 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8289 (tfile_get_trace_state_variable_value): Likewise.
8290 (tfile_has_all_memory, tfile_has_memory): Likewise.
8291 (tfile_has_stack, tfile_has_registers): Likewise.
8292 (tfile_thread_alive, build_traceframe_info): Likewise.
8293 (tfile_traceframe_info, init_tfile_ops): Likewise.
8294 (_initialize_tracepoint): Don't call init_tfile_ops
8295 and add_target_with_completer.
8296 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8297 exec.h, completer.h and filenames.h.
8298 (_initialize_tracefile_tfile): New function.
8300 2014-02-23 Yao Qi <yao@codesourcery.com>
8302 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8304 (HFILES_NO_SRCDIR): Add tracefile.h.
8305 * ctf.c: Include "tracefile.h".
8306 * tracefile.h: New file.
8307 * tracefile.c: New file
8308 * tracefile-tfile.c: New file.
8309 * tracepoint.c: Include "tracefile.h".
8310 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8311 (stop_reason_names): Add const.
8312 (trace_file_writer_xfree): Move it to tracefile.c.
8313 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8314 (trace_save_ctf): Likewise.
8315 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8316 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8317 (tfile_write_header, tfile_write_regblock_type): Likewise.
8318 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8319 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8320 (tfile_write_raw_data, tfile_end): Likewise.
8321 (tfile_trace_file_writer_new): Likewise.
8322 (free_uploaded_tp): Make it extern.
8323 (free_uploaded_tsv): Make it extern.
8324 (_initialize_tracepoint): Move code to register command 'tsave'
8326 * tracepoint.h (stop_reason_names): Declare.
8327 (struct trace_frame_write_ops): Move it to tracefile.h.
8328 (struct trace_file_write_ops): Likewise.
8329 (struct trace_file_writer): Likewise.
8330 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8332 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8335 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8337 (get_cores_used_by_process): New parameter num_cores, use it.
8338 (linux_xfer_osdata_processes): Pass num_cores to it.
8339 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8342 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8344 * target.c (memory_xfer_partial): Fix length arg in call to
8345 breakpoint_xfer_memory.
8347 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8350 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8351 number comes after the + or - signs. Adjust length of register
8352 name to be extracted.
8354 2014-02-20 Tom Tromey <tromey@redhat.com>
8356 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8357 (ada_varobj_ops): Mark "extern".
8359 2014-02-20 Tom Tromey <tromey@redhat.com>
8361 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8363 2014-02-20 Doug Evans <xdje42@gmail.com>
8365 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8366 All callers updated.
8367 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8368 All callers updated.
8369 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8370 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8372 2014-02-20 lin zuojian <manjian2006@gmail.com>
8373 Joel Brobecker <brobecker@adacore.com>
8374 Doug Evans <xdje42@gmail.com>
8377 * dwarf2read.c (struct die_info): New member in_process.
8378 (reset_die_in_process): New function.
8379 (process_die): Set it at the start, reset when returning.
8380 (inherit_abstract_dies): Only call process_die if origin_child_die
8381 not already being processed.
8383 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8385 * windows-nat.c (handle_unload_dll): Add function documentation.
8386 (do_initial_windows_stuff): Add comment explaining why we wait
8387 until after inferior initialization has finished before
8388 processing all DLLs.
8390 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8392 * windows-nat.c (get_module_name): Delete.
8393 (windows_get_exec_module_filename): New function, mostly
8394 inspired from get_module_name.
8395 (windows_pid_to_exec_file): Replace call to get_module_name
8396 by call to windows_get_exec_module_filename.
8398 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8400 * windows-nat.c (handle_load_dll): Rewrite this function's
8401 introductory comment. Remove code using get_module_name
8402 to get the DLL's name.
8404 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8406 * windows-nat.c (get_windows_debug_event): Ignore
8407 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8408 if windows_initialization_done == 0.
8409 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8410 Adjust implementation to always load all DLLs.
8411 (do_initial_windows_stuff): Replace call to
8412 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8414 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8416 * windows-nat.c (_initialize_windows_nat): Deprecate the
8417 "dll-symbols" command. Turn the "add-shared-symbol-files"
8418 and "assf" aliases into commands, and deprecate them as well.
8419 * NEWS: Add entry explaining that "dll-symbols" and its two
8420 aliases are now deprecated.
8422 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8424 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8425 new-line in debug string. Remove trailing spaces.
8427 2014-02-19 Stan Shebs <stan@codesourcery.com>
8429 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8431 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8433 * NEWS: Add entry for the new feature
8434 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8437 2014-02-19 Stan Shebs <stan@codesourcery.com>
8439 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8441 2014-02-19 Pedro Alves <palves@redhat.com>
8443 * common/ptid.h (struct ptid): Mention that process_stratum
8444 targets should prefer ptid.lwp.
8446 2014-02-19 Pedro Alves <palves@redhat.com>
8448 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8449 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8450 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8451 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8452 store remote thread ids rather than ptid.tid.
8453 (_initialize_remote): Adjust.
8455 2014-02-19 Tom Tromey <tromey@redhat.com>
8457 * target.c (target_get_unwinder): Rewrite.
8458 (target_get_tailcall_unwinder): Rewrite.
8459 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8460 (record_btrace_to_get_tailcall_unwinder): New function.
8461 (init_record_btrace_ops): Update.
8462 * target.h (struct target_ops) <to_get_unwinder,
8463 to_get_tailcall_unwinder>: Now function pointers. Use
8464 TARGET_DEFAULT_RETURN.
8466 2014-02-19 Tom Tromey <tromey@redhat.com>
8468 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8470 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8472 2014-02-19 Tom Tromey <tromey@redhat.com>
8474 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8476 * target-delegates.c: Rebuild.
8477 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8478 TARGET_DEFAULT_FUNC.
8479 * target.c (default_target_decr_pc_after_break): Rename from
8480 forward_target_decr_pc_after_break. Simplify.
8481 (target_decr_pc_after_break): Rely on delegation.
8483 2014-02-19 Tom Tromey <tromey@redhat.com>
8485 * target.c (update_current_target): Do not INHERIT to_doc or
8486 to_magic. Do not de_fault to_open or to_close.
8488 2014-02-19 Tom Tromey <tromey@redhat.com>
8490 * gcore.h (objfile_find_memory_regions): Declare.
8491 * gcore.c (objfile_find_memory_regions): No longer static. Add
8493 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8494 * exec.c: Include gcore.h.
8495 (exec_set_find_memory_regions): Remove.
8496 (exec_find_memory_regions): Remove.
8497 (exec_do_find_memory_regions): Remove.
8498 (init_exec_ops): Update.
8499 * defs.h (exec_set_find_memory_regions): Remove.
8501 2014-02-19 Tom Tromey <tromey@redhat.com>
8503 * target-delegates.c: Rebuild.
8504 * target.h (struct target_ops) <to_extra_thread_info,
8505 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8506 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8507 not 0, in TARGET_DEFAULT_RETURN.
8509 2014-02-19 Tom Tromey <tromey@redhat.com>
8511 * target.c (complete_target_initialization): Remove casts. Use
8512 return_zero_has_execution.
8513 (return_zero): Add "ignore" argument.
8514 (return_zero_has_execution): New function.
8515 (init_dummy_target): Remove casts. Use
8516 return_zero_has_execution.
8518 2014-02-19 Tom Tromey <tromey@redhat.com>
8520 * target.c (update_current_target): Update comments. Do not
8523 2014-02-19 Tom Tromey <tromey@redhat.com>
8525 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8527 * corelow.c (core_read_description): Delegate when needed.
8528 * remote.c (remote_read_description): Delegate when needed.
8529 * target-delegates.c: Rebuild.
8530 * target.c (target_read_description): Rewrite.
8531 * target.h (struct target_ops) <to_read_description>: Update
8532 comment. Use TARGET_DEFAULT_RETURN.
8534 2014-02-19 Tom Tromey <tromey@redhat.com>
8536 * target-delegates.c: Rebuild.
8537 * target.c (update_current_target): Don't inherit or default
8539 (find_default_run_target): Check against delegate_can_run.
8540 * target.h (struct target_ops) <to_can_run>: Use
8541 TARGET_DEFAULT_RETURN.
8543 2014-02-19 Tom Tromey <tromey@redhat.com>
8545 * target-delegates.c: Rebuild.
8546 * target.c (target_disconnect): Unconditionally delegate.
8547 * target.h (struct target_ops) <to_disconnect>: Use
8548 TARGET_DEFAULT_NORETURN.
8550 2014-02-19 Tom Tromey <tromey@redhat.com>
8552 * record.c (record_stop): Unconditionally delegate.
8553 * target-delegates.c: Rebuild.
8554 * target.c (target_stop_recording): Unconditionally delegate.
8555 * target.h (struct target_ops) <to_stop_recording>: Use
8556 TARGET_DEFAULT_IGNORE.
8558 2014-02-19 Tom Tromey <tromey@redhat.com>
8560 * target-delegates.c: Rebuild.
8561 * target.c (target_enable_btrace): Unconditionally delegate.
8562 * target.h (struct target_ops) <to_enable_btrace>: Use
8563 TARGET_DEFAULT_NORETURN.
8565 2014-02-19 Tom Tromey <tromey@redhat.com>
8567 * target-delegates.c: Rebuild.
8568 * target.c (target_read_btrace): Unconditionally delegate.
8569 * target.h (struct target_ops) <to_read_btrace>: Use
8570 TARGET_DEFAULT_NORETURN.
8572 2014-02-19 Tom Tromey <tromey@redhat.com>
8574 * target-delegates.c: Rebuild.
8575 * target.c (target_teardown_btrace): Unconditionally delegate.
8576 * target.h (struct target_ops) <to_teardown_btrace>: Use
8577 TARGET_DEFAULT_NORETURN.
8579 2014-02-19 Tom Tromey <tromey@redhat.com>
8581 * target-delegates.c: Rebuild.
8582 * target.c (target_disable_btrace): Unconditionally delegate.
8583 * target.h (struct target_ops) <to_disable_btrace>: Use
8584 TARGET_DEFAULT_NORETURN.
8586 2014-02-19 Tom Tromey <tromey@redhat.com>
8588 * target-delegates.c: Rebuild.
8589 * target.c (default_search_memory): New function.
8590 (simple_search_memory): Update comment.
8591 (target_search_memory): Unconditionally delegate.
8592 * target.h (struct target_ops) <to_search_memory>: Use
8593 TARGET_DEFAULT_FUNC.
8595 2014-02-19 Tom Tromey <tromey@redhat.com>
8597 * auxv.c (default_auxv_parse): No longer static.
8598 (target_auxv_parse): Unconditionally delegate.
8599 * auxv.h (default_auxv_parse): Declare.
8600 * target-delegates.c: Rebuild.
8601 * target.c: Include auxv.h.
8602 * target.h (struct target_ops) <to_auxv_parse>: Use
8603 TARGET_DEFAULT_FUNC.
8605 2014-02-19 Tom Tromey <tromey@redhat.com>
8607 * target-delegates.c: Rebuild.
8608 * target.c (target_memory_map): Unconditionally delegate.
8609 * target.h (struct target_ops) <to_memory_map>: Use
8610 TARGET_DEFAULT_RETURN.
8612 2014-02-19 Tom Tromey <tromey@redhat.com>
8614 * target-delegates.c: Rebuild.
8615 * target.c (target_thread_alive): Unconditionally delegate.
8616 * target.h (struct target_ops) <to_thread_alive>: Use
8617 TARGET_DEFAULT_RETURN.
8619 2014-02-19 Tom Tromey <tromey@redhat.com>
8621 * target-delegates.c: Rebuild.
8622 * target.c (target_save_record): Unconditionally delegate.
8623 * target.h (struct target_ops) <to_save_record>: Use
8624 TARGET_DEFAULT_NORETURN.
8626 2014-02-19 Tom Tromey <tromey@redhat.com>
8628 * target-delegates.c: Rebuild.
8629 * target.c (target_delete_record): Unconditionally delegate.
8630 * target.h (struct target_ops) <to_delete_record>: Use
8631 TARGET_DEFAULT_NORETURN.
8633 2014-02-19 Tom Tromey <tromey@redhat.com>
8635 * target-delegates.c: Rebuild.
8636 * target.c (target_record_is_replaying): Unconditionally
8638 * target.h (struct target_ops) <to_record_is_replaying>: Use
8639 TARGET_DEFAULT_RETURN.
8641 2014-02-19 Tom Tromey <tromey@redhat.com>
8643 * target-delegates.c: Rebuild.
8644 * target.c (target_goto_record_begin): Unconditionally delegate.
8645 * target.h (struct target_ops) <to_goto_record_begin>: Use
8646 TARGET_DEFAULT_NORETURN.
8648 2014-02-19 Tom Tromey <tromey@redhat.com>
8650 * target-delegates.c: Rebuild.
8651 * target.c (target_goto_record_end): Unconditionally delegate.
8652 * target.h (struct target_ops) <to_goto_record_end>: Use
8653 TARGET_DEFAULT_NORETURN.
8655 2014-02-19 Tom Tromey <tromey@redhat.com>
8657 * target-delegates.c: Rebuild.
8658 * target.c (target_goto_record): Unconditionally delegate.
8659 * target.h (struct target_ops) <to_goto_record>: Use
8660 TARGET_DEFAULT_NORETURN.
8662 2014-02-19 Tom Tromey <tromey@redhat.com>
8664 * target-delegates.c: Rebuild.
8665 * target.c (target_insn_history): Unconditionally delegate.
8666 * target.h (struct target_ops) <to_insn_history>: Use
8667 TARGET_DEFAULT_NORETURN.
8669 2014-02-19 Tom Tromey <tromey@redhat.com>
8671 * target-delegates.c: Rebuild.
8672 * target.c (target_insn_history_from): Unconditionally delegate.
8673 * target.h (struct target_ops) <to_insn_history_from>: Use
8674 TARGET_DEFAULT_NORETURN.
8676 2014-02-19 Tom Tromey <tromey@redhat.com>
8678 * target-delegates.c: Rebuild.
8679 * target.c (target_insn_history_range): Unconditionally delegate.
8680 * target.h (struct target_ops) <to_insn_history_range>: Use
8681 TARGET_DEFAULT_NORETURN.
8683 2014-02-19 Tom Tromey <tromey@redhat.com>
8685 * target-delegates.c: Rebuild.
8686 * target.c (target_call_history): Unconditionally delegate.
8687 * target.h (struct target_ops) <to_call_history>: Use
8688 TARGET_DEFAULT_NORETURN.
8690 2014-02-19 Tom Tromey <tromey@redhat.com>
8692 * target-delegates.c: Rebuild.
8693 * target.c (target_call_history_from): Unconditionally delegate.
8694 * target.h (struct target_ops) <to_call_history_from>: Use
8695 TARGET_DEFAULT_NORETURN.
8697 2014-02-19 Tom Tromey <tromey@redhat.com>
8699 * target-delegates.c: Rebuild.
8700 * target.c (target_call_history_range): Unconditionally delegate.
8701 * target.h (struct target_ops) <to_call_history_range>: Use
8702 TARGET_DEFAULT_NORETURN.
8704 2014-02-19 Tom Tromey <tromey@redhat.com>
8706 * target-delegates.c: Rebuild.
8707 * target.c (target_verify_memory): Unconditionally delegate.
8708 * target.h (struct target_ops) <to_verify_memory>: Use
8709 TARGET_DEFAULT_NORETURN.
8711 2014-02-19 Tom Tromey <tromey@redhat.com>
8713 * target-delegates.c: Rebuild.
8714 * target.c (target_core_of_thread): Unconditionally delegate.
8715 * target.h (struct target_ops) <to_core_of_thread>: Use
8716 TARGET_DEFAULT_RETURN.
8718 2014-02-19 Tom Tromey <tromey@redhat.com>
8720 * target-delegates.c: Rebuild.
8721 * target.c (target_flash_done): Unconditionally delegate.
8722 * target.h (struct target_ops) <to_flash_done>: Use
8723 TARGET_DEFAULT_NORETURN.
8725 2014-02-19 Tom Tromey <tromey@redhat.com>
8727 * target-delegates.c: Rebuild.
8728 * target.c (target_flash_erase): Unconditionally delegate.
8729 * target.h (struct target_ops) <to_flash_erase>: Use
8730 TARGET_DEFAULT_NORETURN.
8732 2014-02-19 Tom Tromey <tromey@redhat.com>
8734 * target-delegates.c: Rebuild.
8735 * target.c (target_get_section_table): Unconditionally delegate.
8736 * target.h (struct target_ops) <to_get_section_table>: Use
8737 TARGET_DEFAULT_RETURN.
8739 2014-02-19 Tom Tromey <tromey@redhat.com>
8741 * target-delegates.c: Rebuild.
8742 * target.c (target_pid_to_str): Unconditionally delegate.
8743 (init_dummy_target): Don't initialize to_pid_to_str.
8744 (default_pid_to_str): Rename from dummy_pid_to_str.
8745 * target.h (struct target_ops) <to_pid_to_str>: Use
8746 TARGET_DEFAULT_FUNC.
8748 2014-02-19 Tom Tromey <tromey@redhat.com>
8750 * target-delegates.c: Rebuild.
8751 * target.c (target_find_new_threads): Unconditionally delegate.
8752 * target.h (struct target_ops) <to_find_new_threads>: Use
8753 TARGET_DEFAULT_RETURN.
8755 2014-02-19 Tom Tromey <tromey@redhat.com>
8757 * target-delegates.c: Rebuild.
8758 * target.c (target_program_signals): Unconditionally delegate.
8759 * target.h (struct target_ops) <to_program_signals>: Use
8760 TARGET_DEFAULT_IGNORE.
8762 2014-02-19 Tom Tromey <tromey@redhat.com>
8764 * target-delegates.c: Rebuild.
8765 * target.c (target_pass_signals): Unconditionally delegate.
8766 * target.h (struct target_ops) <to_pass_signals>: Use
8767 TARGET_DEFAULT_IGNORE.
8769 2014-02-19 Tom Tromey <tromey@redhat.com>
8771 * target-delegates.c: Rebuild.
8772 * target.c (default_mourn_inferior): New function.
8773 (target_mourn_inferior): Unconditionally delegate.
8774 * target.h (struct target_ops) <to_mourn_inferior>: Use
8775 TARGET_DEFAULT_FUNC.
8777 2014-02-19 Tom Tromey <tromey@redhat.com>
8779 * target-delegates.c: Rebuild.
8780 * target.c (default_follow_fork): New function.
8781 (target_follow_fork): Unconditionally delegate.
8782 * target.h (struct target_ops) <to_follow_fork>: Use
8783 TARGET_DEFAULT_FUNC.
8785 2014-02-19 Tom Tromey <tromey@redhat.com>
8787 * target-delegates.c: Rebuild.
8788 * target.c (target_kill): Unconditionally delegate.
8789 * target.h (struct target_ops) <to_kill>: Use
8790 TARGET_DEFAULT_NORETURN.
8792 2014-02-19 Tom Tromey <tromey@redhat.com>
8794 * target-delegates.c: Rebuild.
8795 * target.c (target_masked_watch_num_registers): Unconditionally
8797 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8798 Use TARGET_DEFAULT_RETURN.
8800 2014-02-19 Tom Tromey <tromey@redhat.com>
8802 * target-delegates.c: Rebuild.
8803 * target.c (target_remove_mask_watchpoint): Unconditionally
8805 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8806 TARGET_DEFAULT_RETURN.
8808 2014-02-19 Tom Tromey <tromey@redhat.com>
8810 * target-delegates.c: Rebuild.
8811 * target.c (target_insert_mask_watchpoint): Unconditionally
8813 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8814 TARGET_DEFAULT_RETURN.
8816 2014-02-19 Tom Tromey <tromey@redhat.com>
8818 * target-delegates.c: Rebuild.
8819 * target.c (target_ranged_break_num_registers): Unconditionally
8821 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8822 Use TARGET_DEFAULT_RETURN.
8824 2014-02-19 Tom Tromey <tromey@redhat.com>
8826 * target-delegates.c: Rebuild.
8827 * target.c (target_fetch_registers): Unconditionally delegate.
8828 * target.h (struct target_ops) <to_fetch_registers>: Use
8829 TARGET_DEFAULT_NORETURN.
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8833 * target-delegates.c: Rebuild.
8834 * target.c (update_current_target): Don't inherit or default
8836 * target.h (struct target_ops) <to_stop>: Use
8837 TARGET_DEFAULT_IGNORE.
8839 2014-02-19 Tom Tromey <tromey@redhat.com>
8841 * target-delegates.c: Rebuild.
8842 * target.c (update_current_target): Don't inherit or default
8843 to_can_run_breakpoint_commands.
8844 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8845 Use TARGET_DEFAULT_RETURN.
8847 2014-02-19 Tom Tromey <tromey@redhat.com>
8849 * target-delegates.c: Rebuild.
8850 * target.c (update_current_target): Don't inherit or default
8851 to_supports_evaluation_of_breakpoint_conditions.
8852 * target.h (struct target_ops)
8853 <to_supports_evaluation_of_breakpoint_conditions>: Use
8854 TARGET_DEFAULT_RETURN.
8856 2014-02-19 Tom Tromey <tromey@redhat.com>
8858 * target-delegates.c: Rebuild.
8859 * target.c (update_current_target): Don't inherit or default
8860 to_augmented_libraries_svr4_read.
8861 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8862 Use TARGET_DEFAULT_RETURN.
8864 2014-02-19 Tom Tromey <tromey@redhat.com>
8866 * target-delegates.c: Rebuild.
8867 * target.c (update_current_target): Don't inherit or default
8869 * target.h (struct target_ops) <to_can_use_agent>: Use
8870 TARGET_DEFAULT_RETURN.
8872 2014-02-19 Tom Tromey <tromey@redhat.com>
8874 * target-delegates.c: Rebuild.
8875 * target.c (update_current_target): Don't inherit or default
8877 * target.h (struct target_ops) <to_use_agent>: Use
8878 TARGET_DEFAULT_NORETURN.
8880 2014-02-19 Tom Tromey <tromey@redhat.com>
8882 * target-delegates.c: Rebuild.
8883 * target.c (update_current_target): Don't inherit or default
8885 (return_null): Remove.
8886 * target.h (struct target_ops) <to_traceframe_info>: Use
8887 TARGET_DEFAULT_RETURN.
8889 2014-02-19 Tom Tromey <tromey@redhat.com>
8891 * target-delegates.c: Rebuild.
8892 * target.c (update_current_target): Don't inherit or default
8893 to_static_tracepoint_markers_by_strid.
8894 * target.h (struct target_ops)
8895 <to_static_tracepoint_markers_by_strid>: 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
8902 to_static_tracepoint_marker_at.
8903 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8904 Use TARGET_DEFAULT_RETURN.
8906 2014-02-19 Tom Tromey <tromey@redhat.com>
8908 * target-delegates.c: Rebuild.
8909 * target.c (update_current_target): Don't inherit or default
8911 * target.h (struct target_ops) <to_set_permissions>: Use
8912 TARGET_DEFAULT_IGNORE.
8914 2014-02-19 Tom Tromey <tromey@redhat.com>
8916 * target-delegates.c: Rebuild.
8917 * target.c (update_current_target): Don't inherit or default
8919 * target.h (struct target_ops) <to_get_tib_address>: Use
8920 TARGET_DEFAULT_NORETURN.
8922 2014-02-19 Tom Tromey <tromey@redhat.com>
8924 * target-delegates.c: Rebuild.
8925 * target.c (update_current_target): Don't inherit or default
8927 * target.h (struct target_ops) <to_set_trace_notes>: Use
8928 TARGET_DEFAULT_RETURN.
8930 2014-02-19 Tom Tromey <tromey@redhat.com>
8932 * target-delegates.c: Rebuild.
8933 * target.c (update_current_target): Don't initialize
8934 to_set_trace_buffer_size.
8935 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8936 TARGET_DEFAULT_IGNORE.
8938 2014-02-19 Tom Tromey <tromey@redhat.com>
8940 * target-delegates.c: Rebuild.
8941 * target.c (update_current_target): Don't inherit or default
8942 to_set_circular_trace_buffer.
8943 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8944 TARGET_DEFAULT_IGNORE.
8946 2014-02-19 Tom Tromey <tromey@redhat.com>
8948 * target-delegates.c: Rebuild.
8949 * target.c (update_current_target): Don't inherit or default
8950 to_set_disconnected_tracing.
8951 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8952 TARGET_DEFAULT_IGNORE.
8954 2014-02-19 Tom Tromey <tromey@redhat.com>
8956 * target-delegates.c: Rebuild.
8957 * target.c (update_current_target): Don't inherit or default
8958 to_get_min_fast_tracepoint_insn_len.
8959 (return_minus_one): Remove.
8960 * target.h (struct target_ops)
8961 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8963 2014-02-19 Tom Tromey <tromey@redhat.com>
8965 * target-delegates.c: Rebuild.
8966 * target.c (update_current_target): Don't inherit or default
8967 to_get_raw_trace_data.
8968 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8969 TARGET_DEFAULT_NORETURN.
8971 2014-02-19 Tom Tromey <tromey@redhat.com>
8973 * target-delegates.c: Rebuild.
8974 * target.c (update_current_target): Don't inherit or default
8975 to_upload_trace_state_variables.
8976 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8977 Use TARGET_DEFAULT_RETURN.
8979 2014-02-19 Tom Tromey <tromey@redhat.com>
8981 * target-delegates.c: Rebuild.
8982 * target.c (update_current_target): Don't inherit or default
8983 to_upload_tracepoints.
8984 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8985 TARGET_DEFAULT_RETURN.
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8989 * target-delegates.c: Rebuild.
8990 * target.c (update_current_target): Don't inherit or default
8992 * target.h (struct target_ops) <to_save_trace_data>: Use
8993 TARGET_DEFAULT_NORETURN.
8995 2014-02-19 Tom Tromey <tromey@redhat.com>
8997 * target-delegates.c: Rebuild.
8998 * target.c (update_current_target): Don't inherit or default
8999 to_get_trace_state_variable_value.
9000 * target.h (struct target_ops)
9001 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9003 2014-02-19 Tom Tromey <tromey@redhat.com>
9005 * target-delegates.c: Rebuild.
9006 * target.c (update_current_target): Don't inherit or default
9008 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9010 2014-02-19 Tom Tromey <tromey@redhat.com>
9012 * target-delegates.c: Rebuild.
9013 * target.c (update_current_target): Don't inherit or default
9015 * target.h (struct target_ops) <to_trace_stop>: Use
9016 TARGET_DEFAULT_NORETURN.
9018 2014-02-19 Tom Tromey <tromey@redhat.com>
9020 * target-delegates.c: Rebuild.
9021 * target.c (update_current_target): Don't inherit or default
9022 to_get_tracepoint_status.
9023 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9024 TARGET_DEFAULT_NORETURN.
9026 2014-02-19 Tom Tromey <tromey@redhat.com>
9028 * target-delegates.c: Rebuild.
9029 * target.c (update_current_target): Don't inherit or default
9030 to_get_trace_status.
9031 * target.h (struct target_ops) <to_get_trace_status>: Use
9032 TARGET_DEFAULT_RETURN.
9034 2014-02-19 Tom Tromey <tromey@redhat.com>
9036 * target-delegates.c: Rebuild.
9037 * target.c (update_current_target): Don't inherit or default
9039 * target.h (struct target_ops) <to_trace_start>: Use
9040 TARGET_DEFAULT_NORETURN.
9042 2014-02-19 Tom Tromey <tromey@redhat.com>
9044 * target-delegates.c: Rebuild.
9045 * target.c (update_current_target): Don't inherit or default
9046 to_trace_set_readonly_regions.
9047 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9048 Use TARGET_DEFAULT_NORETURN.
9050 2014-02-19 Tom Tromey <tromey@redhat.com>
9052 * target-delegates.c: Rebuild.
9053 * target.c (update_current_target): Don't inherit or default
9054 to_disable_tracepoint.
9055 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9056 TARGET_DEFAULT_NORETURN.
9058 2014-02-19 Tom Tromey <tromey@redhat.com>
9060 * target-delegates.c: Rebuild.
9061 * target.c (update_current_target): Don't inherit or default
9062 to_enable_tracepoint.
9063 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9064 TARGET_DEFAULT_NORETURN.
9066 2014-02-19 Tom Tromey <tromey@redhat.com>
9068 * target-delegates.c: Rebuild.
9069 * target.c (update_current_target): Don't inherit or default
9070 to_download_trace_state_variable.
9071 * target.h (struct target_ops) <to_download_trace_state_variable>:
9072 Use TARGET_DEFAULT_NORETURN.
9074 2014-02-19 Tom Tromey <tromey@redhat.com>
9076 * target-delegates.c: Rebuild.
9077 * target.c (update_current_target): Don't inherit or default
9078 to_can_download_tracepoint.
9079 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9080 TARGET_DEFAULT_RETURN.
9082 2014-02-19 Tom Tromey <tromey@redhat.com>
9084 * target-delegates.c: Rebuild.
9085 * target.c (update_current_target): Don't inherit or default
9086 to_download_tracepoint.
9087 * target.h (struct target_ops) <to_download_tracepoint>: Use
9088 TARGET_DEFAULT_NORETURN.
9090 2014-02-19 Tom Tromey <tromey@redhat.com>
9092 * target-delegates.c: Rebuild.
9093 * target.c (update_current_target): Don't inherit or default
9095 * target.h (struct target_ops) <to_trace_init>: Use
9096 TARGET_DEFAULT_RETURN.
9098 2014-02-19 Tom Tromey <tromey@redhat.com>
9100 * target-delegates.c: Rebuild.
9101 * target.c (update_current_target): Don't inherit or default
9102 to_supports_string_tracing.
9103 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9104 TARGET_DEFAULT_RETURN.
9106 2014-02-19 Tom Tromey <tromey@redhat.com>
9108 * target-delegates.c: Rebuild.
9109 * target.c (update_current_target): Don't inherit or default
9110 to_supports_enable_disable_tracepoint.
9111 * target.h (struct target_ops)
9112 <to_supports_enable_disable_tracepoint>: Use
9113 TARGET_DEFAULT_RETURN.
9115 2014-02-19 Tom Tromey <tromey@redhat.com>
9117 * target-delegates.c: Rebuild.
9118 * target.c (update_current_target): Don't inherit or default
9119 to_supports_multi_process.
9120 * target.h (struct target_ops) <to_supports_multi_process>: Use
9121 TARGET_DEFAULT_RETURN.
9123 2014-02-19 Tom Tromey <tromey@redhat.com>
9125 * target-delegates.c: Rebuild.
9126 * target.c (update_current_target): Don't inherit or default
9127 to_get_ada_task_ptid.
9128 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9129 TARGET_DEFAULT_FUNC.
9131 2014-02-19 Tom Tromey <tromey@redhat.com>
9133 * target-delegates.c: Rebuild.
9134 * target.c (update_current_target): Don't inherit or default
9135 to_thread_architecture.
9136 * target.h (struct target_ops) <to_thread_architecture>: Use
9137 TARGET_DEFAULT_FUNC.
9139 2014-02-19 Tom Tromey <tromey@redhat.com>
9141 * target-delegates.c: Rebuild.
9142 * target.c (update_current_target): Don't inherit or default
9143 to_execution_direction.
9144 * target.h (struct target_ops) <to_execution_direction>: Use
9145 TARGET_DEFAULT_FUNC.
9147 2014-02-19 Tom Tromey <tromey@redhat.com>
9149 * target-delegates.c: Rebuild.
9150 * target.c (update_current_target): Don't inherit or default
9151 to_can_execute_reverse.
9152 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9153 TARGET_DEFAULT_RETURN.
9154 (target_can_execute_reverse): Unconditionally delegate.
9156 2014-02-19 Tom Tromey <tromey@redhat.com>
9158 * target-delegates.c: Rebuild.
9159 * target.c (update_current_target): Don't inherit or default
9161 (dummy_goto_bookmark): Remove.
9162 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9163 * target.h (struct target_ops) <to_goto_bookmark>: Use
9164 TARGET_DEFAULT_NORETURN.
9166 2014-02-19 Tom Tromey <tromey@redhat.com>
9168 * target-delegates.c: Rebuild.
9169 * target.c (update_current_target): Don't inherit or default
9171 (dummy_get_bookmark): Remove.
9172 (init_dummy_target): Don't inherit or default to_get_bookmark.
9173 * target.h (struct target_ops) <to_get_bookmark>: Use
9174 TARGET_DEFAULT_NORETURN
9176 2014-02-19 Tom Tromey <tromey@redhat.com>
9178 * target-delegates.c: Rebuild.
9179 * target.c (update_current_target): Don't inherit or default
9180 to_make_corefile_notes.
9181 (init_dummy_target): Don't initialize to_make_corefile_notes.
9182 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9183 TARGET_DEFAULT_FUNC.
9185 2014-02-19 Tom Tromey <tromey@redhat.com>
9187 * target-delegates.c: Rebuild.
9188 * target.c (update_current_target): Don't inherit or default
9189 to_find_memory_regions.
9190 (init_dummy_target): Don't initialize to_find_memory_regions.
9191 * target.h (struct target_ops) <to_find_memory_regions>: Use
9192 TARGET_DEFAULT_FUNC.
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
9199 * target.h (struct target_ops) <to_log_command>: Use
9200 TARGET_DEFAULT_IGNORE.
9201 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
9208 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9209 TARGET_DEFAULT_RETURN.
9211 2014-02-19 Tom Tromey <tromey@redhat.com>
9213 * target-delegates.c: Rebuild.
9214 * target.c (update_current_target): Don't inherit or default
9216 (target_thread_name): Unconditionally delegate.
9217 * target.h (struct target_ops) <to_thread_name>: Use
9218 TARGET_DEFAULT_RETURN.
9220 2014-02-19 Tom Tromey <tromey@redhat.com>
9222 * target-delegates.c: Rebuild.
9223 * target.c (update_current_target): Don't inherit or default
9224 to_extra_thread_info.
9225 * target.h (struct target_ops) <to_extra_thread_info>: Use
9226 TARGET_DEFAULT_RETURN.
9228 2014-02-19 Tom Tromey <tromey@redhat.com>
9230 * target-delegates.c: Rebuild.
9231 * target.c (update_current_target): Don't inherit or default
9233 * target.h (struct target_ops) <to_has_exited>: Use
9234 TARGET_DEFAULT_RETURN..
9236 2014-02-19 Tom Tromey <tromey@redhat.com>
9238 * target-delegates.c: Rebuild.
9239 * target.c (update_current_target): Don't inherit or default
9240 to_set_syscall_catchpoint.
9241 (return_one): Remove.
9242 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9243 TARGET_DEFAULT_RETURN.
9245 2014-02-19 Tom Tromey <tromey@redhat.com>
9247 * target-delegates.c: Rebuild.
9248 * target.c (update_current_target): Don't inherit or default
9249 to_insert_exec_catchpoint.
9250 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9251 TARGET_DEFAULT_RETURN.
9253 2014-01-08 Tom Tromey <tromey@redhat.com>
9255 * target-delegates.c: Rebuild.
9256 * target.c (update_current_target): Don't inherit or default
9257 to_insert_exec_catchpoint.
9258 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9259 TARGET_DEFAULT_RETURN.
9261 2014-02-19 Tom Tromey <tromey@redhat.com>
9263 * target-delegates.c: Rebuild.
9264 * target.c (update_current_target): Don't inherit or default
9265 to_remove_vfork_catchpoint.
9266 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9267 TARGET_DEFAULT_RETURN.
9269 2014-02-19 Tom Tromey <tromey@redhat.com>
9271 * target-delegates.c: Rebuild.
9272 * target.c (update_current_target): Don't inherit or default
9273 to_insert_vfork_catchpoint.
9274 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9275 TARGET_DEFAULT_RETURN.
9277 2014-02-19 Tom Tromey <tromey@redhat.com>
9279 * target-delegates.c: Rebuild.
9280 * target.c (update_current_target): Don't inherit or default
9281 to_remove_fork_catchpoint.
9282 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9283 TARGET_DEFAULT_RETURN.
9285 2014-02-19 Tom Tromey <tromey@redhat.com>
9287 * target-delegates.c: Rebuild.
9288 * target.c (update_current_target): Don't inherit or default
9289 to_insert_fork_catchpoint.
9290 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9291 TARGET_DEFAULT_RETURN.
9293 2014-02-19 Tom Tromey <tromey@redhat.com>
9295 * target-delegates.c: Rebuild.
9296 * target.c (update_current_target): Don't inherit or default
9297 to_post_startup_inferior.
9298 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9299 TARGET_DEFAULT_IGNORE.
9301 2014-02-19 Tom Tromey <tromey@redhat.com>
9303 * target-delegates.c: Rebuild.
9304 * target.c (update_current_target): Don't inherit or default
9306 * target.h (struct target_ops) <to_load>: Use
9307 TARGET_DEFAULT_NORETURN.
9309 2014-02-19 Tom Tromey <tromey@redhat.com>
9311 * target-delegates.c: Rebuild.
9312 * target.c (update_current_target): Don't inherit or default
9314 * target.h (struct target_ops) <to_terminal_info>: Use
9315 TARGET_DEFAULT_FUNC.
9317 2014-02-19 Tom Tromey <tromey@redhat.com>
9319 * target-delegates.c: Rebuild.
9320 * target.c (update_current_target): Don't inherit or default
9321 to_terminal_save_ours.
9322 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9323 TARGET_DEFAULT_IGNORE.
9325 2014-02-19 Tom Tromey <tromey@redhat.com>
9327 * target-delegates.c: Rebuild.
9328 * target.c (update_current_target): Don't inherit or default
9330 * target.h (struct target_ops) <to_terminal_ours>: Use
9331 TARGET_DEFAULT_IGNORE.
9333 2014-02-19 Tom Tromey <tromey@redhat.com>
9335 * target-delegates.c: Rebuild.
9336 * target.c (update_current_target): Don't inherit or default
9337 to_terminal_ours_for_output.
9338 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9339 TARGET_DEFAULT_IGNORE.
9341 2014-02-19 Tom Tromey <tromey@redhat.com>
9343 * target-delegates.c: Rebuild.
9344 * target.c (update_current_target): Don't inherit or default
9345 to_terminal_inferior.
9346 * target.h (struct target_ops) <to_terminal_inferior>: Use
9347 TARGET_DEFAULT_IGNORE.
9349 2014-02-19 Tom Tromey <tromey@redhat.com>
9351 * target-delegates.c: Rebuild.
9352 * target.c (update_current_target): Don't inherit or default
9354 * target.h (struct target_ops) <to_terminal_init>: Use
9355 TARGET_DEFAULT_IGNORE.
9357 2014-02-19 Tom Tromey <tromey@redhat.com>
9359 * target-delegates.c: Rebuild.
9360 * target.c (update_current_target): Don't inherit or default
9361 to_can_accel_watchpoint_condition.
9362 * target.h (struct target_ops)
9363 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9365 2014-02-19 Tom Tromey <tromey@redhat.com>
9367 * target-delegates.c: Rebuild.
9368 * target.c (update_current_target): Don't inherit or default
9369 to_region_ok_for_hw_watchpoint.
9370 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9371 Use TARGET_DEFAULT_FUNC.
9373 2014-02-19 Tom Tromey <tromey@redhat.com>
9375 * target-delegates.c: Rebuild.
9376 * target.c (update_current_target): Don't inherit or default
9377 to_watchpoint_addr_within_range.
9378 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9379 Use TARGET_DEFAULT_FUNC.
9381 2014-02-19 Tom Tromey <tromey@redhat.com>
9383 * target-delegates.c: Rebuild.
9384 * target.c (update_current_target): Don't inherit or default
9385 to_remove_watchpoint.
9386 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9387 TARGET_DEFAULT_NORETURN.
9389 2014-02-19 Tom Tromey <tromey@redhat.com>
9391 * target-delegates.c: Rebuild.
9392 * target.c (update_current_target): Don't inherit or default
9393 to_insert_watchpoint.
9394 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9395 TARGET_DEFAULT_RETURN.
9397 2014-02-19 Tom Tromey <tromey@redhat.com>
9399 * target-delegates.c: Rebuild.
9400 * target.c (update_current_target): Don't inherit or default
9401 to_remove_hw_breakpoint.
9402 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9403 TARGET_DEFAULT_RETURN.
9405 2014-02-19 Tom Tromey <tromey@redhat.com>
9407 * target-delegates.c: Rebuild.
9408 * target.c (update_current_target): Don't inherit or default
9409 to_insert_hw_breakpoint.
9410 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9411 TARGET_DEFAULT_RETURN.
9413 2014-02-19 Tom Tromey <tromey@redhat.com>
9415 * target-delegates.c: Rebuild.
9416 * target.c (update_current_target): Don't inherit or default
9417 to_can_use_hw_breakpoint.
9418 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9419 TARGET_DEFAULT_RETURN.
9421 2014-02-19 Tom Tromey <tromey@redhat.com>
9423 * target-delegates.c: Rebuild.
9424 * target.c (update_current_target): Don't inherit or default
9426 * target.h (struct target_ops) <to_files_info>: Use
9427 TARGET_DEFAULT_IGNORE.
9429 2014-02-19 Tom Tromey <tromey@redhat.com>
9431 * target-delegates.c: Rebuild.
9432 * target.c (update_current_target): Don't inherit or default
9434 * target.h (struct target_ops) <to_store>: Use
9435 TARGET_DEFAULT_NORETURN.
9437 2014-02-19 Tom Tromey <tromey@redhat.com>
9439 * target-delegates.c: Rebuild.
9440 * target.c (update_current_target): Don't inherit or default
9442 * target.h (struct target_ops) <to_post_attach>: Use
9443 TARGET_DEFAULT_IGNORE.
9445 2014-02-19 Tom Tromey <tromey@redhat.com>
9447 * target-delegates.c: Rebuild.
9448 * target.c (update_current_target): Don't inherit or default
9450 (default_rcmd): New function.
9451 (do_monitor_command): Unconditionally delegate.
9452 * target.h (struct target_ops) <to_rmcd>: Use
9453 TARGET_DEFAULT_FUNC.
9455 2014-02-19 Tom Tromey <tromey@redhat.com>
9457 * target-delegates.c: Rebuild.
9458 * target.c (init_dummy_target): Don't initialize to_attach.
9459 (target_attach): Unconditionally delegate.
9460 * target.h (struct target_ops) <to_attach>: Use
9461 TARGET_DEFAULT_FUNC.
9463 2014-02-19 Tom Tromey <tromey@redhat.com>
9465 * target-delegates.c: Rebuild.
9466 * target.c (target_detach): Unconditionally delegate.
9467 (init_dummy_target): Don't initialize to_detach.
9468 * target.h (struct target_ops) <to_detach>: Use
9469 TARGET_DEFAULT_IGNORE.
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9473 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9475 (target_augmented_libraries_svr4_read): Add argument.
9476 * target.c (update_current_target): Update.
9477 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9480 2014-02-19 Tom Tromey <tromey@redhat.com>
9482 * target.h (struct target_ops) <to_call_history_range>: Add
9484 * target.c (target_call_history_range): Add argument.
9485 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9487 (record_btrace_call_history_from): Update.
9489 2014-02-19 Tom Tromey <tromey@redhat.com>
9491 * target.h (struct target_ops) <to_call_history_from>: Add
9493 * target.c (target_call_history_from): Add argument.
9494 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9497 2014-02-19 Tom Tromey <tromey@redhat.com>
9499 * target.h (struct target_ops) <to_call_history>: Add argument.
9500 * target.c (target_call_history): Add argument.
9501 * record-btrace.c (record_btrace_call_history): Add 'self'
9504 2014-02-19 Tom Tromey <tromey@redhat.com>
9506 * target.h (struct target_ops) <to_insn_history_range>: Add
9508 * target.c (target_insn_history_range): Add argument.
9509 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9511 (record_btrace_insn_history_from): Update.
9513 2014-02-19 Tom Tromey <tromey@redhat.com>
9515 * target.h (struct target_ops) <to_insn_history_from>: Add
9517 * target.c (target_insn_history_from): Add argument.
9518 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9521 2014-02-19 Tom Tromey <tromey@redhat.com>
9523 * target.h (struct target_ops) <to_insn_history>: Add argument.
9524 * target.c (target_insn_history): Add argument.
9525 * record-btrace.c (record_btrace_insn_history): Add 'self'
9528 2014-02-19 Tom Tromey <tromey@redhat.com>
9530 * target.h (struct target_ops) <to_goto_record>: Add argument.
9531 * target.c (target_goto_record): Add argument.
9532 * record-full.c (record_full_goto): Add 'self' argument.
9533 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9535 2014-02-19 Tom Tromey <tromey@redhat.com>
9537 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9538 * target.c (target_goto_record_end): Add argument.
9539 * record-full.c (record_full_goto_end): Add 'self' argument.
9540 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9542 2014-02-19 Tom Tromey <tromey@redhat.com>
9544 * target.h (struct target_ops) <to_goto_record_begin>: Add
9546 * target.c (target_goto_record_begin): Add argument.
9547 * record-full.c (record_full_goto_begin): Add 'self' argument.
9548 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9551 2014-02-19 Tom Tromey <tromey@redhat.com>
9553 * target.h (struct target_ops) <to_record_is_replaying>: Add
9555 * target.c (target_record_is_replaying): Add argument.
9556 * record-full.c (record_full_is_replaying): Add 'self' argument.
9557 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9559 (record_btrace_xfer_partial, record_btrace_store_registers)
9560 (record_btrace_prepare_to_store, record_btrace_resume)
9561 (record_btrace_wait, record_btrace_decr_pc_after_break)
9562 (record_btrace_find_new_threads, record_btrace_thread_alive):
9565 2014-02-19 Tom Tromey <tromey@redhat.com>
9567 * target.h (struct target_ops) <to_delete_record>: Add argument.
9568 * target.c (target_delete_record): Add argument.
9569 * record-full.c (record_full_delete): Add 'self' argument.
9571 2014-02-19 Tom Tromey <tromey@redhat.com>
9573 * target.h (struct target_ops) <to_save_record>: Add argument.
9574 * target.c (target_save_record): Add argument.
9575 * record-full.c (record_full_save): Add 'self' argument.
9576 (record_full_save): Add 'self' argument.
9578 2014-02-19 Tom Tromey <tromey@redhat.com>
9580 * target.h (struct target_ops) <to_info_record>: Add argument.
9581 * target.c (target_info_record): Add argument.
9582 * record.c (info_record_command): Add argument.
9583 * record-full.c (record_full_info): Add 'self' argument.
9584 * record-btrace.c (record_btrace_info): Add 'self' argument.
9586 2014-02-19 Tom Tromey <tromey@redhat.com>
9588 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9589 * target.c (target_stop_recording): Add argument.
9590 * record.c (record_stop): Add argument.
9591 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9594 2014-02-19 Tom Tromey <tromey@redhat.com>
9596 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9597 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9598 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9600 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9601 (_initialize_amd64_linux_nat): Use it.
9602 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9603 (_initialize_i386_linux_nat): Use it.
9605 2014-02-19 Tom Tromey <tromey@redhat.com>
9607 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9608 * target.c (target_teardown_btrace): Add argument.
9609 * remote.c (remote_teardown_btrace): Add 'self' argument.
9610 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9612 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9615 2014-02-19 Tom Tromey <tromey@redhat.com>
9617 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9618 * target.c (target_disable_btrace): Add argument.
9619 * remote.c (remote_disable_btrace): Add 'self' argument.
9620 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9622 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9625 2014-02-19 Tom Tromey <tromey@redhat.com>
9627 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9628 * target.c (target_enable_btrace): Add argument.
9629 * remote.c (remote_enable_btrace): Add 'self' argument.
9630 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9632 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9635 2014-02-19 Tom Tromey <tromey@redhat.com>
9637 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9638 (target_can_use_agent): Add argument.
9639 * target.c (update_current_target): Update.
9640 * remote.c (remote_can_use_agent): Add 'self' argument.
9641 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9643 2014-02-19 Tom Tromey <tromey@redhat.com>
9645 * target.h (struct target_ops) <to_use_agent>: Add argument.
9646 (target_use_agent): Add argument.
9647 * target.c (update_current_target): Update.
9648 * remote.c (remote_use_agent): Add 'self' argument.
9649 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9651 2014-02-19 Tom Tromey <tromey@redhat.com>
9653 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9654 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9655 (target_traceframe_info): Add argument.
9656 * target.c (update_current_target): Update.
9657 * remote.c (remote_traceframe_info): Add 'self' argument.
9658 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9660 2014-02-19 Tom Tromey <tromey@redhat.com>
9662 * target.h (target_static_tracepoint_markers_by_strid): Add
9664 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9666 * target.c (update_current_target): Update.
9667 * remote.c (struct target_ops)
9668 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9669 * linux-nat.c (struct target_ops)
9670 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9672 2014-02-19 Tom Tromey <tromey@redhat.com>
9674 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9676 (target_static_tracepoint_marker_at): Add argument.
9677 * target.c (update_current_target): Update.
9678 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9681 2014-02-19 Tom Tromey <tromey@redhat.com>
9683 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9684 (target_set_permissions): Add argument.
9685 * target.c (update_current_target): Update.
9686 * remote.c (remote_set_permissions): Add 'self' argument.
9687 (remote_start_remote): Update.
9689 2014-02-19 Tom Tromey <tromey@redhat.com>
9691 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9692 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9693 (target_get_tib_address): Add argument.
9694 * target.c (update_current_target): Update.
9695 * remote.c (remote_get_tib_address): Add 'self' argument.
9697 2014-02-19 Tom Tromey <tromey@redhat.com>
9699 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9700 (target_set_trace_notes): Add argument.
9701 * target.c (update_current_target): Update.
9702 * remote.c (remote_set_trace_notes): Add 'self' argument.
9704 2014-02-19 Tom Tromey <tromey@redhat.com>
9706 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9708 (target_set_trace_buffer_size): Add argument.
9709 * target.c (update_current_target): Update.
9710 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9712 2014-02-19 Tom Tromey <tromey@redhat.com>
9714 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9716 (target_set_circular_trace_buffer): Add argument.
9717 * target.c (update_current_target): Update.
9718 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9721 2014-02-19 Tom Tromey <tromey@redhat.com>
9723 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9725 (target_set_disconnected_tracing): Add argument.
9726 * target.c (update_current_target): Update.
9727 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9729 2014-02-19 Tom Tromey <tromey@redhat.com>
9731 * target.h (struct target_ops)
9732 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9733 (target_get_min_fast_tracepoint_insn_len): Add argument.
9734 * target.c (update_current_target): Update.
9735 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9738 2014-02-19 Tom Tromey <tromey@redhat.com>
9740 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9742 (target_get_raw_trace_data): Add argument.
9743 * target.c (update_current_target): Update.
9744 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9746 2014-02-19 Tom Tromey <tromey@redhat.com>
9748 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9750 (target_upload_trace_state_variables): Add argument.
9751 * target.c (update_current_target): Update.
9752 * remote.c (remote_upload_trace_state_variables): Add 'self'
9754 (remote_start_remote): Update.
9756 2014-02-19 Tom Tromey <tromey@redhat.com>
9758 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9760 (target_upload_tracepoints): Add argument.
9761 * target.c (update_current_target): Update.
9762 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9763 (remote_start_remote): Update.
9765 2014-02-19 Tom Tromey <tromey@redhat.com>
9767 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9768 (target_save_trace_data): Add argument.
9769 * target.c (update_current_target): Update.
9770 * remote.c (remote_save_trace_data): Add 'self' argument.
9772 2014-02-19 Tom Tromey <tromey@redhat.com>
9774 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9776 * target.h (struct target_ops)
9777 <to_get_trace_state_variable_value>: Add argument.
9778 (target_get_trace_state_variable_value): Add argument.
9779 * target.c (update_current_target): Update.
9780 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9782 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9784 2014-02-19 Tom Tromey <tromey@redhat.com>
9786 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9787 * target.h (struct target_ops) <to_trace_find>: Add argument.
9788 (target_trace_find): Add argument.
9789 * target.c (update_current_target): Update.
9790 * remote.c (remote_trace_find): Add 'self' argument.
9791 * ctf.c (ctf_trace_find): Add 'self' argument.
9793 2014-02-19 Tom Tromey <tromey@redhat.com>
9795 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9796 (target_trace_stop): Add argument.
9797 * target.c (update_current_target): Update.
9798 * remote.c (remote_trace_stop): Add 'self' argument.
9800 2014-02-19 Tom Tromey <tromey@redhat.com>
9802 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9803 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9805 (target_get_tracepoint_status): Add argument.
9806 * target.c (update_current_target): Update.
9807 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9809 2014-02-19 Tom Tromey <tromey@redhat.com>
9811 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9812 * target.h (struct target_ops) <to_get_trace_status>: Add
9814 (target_get_trace_status): Add argument.
9815 * target.c (update_current_target): Update.
9816 * remote.c (remote_get_trace_status): Add 'self' argument.
9817 (remote_start_remote, remote_can_download_tracepoint): Update.
9818 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9820 2014-02-19 Tom Tromey <tromey@redhat.com>
9822 * target.h (struct target_ops) <to_trace_start>: Add argument.
9823 (target_trace_start): Add argument.
9824 * target.c (update_current_target): Update.
9825 * remote.c (remote_trace_start): Add 'self' argument.
9827 2014-02-19 Tom Tromey <tromey@redhat.com>
9829 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9831 (target_trace_set_readonly_regions): Add argument.
9832 * target.c (update_current_target): Update.
9833 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9836 2014-02-19 Tom Tromey <tromey@redhat.com>
9838 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9840 (target_disable_tracepoint): Add argument.
9841 * target.c (update_current_target): Update.
9842 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9844 2014-02-19 Tom Tromey <tromey@redhat.com>
9846 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9848 (target_enable_tracepoint): Add argument.
9849 * target.c (update_current_target): Update.
9850 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9852 2014-02-19 Tom Tromey <tromey@redhat.com>
9854 * target.h (struct target_ops) <to_download_trace_state_variable>:
9856 (target_download_trace_state_variable): Add argument.
9857 * target.c (update_current_target): Update.
9858 * remote.c (remote_download_trace_state_variable): Add 'self'
9861 2014-02-19 Tom Tromey <tromey@redhat.com>
9863 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9865 (target_can_download_tracepoint): Add argument.
9866 * target.c (update_current_target): Update.
9867 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9869 2014-02-19 Tom Tromey <tromey@redhat.com>
9871 * target.h (struct target_ops) <to_download_tracepoint>: Add
9873 (target_download_tracepoint): Add argument.
9874 * target.c (update_current_target): Update.
9875 * remote.c (remote_download_tracepoint): Add 'self' argument.
9877 2014-02-19 Tom Tromey <tromey@redhat.com>
9879 * target.h (struct target_ops) <to_trace_init>: Add argument.
9880 (target_trace_init): Add argument.
9881 * target.c (update_current_target): Update.
9882 * remote.c (remote_trace_init): Add 'self' argument.
9884 2014-02-19 Tom Tromey <tromey@redhat.com>
9886 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9887 * target.c (target_fileio_readlink): Add argument.
9888 * remote.c (remote_hostio_readlink): Add 'self' argument.
9889 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9891 2014-02-19 Tom Tromey <tromey@redhat.com>
9893 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9894 * target.c (target_fileio_unlink): Add argument.
9895 * remote.c (remote_hostio_unlink): Add 'self' argument.
9896 (remote_file_delete): Update.
9897 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9899 2014-02-19 Tom Tromey <tromey@redhat.com>
9901 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9902 * target.c (target_fileio_close): Add argument.
9903 * remote.c (remote_hostio_close): Add 'self' argument.
9904 (remote_hostio_close_cleanup): Update.
9905 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9907 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9909 2014-02-19 Tom Tromey <tromey@redhat.com>
9911 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9912 * target.c (target_fileio_pread): Add argument.
9913 * remote.c (remote_hostio_pread): Add 'self' argument.
9914 (remote_bfd_iovec_pread, remote_file_get): Update.
9915 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9917 2014-02-19 Tom Tromey <tromey@redhat.com>
9919 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9920 * target.c (target_fileio_pwrite): Add argument.
9921 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9922 (remote_file_put): Update.
9923 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9925 2014-02-19 Tom Tromey <tromey@redhat.com>
9927 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9928 * target.c (target_fileio_open): Add argument.
9929 * remote.c (remote_hostio_open): Add 'self' argument.
9930 (remote_bfd_iovec_open): Add 'self' argument.
9931 (remote_file_put): Add 'self' argument.
9932 (remote_file_get): Add 'self' argument.
9933 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9935 2014-02-19 Tom Tromey <tromey@redhat.com>
9937 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9939 (target_can_run_breakpoint_commands): Add argument.
9940 * target.c (update_current_target): Update.
9941 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9943 (remote_insert_breakpoint): Add 'self' argument.
9944 (remote_insert_hw_breakpoint): Add 'self' argument.
9945 (remote_can_run_breakpoint_commands): Add 'self' argument.
9947 2014-02-19 Tom Tromey <tromey@redhat.com>
9949 * target.h (struct target_ops)
9950 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9951 (target_supports_evaluation_of_breakpoint_conditions): Add
9953 * target.c (update_current_target): Update.
9954 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9956 (remote_insert_breakpoint): Add 'self' argument.
9957 (remote_insert_hw_breakpoint): Add 'self' argument.
9958 (remote_supports_cond_breakpoints): Add 'self' argument.
9960 2014-02-19 Tom Tromey <tromey@redhat.com>
9962 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9964 (target_supports_string_tracing): Add argument.
9965 * target.c (update_current_target): Update.
9966 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9968 2014-02-19 Tom Tromey <tromey@redhat.com>
9970 * target.h (struct target_ops)
9971 <to_supports_disable_randomization>: Add argument.
9972 * target.c (find_default_supports_disable_randomization): Add
9974 (target_supports_disable_randomization): Add argument.
9975 (find_default_supports_disable_randomization): Add 'self'
9977 * remote.c (extended_remote_supports_disable_randomization): Add
9979 (remote_supports_disable_randomization): Add 'self' argument.
9980 (extended_remote_create_inferior): Update.
9981 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9984 2014-02-19 Tom Tromey <tromey@redhat.com>
9986 * target.h (struct target_ops)
9987 <to_supports_enable_disable_tracepoint>: Add argument.
9988 (target_supports_enable_disable_tracepoint): Add argument.
9989 * target.c (update_current_target): Update.
9990 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9993 2014-02-19 Tom Tromey <tromey@redhat.com>
9995 * target.h (struct target_ops) <to_supports_multi_process>: Add
9997 (target_supports_multi_process): Add argument.
9998 * target.c (update_current_target): Update.
9999 * remote.c (remote_supports_multi_process): Add 'self' argument.
10000 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10002 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10005 2014-02-19 Tom Tromey <tromey@redhat.com>
10007 * target.h (struct target_ops) <to_execution_direction>: Add
10009 (target_execution_direction): Add argument.
10010 * target.c (default_execution_direction): Add 'self' argument.
10011 * record-full.c (record_full_execution_direction): Add 'self'
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10016 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10018 (target_can_execute_reverse): Add argument.
10019 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10020 * record-full.c (record_full_can_execute_reverse): Add 'self'
10022 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10025 2014-02-19 Tom Tromey <tromey@redhat.com>
10027 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10028 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10030 (target_get_ada_task_ptid): Add argument.
10031 * target.c (update_current_target): Update.
10032 (default_get_ada_task_ptid): Add 'self' argument.
10033 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10034 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10035 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10037 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10039 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10041 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10043 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10044 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10047 2014-02-19 Tom Tromey <tromey@redhat.com>
10049 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10050 (target_goto_bookmark): Add argument.
10051 * target.c (dummy_goto_bookmark): Add 'self' argument.
10052 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10054 2014-02-19 Tom Tromey <tromey@redhat.com>
10056 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10057 (target_get_bookmark): Add argument.
10058 * target.c (dummy_get_bookmark): Add 'self' argument.
10059 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10061 2014-02-19 Tom Tromey <tromey@redhat.com>
10063 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10065 (target_make_corefile_notes): Add argument.
10066 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10067 * procfs.c (procfs_make_note_section): Add 'self' argument.
10068 (procfs_make_note_section): Add 'self' argument.
10069 (procfs_make_note_section): Add 'self' argument.
10070 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10072 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10073 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10074 * exec.c (exec_make_note_section): Add 'self' argument.
10075 (exec_make_note_section): Add 'self' argument.
10077 2014-02-19 Tom Tromey <tromey@redhat.com>
10079 * target.h (struct target_ops) <to_find_memory_regions>: Add
10081 (target_find_memory_regions): Add argument.
10082 * target.c (dummy_find_memory_regions): Add 'self' argument.
10083 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10084 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10085 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10086 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10087 * exec. (exec_do_find_memory_regions): New global.
10088 (exec_set_find_memory_regions): Rewrite.
10089 (exec_find_memory_regions): New function.
10090 (init_exec_ops): Use exec_find_memory_regions.
10092 2014-02-19 Tom Tromey <tromey@redhat.com>
10094 * target.h (struct target_ops) <to_supports_non_stop>: Add
10096 * target.c (find_default_supports_non_stop): Add argument.
10097 (target_supports_non_stop): Add argument.
10098 (find_default_supports_non_stop): Add 'self' argument.
10099 * remote.c (remote_supports_non_stop): Add 'self' argument.
10100 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10104 * target.h (struct target_ops) <to_log_command>: Add argument.
10105 (target_log_command): Add argument.
10106 * serial.h (serial_log_command): Add 'self' argument.
10107 * serial.c (serial_log_command): Add 'self' argument.
10109 2014-02-19 Tom Tromey <tromey@redhat.com>
10111 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10112 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10114 (target_pid_to_exec_file): Add argument.
10115 * target.c (debug_to_pid_to_exec_file): Add argument.
10116 (update_current_target): Update.
10117 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10118 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10119 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10120 (linux_handle_extended_wait): Update.
10121 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10122 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10123 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10124 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10126 2014-02-19 Tom Tromey <tromey@redhat.com>
10128 * target.h (struct target_ops) <to_rcmd>: Add argument.
10129 (target_rcmd): Add argument.
10130 * target.c (debug_to_rcmd): Add argument.
10131 (update_current_target, do_monitor_command): Update.
10132 * remote.c (remote_rcmd): Add 'self' argument.
10133 * monitor.c (monitor_rcmd): Add 'self' argument.
10135 2014-02-19 Tom Tromey <tromey@redhat.com>
10137 * windows-nat.c (windows_stop): Add 'self' argument.
10138 * target.h (struct target_ops) <to_stop>: Add argument.
10139 * target.c (target_stop): Add argument.
10140 (debug_to_stop): Add argument.
10141 (update_current_target): Update.
10142 * remote.c (remote_stop): Add 'self' argument.
10143 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10144 (gdbsim_cntrl_c): Update.
10145 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10146 * procfs.c (procfs_stop): Add 'self' argument.
10147 * nto-procfs.c (procfs_stop): Add 'self' argument.
10148 * monitor.c (monitor_stop): Add 'self' argument.
10149 (monitor_open): Update.
10150 * linux-nat.c (linux_nat_stop): Add argument.
10151 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10152 * gnu-nat.c (gnu_stop): Add 'self' argument.
10153 * darwin-nat.c (darwin_stop): Add 'self' argument.
10155 2014-02-19 Tom Tromey <tromey@redhat.com>
10157 * target.h (struct target_ops) <to_thread_name>: Add argument.
10158 * target.c (target_thread_name): Add argument.
10159 (update_current_target): Update.
10160 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10162 2014-02-19 Tom Tromey <tromey@redhat.com>
10164 * target.h (struct target_ops) <to_extra_thread_info>: Add
10166 (target_extra_thread_info): Add argument.
10167 * target.c (update_current_target): Update.
10168 * remote.c (remote_threads_extra_info): Add 'self' argument.
10169 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10171 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10172 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10173 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10175 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10177 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10179 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10182 2014-02-19 Tom Tromey <tromey@redhat.com>
10184 * target.h (struct target_ops) <to_program_signals>: Add argument.
10185 * target.c (target_program_signals): Add argument.
10186 * remote.c (remote_program_signals): Add 'self' argument.
10188 2014-02-19 Tom Tromey <tromey@redhat.com>
10190 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10191 * target.c (target_pass_signals): Add argument.
10192 * remote.c (remote_pass_signals): Add 'self' argument.
10193 (remote_start_remote): Update.
10194 * procfs.c (procfs_pass_signals): Add 'self' argument.
10195 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10196 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10197 (linux_nat_create_inferior, linux_nat_attach): Update.
10199 2014-02-19 Tom Tromey <tromey@redhat.com>
10201 * windows-nat.c (windows_can_run): Add 'self' argument.
10202 * target.h (struct target_ops) <to_can_run>: Add argument.
10203 (target_can_run): Add argument.
10204 * target.c (debug_to_can_run): Add argument.
10205 (update_current_target): Update.
10206 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10207 * inf-child.c (inf_child_can_run): Add 'self' argument.
10208 * go32-nat.c (go32_can_run): Add 'self' argument.
10210 2014-02-19 Tom Tromey <tromey@redhat.com>
10212 * target.h (struct target_ops) <to_has_exited>: Add argument.
10213 (target_has_exited): Add argument.
10214 * target.c (debug_to_has_exited): Add argument.
10215 (update_current_target): Update.
10217 2014-02-19 Tom Tromey <tromey@redhat.com>
10219 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10221 (target_set_syscall_catchpoint): Add argument.
10222 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10224 * target.c (update_current_target): Update.
10226 2014-02-19 Tom Tromey <tromey@redhat.com>
10228 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10230 (target_remove_exec_catchpoint): Add argument.
10231 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10232 (update_current_target): Update.
10233 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10236 2014-02-19 Tom Tromey <tromey@redhat.com>
10238 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10240 (target_insert_exec_catchpoint): Add argument.
10241 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10242 (update_current_target): Update.
10243 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10246 2014-02-19 Tom Tromey <tromey@redhat.com>
10248 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10250 (target_remove_vfork_catchpoint): Add argument.
10251 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10252 (update_current_target): Update.
10253 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10256 2014-02-19 Tom Tromey <tromey@redhat.com>
10258 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10260 (target_insert_vfork_catchpoint): Add argument.
10261 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10262 (update_current_target): Update.
10263 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10266 2014-02-19 Tom Tromey <tromey@redhat.com>
10268 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10270 (target_remove_fork_catchpoint): Add argument.
10271 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10272 (update_current_target): Update.
10273 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10276 2014-02-19 Tom Tromey <tromey@redhat.com>
10278 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10280 (target_insert_fork_catchpoint): Add argument.
10281 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10282 (update_current_target): Update.
10283 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10286 2014-02-19 Tom Tromey <tromey@redhat.com>
10288 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10290 (target_post_startup_inferior): Add argument.
10291 * target.c (debug_to_post_startup_inferior): Add argument.
10292 (update_current_target): Update.
10293 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10295 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10297 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10299 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10301 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10303 (super_post_startup_inferior): Likewise.
10304 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10306 (super_post_startup_inferior): Likewise.
10307 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10308 Add 'self' argument.
10309 (super_post_startup_inferior): Likewise.
10311 2014-02-19 Tom Tromey <tromey@redhat.com>
10313 * target.h (struct target_ops) <to_load>: Add argument.
10314 * target.c (target_load): Add argument.
10315 (debug_to_load): Add argument.
10316 (update_current_target): Update.
10317 * remote.c (remote_load): Add 'self' argument.
10318 * remote-sim.c (gdbsim_load): Add 'self' argument.
10319 * remote-mips.c (mips_load): Add 'self' argument.
10320 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10321 * monitor.c (monitor_load): Add 'self' argument.
10322 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10324 2014-02-19 Tom Tromey <tromey@redhat.com>
10326 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10327 (target_terminal_info): Add argument.
10328 * target.c (debug_to_terminal_info): Add argument.
10329 (default_terminal_info): Likewise.
10330 * inflow.c (child_terminal_info): Add 'self' argument.
10331 * inferior.h (child_terminal_info): Add 'self' argument.
10332 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10334 2014-02-19 Tom Tromey <tromey@redhat.com>
10336 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10338 (target_terminal_save_ours): Add argument.
10339 * target.c (debug_to_terminal_save_ours): Add argument.
10340 (update_current_target): Update.
10341 * inflow.c (terminal_save_ours): Add 'self' argument.
10342 * inferior.h (terminal_save_ours): Add 'self' argument.
10344 2014-02-19 Tom Tromey <tromey@redhat.com>
10346 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10347 (target_terminal_ours): Add argument.
10348 * target.c (debug_to_terminal_ours): Add argument.
10349 (update_current_target): Update.
10350 * remote.c (remote_terminal_ours): Add 'self' argument.
10351 (remote_close): Update.
10352 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10353 * inflow.c (terminal_ours): Add 'self' argument.
10354 * inferior.h (terminal_ours): Add 'self' argument.
10355 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10357 2014-02-19 Pedro Alves <palves@redhat.com>
10358 Tom Tromey <tromey@redhat.com>
10360 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10362 (target_terminal_ours_for_output): Add argument.
10363 * target.c (debug_to_terminal_ours_for_output): Add argument.
10364 (update_current_target): Update.
10365 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10366 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10367 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10369 2014-02-19 Tom Tromey <tromey@redhat.com>
10371 * target.h (struct target_ops) <to_terminal_inferior>: Add
10373 * target.c (target_terminal_inferior): Add argument.
10374 (update_current_target): Update.
10375 * remote.c (remote_terminal_inferior): Add 'self' argument.
10376 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10377 * inflow.c (terminal_inferior): Add 'self' argument.
10378 * inferior.h (terminal_inferior): Add 'self' argument.
10379 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10380 (go32_terminal_inferior): Add 'self' argument.
10382 2014-02-19 Tom Tromey <tromey@redhat.com>
10384 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10385 (target_terminal_init): Add argument.
10386 * target.c (debug_to_terminal_init): Add argument.
10387 (update_current_target): Update.
10388 * inflow.c (terminal_init_inferior): Add 'self' argument.
10389 * inferior.h (terminal_init_inferior): Add 'self' argument.
10390 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10391 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10393 2014-02-19 Tom Tromey <tromey@redhat.com>
10395 * target.h (struct target_ops)
10396 <to_can_accel_watchpoint_condition>: Add argument.
10397 (target_can_accel_watchpoint_condition): Add argument.
10398 * target.c (debug_to_can_accel_watchpoint_condition): Add
10400 (update_current_target): Update.
10401 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10404 2014-02-19 Tom Tromey <tromey@redhat.com>
10406 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10408 (target_region_ok_for_hw_watchpoint): Add argument.
10409 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10410 (default_region_ok_for_hw_watchpoint): Add argument.
10411 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10412 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10414 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10416 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10418 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10420 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10422 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10424 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10425 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10427 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10428 Add 'self' argument.
10430 2014-02-19 Tom Tromey <tromey@redhat.com>
10432 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10434 (target_insert_watchpoint): Add argument.
10435 * target.c (debug_to_insert_watchpoint): Add argument.
10436 (update_current_target): Update.
10437 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10438 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10439 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10440 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10441 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10442 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10444 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10445 (procfs_insert_hw_watchpoint): Add 'self' argument.
10446 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10448 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10450 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10452 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10453 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10455 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10458 2014-02-19 Tom Tromey <tromey@redhat.com>
10460 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10462 (target_remove_watchpoint): Add argument.
10463 * target.c (debug_to_remove_watchpoint): Add argument.
10464 (update_current_target): Update.
10465 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10466 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10467 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10468 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10469 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10470 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10472 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10473 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10475 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10477 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10479 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10480 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10482 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10485 2014-02-19 Tom Tromey <tromey@redhat.com>
10487 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10489 (target_remove_hw_breakpoint): Add argument.
10490 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10491 (update_current_target): Update.
10492 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10493 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10495 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10496 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10498 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10501 2014-02-19 Tom Tromey <tromey@redhat.com>
10503 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10505 (target_insert_hw_breakpoint): Add argument.
10506 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10507 (update_current_target): Update.
10508 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10509 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10511 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10512 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10513 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10515 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10518 2014-02-19 Tom Tromey <tromey@redhat.com>
10520 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10522 (target_can_use_hardware_watchpoint): Add argument.
10523 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10524 (update_current_target): Update.
10525 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10527 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10529 * remote.c (remote_check_watch_resources): Add 'self' argument.
10530 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10531 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10533 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10534 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10536 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10538 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10540 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10542 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10544 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10546 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10547 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10549 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10552 2014-02-19 Tom Tromey <tromey@redhat.com>
10554 * target.h (struct target_ops) <to_post_attach>: Add argument.
10555 (target_post_attach): Add argument.
10556 * target.c (debug_to_post_attach): Add argument.
10557 (update_current_target): Update.
10558 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10559 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10560 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10561 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10562 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10564 2014-02-19 Tom Tromey <tromey@redhat.com>
10566 * windows-nat.c (windows_close): Add 'self' argument.
10567 * tracepoint.c (tfile_close): Add 'self' argument.
10568 * target.h (struct target_ops) <to_close>: Add argument.
10569 * target.c (target_close): Add argument.
10570 (update_current_target): Update.
10571 * remote.c (remote_close): Add 'self' argument.
10572 * remote-sim.c (gdbsim_close): Add 'self' argument.
10573 * remote-mips.c (mips_close): Add 'self' argument.
10574 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10575 * record-full.c (record_full_close): Add 'self' argument.
10576 * record-btrace.c (record_btrace_close): Add 'self' argument.
10577 * monitor.h (monitor_close): Add 'self' argument.
10578 * monitor.c (monitor_close): Add 'self' argument.
10579 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10580 * linux-nat.c (linux_nat_close): Add argument.
10581 * go32-nat.c (go32_close): Add 'self' argument.
10582 * exec.c (exec_close_1): Add 'self' argument.
10583 * ctf.c (ctf_close): Add 'self' argument.
10584 * corelow.c (core_close): Add 'self' argument.
10585 (core_close_cleanup): Update.
10586 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10587 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10589 2014-02-19 Tom Tromey <tromey@redhat.com>
10591 * remote.c (remote_load): New function.
10592 (init_remote_ops): Use it.
10594 2014-02-19 Tom Tromey <tromey@redhat.com>
10596 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10598 * common/linux-btrace.h (linux_supports_btrace): Update.
10599 * remote.c (remote_supports_btrace): Add "self" argument.
10600 * target-delegates.c: Rebuild.
10601 * target.c (target_supports_btrace): Remove.
10602 * target.h (struct target_ops) <to_supports_btrace>: Add
10603 target_ops argument.
10604 (target_supports_btrace): New define.
10606 2014-02-19 Tom Tromey <tromey@redhat.com>
10608 * record-full.c (record_full_beneath_to_resume_ops)
10609 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10610 (record_full_beneath_to_wait)
10611 (record_full_beneath_to_store_registers_ops)
10612 (record_full_beneath_to_store_registers)
10613 (record_full_beneath_to_xfer_partial_ops)
10614 (record_full_beneath_to_xfer_partial)
10615 (record_full_beneath_to_insert_breakpoint_ops)
10616 (record_full_beneath_to_insert_breakpoint)
10617 (record_full_beneath_to_remove_breakpoint_ops)
10618 (record_full_beneath_to_remove_breakpoint)
10619 (record_full_beneath_to_stopped_by_watchpoint)
10620 (record_full_beneath_to_stopped_data_address)
10621 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10622 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10623 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10624 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10625 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10626 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10627 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10628 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10629 (record_full_resume, record_full_wait_1)
10630 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10631 (record_full_store_registers, record_full_xfer_partial)
10632 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10633 (record_full_async, record_full_core_xfer_partial): Use target
10635 * target-delegates.c: Rebuild.
10636 * target.c (current_xfer_partial): Remove.
10637 (update_current_target): Do not INHERIT or de_fault
10638 to_insert_breakpoint, to_remove_breakpoint,
10639 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10640 to_is_async_p, to_async. Do not set to_xfer_partial field.
10641 (default_xfer_partial): Simplify.
10642 (current_xfer_partial): Remove.
10643 (target_wait, target_resume): Simplify.
10644 (find_default_can_async_p, find_default_is_async_p): Update.
10645 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10646 to_xfer_partial, to_stopped_by_watchpoint,
10647 to_stopped_data_address.
10648 (target_store_registers): Simplify.
10649 (forward_target_remove_breakpoint)
10650 (forward_target_insert_breakpoint): Remove.
10651 (target_remove_breakpoint, target_insert_breakpoint)
10652 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10653 * target.h (struct target_ops) <to_resume, to_wait,
10654 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10655 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10656 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10658 (forward_target_remove_breakpoint)
10659 (forward_target_insert_breakpoint): Remove.
10660 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10662 (record_btrace_insert_breakpoint): Delegate directly.
10664 2014-02-19 Tom Tromey <tromey@redhat.com>
10667 * target-delegates.c: New file.
10668 * target.c: Include target-delegates.c.
10669 (init_dummy_target): Call install_dummy_methods.
10670 (complete_target_initialization): Call install_delegators.
10671 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10672 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10673 * make-target-delegates: New file.
10675 2014-02-19 Tom Tromey <tromey@redhat.com>
10677 * record.c (find_record_target): Use find_target_at.
10678 * target.c (find_target_at): New function.
10679 * target.h (find_target_at): Declare.
10681 2014-02-19 Tom Tromey <tromey@redhat.com>
10683 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10684 Add 'ops' argument.
10685 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10687 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10688 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10690 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10692 * linux-nat.c (save_sigtrap): Update.
10693 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10694 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10695 (linux_nat_close): Update.
10696 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10698 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10700 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10701 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10702 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10703 (tmp_to_async): Add 'ops' argument.
10704 (record_full_stopped_by_watchpoint, record_full_async)
10705 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10707 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10708 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10709 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10710 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10711 (remote_is_async_p, remote_async): Add 'ops' argument.
10712 (remote_stopped_data_address): Update.
10713 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10714 * target.c (update_current_target)
10715 (find_default_can_async_p, find_default_is_async_p): Update.
10716 (init_dummy_target): Update.
10717 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10718 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10719 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10720 (target_can_async_p, target_is_async_p, target_async)
10721 (target_stopped_by_watchpoint): Update.
10723 2014-02-19 Yao Qi <yao@codesourcery.com>
10726 * gdbarch.sh: Remove startup_gdbarch.
10727 * gdbarch.c: Regenerated.
10728 * gdbarch.h: Likewise.
10730 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10732 * rl78-tdep.c (rl78_g10_register_name): New function.
10733 (rl78_return_value): Add g10 support.
10734 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10737 2014-02-17 Doug Evans <xdje42@gmail.com>
10739 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10740 (SUBDIR_GUILE_SRCS): Ditto.
10741 (scm-gsmob.o): Ditto.
10743 2014-02-17 Yao Qi <yao@codesourcery.com>
10745 * gnu-nat.c (ILL_RPC): Declare defined function.
10747 2014-02-17 Yao Qi <yao@codesourcery.com>
10749 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10750 mach_msg_type_number_t.
10751 (gnu_write_inferior): Likewise.
10753 2014-02-17 Yao Qi <yao@codesourcery.com>
10755 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10757 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10758 (inf_validate_procs, inf_signal): Likewise.
10759 (S_exception_raise_request): Likewise.
10760 (do_mach_notify_dead_name): Likewise.
10761 (steal_exc_port): Likewise.
10762 (gnu_read_inferior): Change 'copy_count''s type to
10763 mach_msg_type_number_t.
10764 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10767 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10769 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10770 flag. Adjust all users; in particular...
10771 (gnu_wait): ..., don't decrement its value in here...
10772 (gnu_create_inferior): ..., and instead set the flag in here,
10773 around the startup_inferior call, and call that one with
10774 START_INFERIOR_TRAPS_EXPECTED.
10776 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10777 (ILL_RPC): ... new macro.
10778 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10779 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10780 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10781 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10782 functions with ILL_RPC macro.
10783 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10784 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10785 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10786 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10787 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10788 (S_proc_getlogin_reply, S_proc_getsid_reply)
10789 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10790 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10791 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10792 (S_proc_getnports_reply, S_proc_is_important_reply)
10793 (S_proc_get_code_reply): New stub functions, generated with
10796 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10797 collected the type check structures.
10799 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10801 2014-02-14 Doug Evans <dje@google.com>
10803 * target.c (target_write_partial): Fix result type.
10805 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10807 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10808 the proper offsets to access fpregset_t.
10810 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10812 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10813 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10814 * h8300-tdep.c (setmachinelist): Remove global.
10815 * hppa-tdep.c (hppa_sigtramp): Remove global.
10816 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10817 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10818 * ravenscar-thread.c (update_target_observer): Remove global.
10819 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10821 2014-02-12 Tom Tromey <tromey@redhat.com>
10823 * common/rsp-low.c: Update comments.
10824 * common/rsp-low.h: Update comments.
10826 2014-02-12 Tom Tromey <tromey@redhat.com>
10828 * common/rsp-low.c (convert_ascii_to_int): Remove.
10829 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10831 2014-02-12 Tom Tromey <tromey@redhat.com>
10833 * common/rsp-low.h (unhexify): Don't declare.
10834 * common/rsp-low.c (unhexify): Remove.
10836 2014-02-12 Tom Tromey <tromey@redhat.com>
10838 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10839 * common/rsp-low.c (convert_int_to_ascii): Remove.
10841 2014-02-12 Tom Tromey <tromey@redhat.com>
10843 * common/rsp-low.h (hexify): Don't declare.
10844 * common/rsp-low.c (hexify): Remove.
10846 2014-02-12 Tom Tromey <tromey@redhat.com>
10848 * common/rsp-low.c (hexify): Never take strlen of argument.
10850 2014-02-12 Tom Tromey <tromey@redhat.com>
10852 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10853 * remote.c (extended_remote_run, remote_rcmd)
10854 (remote_download_trace_state_variable, remote_save_trace_data)
10855 (remote_set_trace_notes): Update.
10856 * tracepoint.c (encode_source_string, tfile_write_status)
10857 (tfile_write_uploaded_tsv): Update.
10859 2014-02-12 Tom Tromey <tromey@redhat.com>
10861 * tracepoint.c: Include rsp-low.h.
10862 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10863 * remote.c: Include rsp-low.h.
10864 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10865 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10866 (remote_unescape_input): Move to common/rsp-low.c.
10867 * common/rsp-low.h: New file.
10868 * common/rsp-low.c: New file.
10869 * Makefile.in (SFILES): Add common/rsp-low.c.
10870 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10871 (COMMON_OBS): Add rsp-low.o.
10872 (rsp-low.o): New target.
10874 2014-02-12 Tom Tromey <tromey@redhat.com>
10876 * utils.h: Include print-utils.h.
10877 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10878 (int_string, core_addr_to_string, core_addr_to_string_nz)
10879 (hex_string, hex_string_custom): Don't declare.
10880 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10881 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10882 (hex_string_custom, int_string, core_addr_to_string)
10883 (core_addr_to_string_nz, host_address_to_string): Move to
10884 common/print-utils.c.
10885 * common/print-utils.h: New file.
10886 * common/print-utils.c: New file
10887 * Makefile.in (SFILES): Add common/print-utils.c.
10888 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10889 (COMMON_OBS): Add print-utils.o.
10890 (print-utils.o): New target.
10892 2014-02-12 Tom Tromey <tromey@redhat.com>
10894 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10896 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10898 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10900 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10902 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10903 if a PT_IO ptrace request returns sucessfully but indicates that 0
10904 bytes were transferred.
10906 2014-02-12 Pedro Alves <palves@redhat.com>
10907 Kevin Buettner <kevinb@redhat.com>
10909 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10910 TYPE_INSTANCE_FLAG_CODE_SPACE.
10912 2014-02-12 Pedro Alves <palves@redhat.com>
10914 * h8300-tdep.c (pseudo_from_raw_register)
10915 (raw_from_pseudo_register): New functions.
10916 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10919 2014-02-12 Pedro Alves <palves@redhat.com>
10921 * h8300-tdep.c (h8300_register_sim_regno): New function.
10922 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10923 gdbarch_register_sim_regno hook.
10925 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10927 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10929 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10931 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10933 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10935 * obsd-tdep.h (obsd_init_abi): New prototype.
10936 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10937 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10938 (obsd_init_abi): New functions.
10939 * i386obsd-tdep.c: Include "obsd-tdep.h".
10940 (i386obsd_init_abi): Call obsd_init_abi.
10941 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10942 (amd64obsd_init_abi): Call obsd_init_abi.
10943 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10944 obsd-tdep.c to gdb_target_obs.
10946 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10948 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10949 double float arguments to 16-byte in the argument slots.
10951 2014-02-11 Doug Evans <xdje42@gmail.com>
10953 * configure.ac: Don't crash if pkg-config is not found and guile
10954 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10956 * configure: Regenerate.
10958 2014-02-11 Yao Qi <yao@codesourcery.com>
10960 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10961 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10962 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10963 * gnu-nat.c (gnu_xfer_memory): Likewise.
10964 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10965 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10966 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10967 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10969 2014-02-11 Yao Qi <yao@codesourcery.com>
10971 * target.h (enum target_xfer_error): Rename to ...
10972 (enum target_xfer_status): ... it. New. All users updated.
10973 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10975 (TARGET_XFER_STATUS_ERROR_P): New macro.
10976 (target_xfer_error_to_string): Remove declaration.
10977 (target_xfer_status_to_string): Declare.
10978 (target_xfer_partial_ftype): Adjust it.
10979 (struct target_ops) <to_xfer_partial>: Return
10980 target_xfer_status. Add argument xfered_len. Update
10982 * target.c (target_xfer_error_to_string): Rename to ...
10983 (target_xfer_status_to_string): ... it. New. All callers
10985 (target_read_live_memory): Likewise. Call target_xfer_partial
10986 instead of target_read.
10987 (memory_xfer_live_readonly_partial): Return
10988 target_xfer_status. Add argument xfered_len.
10989 (raw_memory_xfer_partial): Likewise.
10990 (memory_xfer_partial_1): Likewise.
10991 (memory_xfer_partial): Likewise.
10992 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10993 properly. Update debug message.
10994 (default_xfer_partial, current_xfer_partial): Likewise.
10995 (target_write_partial): Likewise.
10996 (target_read_partial): Likewise. All callers updated.
10997 (read_whatever_is_readable): Likewise.
10998 (target_write_with_progress): Likewise.
10999 (target_read_alloc_1): Likewise.
11001 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11002 * auxv.c (procfs_xfer_auxv): Likewise.
11003 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11004 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11005 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11006 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11007 * corefile.c (read_memory): Adjust.
11008 * corelow.c (core_xfer_partial): Likewise.
11009 * ctf.c (ctf_xfer_partial): Likewise.
11010 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11012 (darwin_xfer_partial): Likewise.
11013 * exec.c (section_table_xfer_memory_partial): Likewise. All
11015 (exec_xfer_partial): Likewise.
11016 * exec.h (section_table_xfer_memory_partial): Update
11018 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11020 (gnu_xfer_partial): Likewise.
11021 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11022 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11023 (ia64_hpux_xfer_solib_got): Likewise.
11024 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11025 type of 'partial_len' to ULONGEST.
11026 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11027 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11028 (linux_nat_xfer_partial): Likewise.
11029 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11030 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11031 * monitor.c (monitor_xfer_memory): Likewise.
11032 (monitor_xfer_partial): Likewise.
11033 * procfs.c (procfs_xfer_partial): Likewise.
11034 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11035 * record-full.c (record_full_xfer_partial): Likewise.
11036 (record_full_core_xfer_partial): Likewise.
11037 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11038 (gdbsim_xfer_partial): Likewise.
11039 * remote.c (remote_write_bytes_aux): Likewise. All callers
11041 (remote_write_bytes, remote_read_bytes): Likewise. All
11043 (remote_flash_erase): Likewise. All callers updated.
11044 (remote_write_qxfer): Likewise. All callers updated.
11045 (remote_read_qxfer): Likewise. All callers updated.
11046 (remote_xfer_partial): Likewise.
11047 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11048 (rs6000_xfer_shared_libraries): Likewise.
11049 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11050 (sol_thread_xfer_partial): Likewise.
11051 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11052 (sparc_xfer_partial): Likewise.
11053 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11055 (spu_xfer_partial): Likewise.
11056 * spu-multiarch.c (spu_xfer_partial): Likewise.
11057 * tracepoint.c (tfile_xfer_partial): Likewise.
11058 * windows-nat.c (windows_xfer_memory): Likewise.
11059 (windows_xfer_shared_libraries): Likewise.
11060 (windows_xfer_partial): Likewise.
11061 * valprint.c: Replace 'target_xfer_error' with
11062 'target_xfer_status' in comments.
11064 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11066 Checked in by Joel Brobecker <brobecker@adacore.com>.
11067 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11069 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11071 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11072 function parameters.
11074 2014-02-10 Will Newton <will.newton@linaro.org>
11076 * elfread.c (elf_rel_plt_read): Look for a .got section if
11077 looking up .got.plt fails.
11078 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11079 on address passed to elf_gnu_ifunc_record_cache.
11080 (elf_gnu_ifunc_resolve_addr): Likewise.
11081 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11083 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11085 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11086 (X_RETTURN): New macro.
11087 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11089 * sparc64-tdep.c (sparc64_init_abi): Hook
11090 sparc_in_function_epilogue_p.
11092 2014-02-10 Gary Benson <gbenson@redhat.com>
11094 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11095 Rename name_matcher to symbol_matcher.
11097 2014-02-10 Gary Benson <gbenson@redhat.com>
11099 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11100 Use expand_symtabs_file_matcher_ftype and
11101 expand_symtabs_symbol_matcher_ftype.
11103 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11105 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11106 (struct ada_symbol_cache): New.
11107 (ada_free_symbol_cache): Forward declare.
11108 (struct ada_pspace_data): New.
11109 (ada_pspace_data_handle): New static global.
11110 (get_ada_pspace_data, ada_pspace_data_cleanup)
11111 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11112 (cache_space, cache): Delete, now folded inside struct
11114 (ada_get_symbol_cache): New function.
11115 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11117 (_initialize_ada_language): Remove initialization of cache_space.
11118 Move call to observer_attach_inferior_exit up, grouping it
11119 with the other observer registrations inside this function.
11120 Rename command to be more general. Add call to
11121 register_program_space_data_with_cleanup.
11123 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11125 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11126 ada_new_objfile_observer.
11127 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11128 (_initialize_tasks): Update uses of ada_new_objfile_observer
11129 and ada_tasks_normal_stop_observer.
11131 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11133 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11134 returned by the 'Length attribute to integer.
11136 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11138 * ada-lang.c (_initialize_ada_language): Initialize
11139 cache_space obstack.
11141 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11143 * ada-lang.c (HASH_SIZE): New macro.
11144 (struct cache_entry): New type.
11145 (cache_space, cache): New static globals.
11146 (ada_clear_symbol_cache, find_entry): New functions.
11147 (lookup_cached_symbol, cache_symbol): Implement.
11148 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11149 (_initialize_ada_language): Attach ada_new_objfile_observer
11150 and ada_free_objfile_observer.
11152 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11154 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11155 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11156 struct block * parameter.
11157 (ada_lookup_symbol_list_worker): Constify local variable "block".
11158 Remove cast which is no longer necessary.
11160 2014-02-10 Doug Evans <xdje42@gmail.com>
11162 Add Guile as an extension language.
11163 * NEWS: Mention Guile scripting.
11164 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11165 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11166 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11167 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11168 (CLIBS): Add GUILE_LIBS.
11169 (install-guile): New rule.
11170 (guile.o): New rule.
11171 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11172 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11173 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11174 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11175 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11176 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11177 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11178 * configure.ac: New option --with-guile.
11179 * configure: Regenerate.
11180 * config.in: Regenerate.
11181 * auto-load.c: Remove #include "python/python.h". Add #include
11182 "gdb/section-scripts.h".
11183 (source_section_scripts): Handle Guile scripts.
11184 (_initialize_auto_load): Add name of Guile objfile script to
11185 scripts-directory help text.
11186 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11187 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11188 (struct breakpoint): New member scm_bp_object.
11189 * defs.h (enum command_control_type): New value guile_control.
11190 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11192 (show_user): Update comment.
11193 (_initialize_cli_cmds): Update help text for "show user". Update help
11194 text for max-user-call-depth.
11195 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11197 (multi_line_command_p): Add guile_control.
11198 (print_command_lines): Handle guile_control.
11199 (execute_control_command, recurse_read_control_structure): Ditto.
11200 (process_next_line): Recognize "guile" commands.
11201 * disasm.c (gdb_disassemble_info): Make non-static.
11202 * disasm.h: #include "dis-asm.h".
11203 (struct gdbarch): Add forward decl.
11204 (gdb_disassemble_info): Declare.
11205 * extension.c: #include "guile/guile.h".
11206 (extension_languages): Add guile.
11207 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11208 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11209 * gdbtypes.c (get_unsigned_type_max): New function.
11210 (get_signed_type_minmax): New function.
11211 * gdbtypes.h (get_unsigned_type_max): Declare.
11212 (get_signed_type_minmax): Declare.
11213 * guile/README: New file.
11214 * guile/guile-internal.h: New file.
11215 * guile/guile.c: New file.
11216 * guile/guile.h: New file.
11217 * guile/scm-arch.c: New file.
11218 * guile/scm-auto-load.c: New file.
11219 * guile/scm-block.c: New file.
11220 * guile/scm-breakpoint.c: New file.
11221 * guile/scm-disasm.c: New file.
11222 * guile/scm-exception.c: New file.
11223 * guile/scm-frame.c: New file.
11224 * guile/scm-gsmob.c: New file.
11225 * guile/scm-iterator.c: New file.
11226 * guile/scm-lazy-string.c: New file.
11227 * guile/scm-math.c: New file.
11228 * guile/scm-objfile.c: New file.
11229 * guile/scm-ports.c: New file.
11230 * guile/scm-pretty-print.c: New file.
11231 * guile/scm-safe-call.c: New file.
11232 * guile/scm-string.c: New file.
11233 * guile/scm-symbol.c: New file.
11234 * guile/scm-symtab.c: New file.
11235 * guile/scm-type.c: New file.
11236 * guile/scm-utils.c: New file.
11237 * guile/scm-value.c: New file.
11238 * guile/lib/gdb.scm: New file.
11239 * guile/lib/gdb/boot.scm: New file.
11240 * guile/lib/gdb/experimental.scm: New file.
11241 * guile/lib/gdb/init.scm: New file.
11242 * guile/lib/gdb/iterator.scm: New file.
11243 * guile/lib/gdb/printing.scm: New file.
11244 * guile/lib/gdb/types.scm: New file.
11245 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11246 (VPATH): Add $(GUILE_SRCDIR).
11247 (GUILE_DIR): New variable.
11248 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11249 (all): Add stamp-guile dependency.
11250 (stamp-guile): New rule.
11251 (clean-guile, install-guile, uninstall-guile): New rules.
11252 (install-only): Add install-guile dependency.
11253 (uninstall): Add uninstall-guile dependency.
11254 (clean): Add clean-guile dependency.
11256 2014-02-09 Doug Evans <xdje42@gmail.com>
11258 Revert this patch (which I approved, mea culpa).
11260 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11262 * Makefile.in (all-lib): Remove.
11263 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11265 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11267 Fix Python stack corruption.
11268 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11271 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11273 * Makefile.in (all-lib): Remove.
11274 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11276 2014-02-07 Doug Evans <dje@google.com>
11278 * extension-priv.h (extension_language_script_ops): Add comment.
11279 (extension_language_ops): Add comment.
11280 (active_ext_lang_state): Fix typo in comment.
11282 2014-02-07 Pedro Alves <palves@redhat.com>
11284 PR breakpoints/16292
11285 * infrun.c (handle_signal_stop) <signal arrives while stepping
11286 over a breakpoint>: Switch back to the stepping thread.
11288 2014-02-07 Yao Qi <yao@codesourcery.com>
11290 * target.c (target_xfer_partial): Return zero if LEN is zero.
11292 2014-02-07 Yao Qi <yao@codesourcery.com>
11294 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11295 (ld_so_xfer_auxv): Likewise.
11296 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11297 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11298 * corelow.c (core_xfer_partial): Likewise.
11299 * ctf.c (ctf_xfer_partial): Likewise.
11300 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11301 (darwin_xfer_partial): Likewise.
11302 * exec.c (exec_xfer_partial): Likewise.
11303 * gnu-nat.c (gnu_xfer_partial): Likewise.
11304 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11305 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11306 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11307 * linux-nat.c (linux_xfer_siginfo): Likewise.
11308 (linux_proc_xfer_spu): Likewise.
11309 * procfs.c (procfs_xfer_partial): Likewise.
11310 * record-full.c (record_full_xfer_partial): Likewise.
11311 (record_full_core_xfer_partial): Likewise.
11312 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11313 * remote.c (remote_write_qxfer): Likewise.
11314 (remote_write_qxfer, remote_read_qxfer): Likewise.
11315 (remote_xfer_partial): Likewise.
11316 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11317 (rs6000_xfer_shared_libraries): Likewise.
11318 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11319 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11320 (spu_xfer_partial): Likewise.
11321 * target.c (memory_xfer_partial_1): Likewise.
11322 * tracepoint.c (tfile_xfer_partial): Likewise.
11323 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11324 (windows_xfer_partial): Likewise.
11326 2014-02-07 Yao Qi <yao@codesourcery.com>
11328 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11330 (core_xfer_shared_libraries_aix): Likewise.
11331 * gdbarch.c, gdbarch.h: Regenerated.
11332 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11333 ULONGEST. Change 'len_avail' type to ULONGEST.
11334 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11335 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11337 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11339 2014-02-07 Yao Qi <yao@codesourcery.com>
11341 * corefile.c (memory_error): Get 'exception' from ERR and pass
11342 'exception' to throw_error.
11344 2014-02-06 Doug Evans <xdje42@gmail.com>
11346 * configure.ac (libpython checking): Remove all but python.o from
11347 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11348 * configure: Regenerate.
11350 * Makefile.in (SFILES): Add extension.c.
11351 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11352 (COMMON_OBS): Add extension.o.
11353 * extension.h: New file.
11354 * extension-priv.h: New file.
11355 * extension.c: New file.
11357 * python/python-internal.h: #include "extension.h".
11358 (gdbpy_auto_load_enabled): Declare.
11359 (gdbpy_apply_val_pretty_printer): Declare.
11360 (gdbpy_apply_frame_filter): Declare.
11361 (gdbpy_preserve_values): Declare.
11362 (gdbpy_breakpoint_cond_says_stop): Declare.
11363 (gdbpy_breakpoint_has_cond): Declare.
11364 (void source_python_script_for_objfile): Delete.
11365 * python/python.c: #include "extension-priv.h".
11366 Delete inclusion of "observer.h".
11367 (extension_language_python): Moved here and renamed from
11368 script_language_python in py-auto-load.c.
11369 Redefined to be of type extension_language_defn.
11370 (python_extension_script_ops): New global.
11371 (python_extension_ops): New global.
11372 (struct python_env): New member previous_active.
11373 (restore_python_env): Call restore_active_ext_lang.
11374 (ensure_python_env): Call set_active_ext_lang.
11375 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11377 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11379 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11381 (gdbpy_eval_from_control_command): Renamed from
11382 eval_python_from_control_command, made static. New arg extlang.
11383 (gdbpy_source_script) Renamed from source_python_script, made static.
11385 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11386 result to int. New arg extlang.
11387 (gdbpy_source_objfile_script): Renamed from
11388 source_python_script_for_objfile, made static. New arg extlang.
11389 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11390 static. New args extlang, extlang_printers. Change result type to
11392 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11393 static. New arg extlang. Rename arg printers to extlang_printers
11394 and change type to ext_lang_type_printers *.
11395 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11396 static. Replace argument arg with extlang, extlang_printers.
11397 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11398 (!HAVE_PYTHON, source_python_script): Delete.
11399 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11400 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11401 (!HAVE_PYTHON, start_type_printers): Delete.
11402 (!HAVE_PYTHON, apply_type_printers): Delete.
11403 (!HAVE_PYTHON, free_type_printers): Delete.
11404 (_initialize_python): Delete call to observer_attach_before_prompt.
11405 (finalize_python): Set/restore active extension language.
11406 (gdbpy_finish_initialization) Renamed from
11407 finish_python_initialization, made static. New arg extlang.
11408 (gdbpy_initialized): New function.
11409 * python/python.h: #include "extension.h". Delete #include
11410 "value.h", "mi/mi-cmds.h".
11411 (extension_language_python): Declare.
11412 (GDBPY_AUTO_FILE_NAME): Delete.
11413 (enum py_bt_status): Moved to extension.h and renamed to
11414 ext_lang_bt_status.
11415 (enum frame_filter_flags): Moved to extension.h.
11416 (enum py_frame_args): Moved to extension.h and renamed to
11417 ext_lang_frame_args.
11418 (finish_python_initialization): Delete.
11419 (eval_python_from_control_command): Delete.
11420 (source_python_script): Delete.
11421 (apply_val_pretty_printer): Delete.
11422 (apply_frame_filter): Delete.
11423 (preserve_python_values): Delete.
11424 (gdbpy_script_language_defn): Delete.
11425 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11426 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11428 * auto-load.c: #include "extension.h".
11429 (GDB_AUTO_FILE_NAME): Delete.
11430 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11431 (script_language_gdb): Delete, moved to extension.c and renamed to
11432 extension_language_gdb.
11433 (source_gdb_script_for_objfile): Delete.
11434 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11435 (loaded_script): Change type of language member to
11436 struct extension_language_defn *.
11437 (init_loaded_scripts_info): Initialize
11438 unsupported_script_warning_printed.
11439 (maybe_add_script): Make static. Change type of language arg to
11440 struct extension_language_defn *.
11441 (clear_section_scripts): Reset unsupported_script_warning_printed.
11442 (auto_load_objfile_script_1): Rewrite to use extension language API.
11443 (auto_load_objfile_script): Make public. Remove support-compiled-in
11444 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11445 (source_section_scripts): Rewrite to use extension language API.
11446 (load_auto_scripts_for_objfile): Rewrite to use
11447 auto_load_scripts_for_objfile.
11448 (collect_matching_scripts_data): Change type of language member to
11449 struct extension_language_defn *.
11450 (auto_load_info_scripts): Change type of language arg to
11451 struct extension_language_defn *.
11452 (unsupported_script_warning_print): New function.
11453 (script_not_found_warning_print): Make static.
11454 (_initialize_auto_load): Rewrite construction of scripts-directory
11456 * auto-load.h (struct objfile): Add forward decl.
11457 (struct script_language): Delete.
11458 (struct auto_load_pspace_info): Add forward decl.
11459 (struct extension_language_defn): Add forward decl.
11460 (maybe_add_script): Delete.
11461 (auto_load_objfile_script): Declare.
11462 (script_not_found_warning_print): Delete.
11463 (auto_load_info_scripts): Update prototype.
11464 (auto_load_gdb_scripts_enabled): Declare.
11465 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11466 auto_load_python_scripts_enabled and made public.
11467 (script_language_python): Delete, moved to python.c.
11468 (gdbpy_script_language_defn): Delete.
11469 (info_auto_load_python_scripts): Update to use
11470 extension_language_python.
11472 * breakpoint.c (condition_command): Replace call to
11473 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11474 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11475 with call to breakpoint_ext_lang_cond_says_stop.
11476 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11477 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11478 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11479 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11481 (local_setattro): Print name of extension language with existing
11484 * valprint.c (val_print, value_print): Update to call
11485 apply_ext_lang_val_pretty_printer.
11486 * cp-valprint.c (cp_print_value): Update call to
11487 apply_ext_lang_val_pretty_printer.
11488 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11489 (gdbpy_apply_val_pretty_printer): Renamed from
11490 apply_val_pretty_printer. New arg extlang.
11491 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11493 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11494 extension language API.
11495 * cli/cli-script.c (execute_control_command): Update to call
11496 eval_ext_lang_from_control_command.
11498 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11499 enum ext_lang_bt_status values. Update call to
11500 apply_ext_lang_frame_filter.
11501 (mi_cmd_stack_list_locals): Ditto.
11502 (mi_cmd_stack_list_args): Ditto.
11503 (mi_cmd_stack_list_variables): Ditto.
11504 * mi/mi-main.c: Delete #include "python/python-internal.h".
11505 Add #include "extension.h".
11506 (mi_cmd_list_features): Replace reference to python internal variable
11507 gdb_python_initialized with call to ext_lang_initialized_p.
11509 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11510 Update to use enum ext_lang_frame_args. Update to call
11511 apply_ext_lang_frame_filter.
11512 * python/py-framefilter.c (extract_sym): Update to use enum
11513 ext_lang_bt_status.
11514 (extract_value, py_print_type, py_print_value): Ditto.
11515 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11516 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11517 (py_print_frame): Ditto.
11518 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11519 New arg extlang. Update to use enum ext_lang_bt_status.
11521 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11522 finish_python_initialization. Replace with call to
11523 finish_ext_lang_initialization.
11525 * typeprint.c (do_free_global_table): Update to call
11526 free_ext_lang_type_printers.
11527 (create_global_typedef_table): Update to call
11528 start_ext_lang_type_printers.
11529 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11530 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11531 (type_print_options): Change type of global_printers from "void *"
11532 to "struct ext_lang_type_printers *".
11534 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11535 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11536 (gdbpy_preserve_values): Renamed from preserve_python_values.
11538 (!HAVE_PYTHON, preserve_python_values): Delete.
11540 * utils.c (quit_flag): Delete, moved to extension.c.
11541 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11544 * eval.c: Delete #include "python/python.h".
11545 * main.c: Delete #include "python/python.h".
11547 * defs.h: Update comment.
11549 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11553 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11555 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11558 2014-02-05 Yao Qi <yao@codesourcery.com>
11560 * remote.c (remote_pass_signals): Remove local 'buf' and use
11562 (remote_program_signals): Likewise.
11564 2014-02-05 Yao Qi <yao@codesourcery.com>
11566 * ctf.c: Include "inferior.h" and "gdbthread.h".
11567 (CTF_PID): A new macro.
11568 (ctf_open): Call inferior_appeared and add_thread_silent.
11569 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11570 (ctf_thread_alive): New function.
11571 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11573 2014-02-05 Yao Qi <yao@codesourcery.com>
11577 2013-05-24 Yao Qi <yao@codesourcery.com>
11579 * tracepoint.c (TFILE_PID): Remove.
11580 (tfile_open): Don't add thread and inferior.
11581 (tfile_close): Don't set 'inferior_ptid'. Don't call
11582 exit_inferior_silent.
11583 (tfile_thread_alive): Remove.
11584 (init_tfile_ops): Don't set field 'to_thread_alive' of
11587 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11589 * remote.c (remote_start_remote): Call remote_check_symbols even
11590 if only symbol-file (not file) has been given.
11592 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11594 * gdbarch.sh (skip_entrypoint): New callback.
11595 * gdbarch.c, gdbarch.h: Regenerate.
11596 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11597 * infrun.c (fill_in_stop_func): Likewise.
11598 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11599 (ppc_elfv2_elf_make_msymbol_special): New function.
11600 (ppc_elfv2_skip_entrypoint): Likewise.
11601 (ppc_linux_init_abi): Install them for ELFv2.
11603 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11605 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11606 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11607 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11608 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11609 structures returned in GPRs.
11611 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11613 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11614 offset to the stack parameter list for the ELFv2 ABI.
11616 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11618 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11619 set_gdbarch_convert_from_func_ptr_addr and
11620 set_gdbarch_elf_make_msymbol_special for ELFv1.
11621 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11622 function descriptors on ELFv1.
11623 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11624 set up r12 at function entry.
11626 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11628 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11629 (struct gdbarch_tdep): New member elf_abi.
11631 * rs6000-tdep.c: Include "elf/ppc64.h".
11632 (rs6000_gdbarch_init): Detect ELF ABI version.
11634 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11636 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11637 within a register pair holding a DFP 128-bit value on little-endian.
11638 (ppc64_sysv_abi_return_value_base): Likewise.
11639 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11640 (dfp_pseudo_register_write): Likewise.
11642 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11644 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11645 offset on little-endian when passing _Decimal32.
11646 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11648 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11650 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11651 of the overlapped FP register within the VSX register on little-
11653 (efpr_pseudo_register_write): Likewise.
11655 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11657 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11658 offset on little-endian when passing small structures.
11660 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11662 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11663 (struct ppc64_sysv_argpos): New data structure.
11664 (ppc64_sysv_abi_push_float): Remove.
11665 (ppc64_sysv_abi_push_val): New function.
11666 (ppc64_sysv_abi_push_integer): Likewise.
11667 (ppc64_sysv_abi_push_freg): Likewise.
11668 (ppc64_sysv_abi_push_vreg): Likewise.
11669 (ppc64_sysv_abi_push_param): Likewise.
11670 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11671 (ppc64_sysv_abi_return_value_base): New function.
11672 (ppc64_sysv_abi_return_value): Refactor to use it.
11674 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11676 * NEWS: Document new target powerpc64le-*-linux*.
11678 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11680 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11681 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11683 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11684 register set used in ELF core dumps. Add floating-point register set.
11686 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11688 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11689 dwarf2_to_gdb[] table using symbolic constants. Adjust
11690 penultimate entry from number representing the PC register
11691 to symbolic constant representing the MDR register. Add
11692 constant for the PC register to the end of the table.
11694 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11696 * bsd-kvm.c: Include <sys/param.h>
11698 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11700 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11702 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11704 * ada-lang.h (clear_ada_sym_cache): Delete.
11706 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11708 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11710 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11712 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11713 the sigreturn register save area only if the syscall is
11716 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11718 * valops.c (value_slice): Minor reformatting.
11720 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11722 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11724 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11726 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11727 New static globals.
11728 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11729 (ada_ignore_descriptive_types_p): New static global.
11730 (find_parallel_type_by_descriptive_type): Return immediately
11731 if ada_ignore_descriptive_types_p is set.
11732 (_initialize_ada_language): Register new commands "maintenance
11733 set ada", "maintenance show ada", "maintenance set ada
11734 ignore-descriptive-types" and "maintenance show ada
11735 ignore-descriptive-types".
11736 * NEWS: Add entry for new "maint ada set/show
11737 ignore-descriptive-types" commands.
11739 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11741 * record-btrace.c (record_btrace_close): Call btrace_teardown
11744 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11746 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11749 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11751 * ada-typeprint (type_is_full_subrange_of_target_type):
11753 (print_range): Add parameter bounds_prefered_p. If not set,
11754 try printing range types using the name of their base type.
11755 (print_range_type): Add parameter bounds_prefered_p.
11756 Use it in call to print_range.
11757 (print_array_type, ada_print_type): Update calls to print_range
11758 and print_range_type.
11760 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11762 * ada-typeprint.c (print_array_type, print_choices, print_range)
11763 (print_range_bound, print_dynamic_range_bound, print_range_type):
11764 Remove declaration.
11766 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11768 * ada-typeprint.c (print_range): Add missing empty line
11769 after local declaration.
11771 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11773 * ada-valprint.c (print_optional_low_bound): Get index_type's
11774 target type for as long as it is a TYPE_CODE_RANGE.
11776 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11778 * procfs.c (procfs_make_note_section): Remove assertion and
11779 associated comment.
11781 2014-01-24 Yao Qi <yao@codesourcery.com>
11783 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11784 * corelow.c (get_core_siginfo): Likewise.
11786 2014-01-24 Yao Qi <yao@codesourcery.com>
11788 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11789 ULONGEST. Don't check 'len' is negative.
11790 (remote_write_bytes): Change type of 'len' to ULONGEST.
11792 2014-01-23 Tom Tromey <tromey@redhat.com>
11795 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11796 Handle exception from frame.block.
11797 (FrameVars.fetch_frame_locals): Likewise.
11799 2014-01-23 Tom Tromey <tromey@redhat.com>
11802 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11803 on a NULL pointer. Move "goto error" to correct place.
11805 2014-01-23 Tom Tromey <tromey@redhat.com>
11808 * python/py-framefilter.c (apply_frame_filter): Call
11809 ensure_python_env after computing gdbarch.
11811 2014-01-23 Yao Qi <yao@codesourcery.com>
11813 * target.c (raw_memory_xfer_partial): Change argument type
11814 from void * to gdb_byte *.
11815 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11817 2014-01-22 Doug Evans <dje@google.com>
11819 New gdbserver option --debug-format=timestamp.
11820 * NEWS: Mention it.
11822 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11824 * syscalls/s390x-linux.xml: New file.
11825 * syscalls/s390-linux.xml: New file.
11826 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11827 (XML_SYSCALL_FILENAME_S390X): Likewise.
11828 (op_svc): New enum value for SVC opcode.
11829 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11830 (s390_linux_get_syscall_number): New function.
11831 (s390_gdbarch_init): Register '*get_syscall_number' and the
11832 syscall xml file name.
11833 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11834 "s390-linux.xml" and "s390x-linux.xml".
11835 * NEWS: Announce new feature.
11837 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11839 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11841 2014-01-22 Pedro Alves <palves@redhat.com>
11843 * xtensa-config.c: Include defs.h.
11845 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11847 * common/common-utils.h: Add "ARI:" comment beside __func__
11850 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11852 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11853 documentation a bit.
11855 2014-01-21 Roland McGrath <mcgrathr@google.com>
11857 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11858 * configure: Regenerate.
11859 * aclocal.m4: Regenerate.
11860 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11861 New substituted variables.
11862 (install-strip): New target.
11863 (INSTALL_SCRIPT): New substituted variable.
11864 (FLAGS_TO_PASS): Add it.
11865 (install-only): Use $(INSTALL_SCRIPT) rather than
11866 $(INSTALL_PROGRAM) for gcore.
11868 2014-01-20 Tom Tromey <tromey@redhat.com>
11870 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11873 2014-01-20 Tom Tromey <tromey@redhat.com>
11875 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11876 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11877 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11878 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11879 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11880 (struct cmd_list_element) <flags>: Remove.
11881 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11882 doc_allocated>: New fields.
11883 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11885 * maint.c (maintenance_do_deprecate): Update.
11886 * top.c (execute_command): Update.
11888 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11890 * xtensa-linux-nat.c: Include asm/ptrace.h.
11892 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11894 * Makefile.in (SFILES): Add d-support.c.
11895 (COMMON_OBS): Add d-support.o.
11896 * d-lang.h (d_parse_symbol): Add comment, now defined in
11898 * d-lang.c (parse_call_convention)
11899 (parse_attributes, parse_function_types)
11900 (parse_function_args, parse_type, parse_identifier)
11901 (call_convention_p, d_parse_symbol): Move functions to ...
11902 * d-support.c: ... New file.
11904 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11906 * d-lang.h (d_parse_symbol): Add declaration.
11907 * d-lang.c (extract_identifiers)
11908 (extract_type_info): Remove functions.
11909 (parse_call_convention, parse_attributes)
11910 (parse_function_types, parse_function_args)
11911 (parse_type, parse_identifier, call_convention_p)
11912 (d_parse_symbol): New functions.
11913 (d_demangle): Use d_parse_symbol to demangle D symbols.
11915 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11917 * d-lang.h (struct builtin_d_type): New data type.
11918 (builtin_d_type): Add declaration.
11919 * d-lang.c (d_language_arch_info, build_d_types)
11920 (builtin_d_type): New functions.
11921 (enum d_primitive_types): New data type.
11922 (d_language_defn): Change c_language_arch_info to
11923 d_language_arch_info.
11924 (d_type_data): New static variable.
11925 (_initialize_d_language): Initialize d_type_data.
11927 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11929 * d-lang.h (d_main_name): Add declaration.
11930 * d-lang.c (d_main_name): New function.
11931 * symtab.c (find_main_name): Add call to d_main_name.
11933 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11935 * d-lang.c (d_language_defn): Change macro_expansion_c to
11936 macro_expansion_no.
11938 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11940 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11942 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11944 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11945 gdb_exception" declaration.
11946 * remote.c (getpkt_or_notif_sane): Likewise.
11948 2014-01-17 Doug Evans <dje@google.com>
11950 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11951 function, contents of dirnames_to_char_ptr_vec_append moved here.
11952 (delim_string_to_char_ptr_vec): New function.
11953 (dirnames_to_char_ptr_vec_append): Rewrite.
11954 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11956 2014-01-17 Doug Evans <dje@google.com>
11958 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11960 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11961 #include "common-utils.h".
11962 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11963 * common/vec.h (VEC_ASSERT_PASS): Update.
11964 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11965 (MACH_CHECK_ERROR): Update.
11967 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11969 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11971 * gdbarch.h: Regenerate.
11973 2014-01-16 Tom Tromey <tromey@redhat.com>
11975 * value.c (struct value) <regnum>: Move earlier.
11977 2014-01-16 Tom Tromey <tromey@redhat.com>
11979 * remote.c (extended_remote_create_inferior): Rename from
11980 extended_remote_create_inferior_1. Add "ops" argument. Remove
11981 old implementation.
11983 2014-01-16 Pedro Alves <palves@redhat.com>
11985 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11986 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11989 2014-01-16 Doug Evans <dje@google.com>
11991 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11993 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11995 * btrace.h (btrace_thread_flag): New.
11996 (struct btrace_thread_info) <flags>: New.
11997 * record-btrace.c (record_btrace_resume_thread)
11998 (record_btrace_find_thread_to_move, btrace_step_no_history)
11999 (btrace_step_stopped, record_btrace_start_replaying)
12000 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12001 (record_btrace_find_resume_thread): New.
12002 (record_btrace_resume, record_btrace_wait): Extend.
12003 (record_btrace_can_execute_reverse): New.
12004 (record_btrace_open): Fail in non-stop mode.
12005 (record_btrace_set_replay): Split into this, ...
12006 (record_btrace_stop_replaying): ... this, ...
12007 (record_btrace_clear_histories): ... and this.
12008 (init_record_btrace_ops): Init to_can_execute_reverse.
12009 * NEWS: Announce it.
12011 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12013 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12014 (forward_target_decr_pc_after_break)
12015 (target_decr_pc_after_break): New.
12016 * target.c (forward_target_decr_pc_after_break)
12017 (target_decr_pc_after_break): New.
12018 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12019 instead of gdbarch_decr_pc_after_break.
12020 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12021 instead of gdbarch_decr_pc_after_break.
12022 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12023 instead of gdbarch_decr_pc_after_break.
12024 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12025 instead of gdbarch_decr_pc_after_break.
12026 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12027 instead of gdbarch_decr_pc_after_break.
12028 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12029 instead of gdbarch_decr_pc_after_break.
12031 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12033 * btrace.c: Include regcache.h.
12034 (btrace_add_pc): New.
12035 (btrace_enable): Call btrace_add_pc.
12036 (btrace_is_empty): New.
12037 * btrace.h (btrace_is_empty): New.
12038 * record-btrace.c (require_btrace, record_btrace_info): Call
12041 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12043 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12044 Support delta reads.
12045 (linux_disable_btrace): Change return type.
12046 * common/linux-btrace.h (linux_read_btrace): Change parameters
12047 and return type to allow error reporting. Update users.
12048 (linux_disable_btrace): Change return type. Update users.
12049 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12051 (btrace_error): New.
12052 (btrace_block) <begin>: Comment on BEGIN == 0.
12053 * btrace.c (btrace_compute_ftrace): Start from the end of
12055 (btrace_stitch_trace, btrace_clear_history): New.
12056 (btrace_fetch): Read delta trace, return if replaying.
12057 (btrace_clear): Move clear history code to btrace_clear_history.
12058 (parse_xml_btrace): Throw an error if parsing failed.
12059 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12060 and return type to allow error reporting.
12061 (target_read_btrace): Change parameters and return type to allow
12063 * target.c (target_read_btrace): Update.
12064 * remote.c (remote_read_btrace): Support delta reads. Pass
12066 * NEWS: Announce it.
12068 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12070 * record.h (record_btrace_frame_unwind)
12071 (record_btrace_tailcall_frame_unwind): New declarations.
12072 * dwarf2-frame: Include record.h
12073 (dwarf2_frame_cfa): Throw an error for btrace frames.
12074 * record-btrace.c: Include hashtab.h.
12075 (btrace_get_bfun_name): New.
12076 (btrace_call_history): Call btrace_get_bfun_name.
12077 (struct btrace_frame_cache): New.
12079 (bfcache_hash, bfcache_eq, bfcache_new): New.
12080 (btrace_get_frame_function): New.
12081 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12082 (record_btrace_frame_this_id): Compute own id.
12083 (record_btrace_frame_prev_register): Provide PC, throw_error
12084 for all other registers.
12085 (record_btrace_frame_sniffer): Detect btrace frames.
12086 (record_btrace_tailcall_frame_sniffer): New.
12087 (record_btrace_frame_dealloc_cache): New.
12088 (record_btrace_frame_unwind): Add new functions.
12089 (record_btrace_tailcall_frame_unwind): New.
12090 (_initialize_record_btrace): Allocate cache.
12091 * btrace.c (btrace_clear): Call reinit_frame_cache.
12092 * NEWS: Announce it.
12094 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12096 * record-btrace.c (record_btrace_set_replay)
12097 (record_btrace_goto_begin, record_btrace_goto_end)
12098 (record_btrace_goto): New.
12099 (init_record_btrace_ops): Initialize them.
12100 * NEWS: Announce it.
12102 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12104 * record-btrace.c (record_btrace_find_new_threads)
12105 (record_btrace_thread_alive): New.
12106 (init_record_btrace_ops): Initialize to_find_new_threads and
12109 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12111 * record-btrace.c (record_btrace_resume): New.
12112 (record_btrace_wait): New.
12113 (init_record_btrace_ops): Initialize to_wait and to_resume.
12115 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12117 * record-btrace.c (record_btrace_xfer_partial)
12118 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12119 (record_btrace_allow_memory_access): New.
12120 (init_record_btrace_ops): Initialize new methods.
12121 * target.c (raw_memory_xfer_partial): Bail out if target reports
12122 that this memory is not available.
12124 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12126 * target.h (target_ops) <to_insert_breakpoint>
12127 <to_remove_breakpoint>: Add target_ops parameter.
12128 (forward_target_insert_breakpoint): New.
12129 (forward_target_remove_breakpoint): New.
12130 (memory_remove_breakpoint, memory_insert_breakpoint):
12131 Add target_ops parameter.
12132 * target.c (target_insert_breakpoint): Split into this and ...
12133 (forward_target_insert_breakpoint): ... this.
12134 (target_remove_breakpoint): Split into this and ...
12135 (forward_target_remove_breakpoint): ... this.
12136 (debug_to_insert_breakpoint): Add target_ops parameter.
12137 Call forward_target_insert_breakpoint.
12138 (debug_to_remove_breakpoint): Add target_ops parameter.
12139 Call forward_target_remove_breakpoint.
12140 (update_current_target): Do not inherit or default to_insert_breakpoint
12141 and to_remove_breakpoint.
12142 * corelow.c (ignore): Add target_ops parameter.
12143 * exec.c (ignore): Add target_ops parameter.
12144 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12145 Add target_ops parameter.
12146 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12147 Add target_ops parameter.
12148 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12149 Add target_ops parameter.
12150 * record-full.c (record_full_beneath_to_insert_breakpoint)
12151 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12152 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12153 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12154 (record_full_core_remove_breakpoint): Add target_ops parameter.
12156 (record_full_beneath_to_insert_breakpoint_ops)
12157 (record_full_beneath_to_remove_breakpoint_ops)
12158 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12159 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12160 tmp_to_remove_breakpoint_ops,
12161 record_full_beneath_to_insert_breakpoint_ops, and
12162 record_full_beneath_to_remove_breakpoint_ops.
12163 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12164 (m32r_remove_breakpoint): Add target_ops parameter.
12165 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12166 Add target_ops parameter.
12167 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12168 Add target_ops parameter.
12170 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12171 Markus Metzger <markus.t.metzger@intel.com>
12173 * record-btrace.c: Include frame-unwind.h.
12174 (record_btrace_frame_unwind_stop_reason)
12175 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12176 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12178 (init_record_btrace_ops): Install it.
12180 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12182 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12185 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12187 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12190 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12192 * frame-unwind.c: Include target.h.
12193 (frame_unwind_try_unwinder): New function with code from ...
12194 (frame_unwind_find_by_frame): ... here. New variable
12195 unwinder_from_target, call also target_get_unwinder)
12196 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12197 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12198 * target.h (struct target_ops): New fields to_get_unwinder and
12199 to_get_tailcall_unwinder.
12200 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12202 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12204 * record-btrace.c (record_btrace_fetch_registers)
12205 (record_btrace_store_registers)
12206 (record_btrace_to_prepare_to_store): New.
12207 (init_record_btrace_ops): Add the above.
12209 2014-01-16 Tom Tromey <tromey@redhat.com>
12211 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12212 * target.h (struct target_ops) <to_prepare_to_store>: Add
12214 (target_prepare_to_store): Add argument.
12215 * target.c (debug_to_prepare_to_store): Add argument.
12216 (update_current_target): Update.
12217 * remote.c (remote_prepare_to_store): Add 'self' argument.
12218 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12219 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12220 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12221 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12223 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12224 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12225 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12226 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12227 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12229 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12231 * btrace.h (replay) <replay>: New.
12232 (btrace_is_replaying): New.
12233 * btrace.c (btrace_clear): Free replay iterator.
12234 (btrace_is_replaying): New.
12235 * record-btrace.c (record_btrace_is_replaying): New.
12236 (record_btrace_info): Print insn number if replaying.
12237 (record_btrace_insn_history): Start at replay position.
12238 (record_btrace_call_history): Start at replay position.
12239 (init_record_btrace_ops): Init to_record_is_replaying.
12241 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12243 * record-btrace.c (record_btrace_insn_history_range): Include
12245 (record_btrace_insn_history_from): Adjust range.
12246 (record_btrace_call_history_range): Include
12248 (record_btrace_call_history_from): Adjust range.
12249 * NEWS: Announce changes.
12251 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12253 * record.h (enum record_print_flag)
12254 <record_print_indent_calls>: New.
12255 * record.c (get_call_history_modifiers): Recognize /c modifier.
12256 (_initialize_record): Document /c modifier.
12257 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12258 Reorder fields. Optionally indent the function name. Update
12260 * NEWS: Announce changes.
12262 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12264 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12266 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12268 * btrace.c (ftrace_new_function): Start counting at one.
12269 * record-btrace.c (record_btrace_info): Adjust number of calls
12271 * NEWS: Announce it.
12273 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12275 * record-btrace.c (btrace_call_history_insn_range): Print
12276 insn range as [begin, end].
12278 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12280 * btrace.h (struct btrace_func_link): New.
12281 (enum btrace_function_flag): New.
12282 (struct btrace_inst): Rename to ...
12283 (struct btrace_insn): ...this. Update all users.
12284 (struct btrace_func) <ibegin, iend>: Remove.
12285 (struct btrace_func_link): New.
12286 (struct btrace_func): Rename to ...
12287 (struct btrace_function): ...this. Update all users.
12288 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12289 (number, level, flags>: New.
12290 (struct btrace_insn_iterator): Rename to ...
12291 (struct btrace_insn_history): ...this.
12293 (struct btrace_insn_iterator, btrace_call_iterator): New.
12294 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12295 (struct btrace_target_info) <begin, end, level>
12296 <insn_history, call_history>: New.
12297 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12298 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12299 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12300 (btrace_call_number, btrace_call_begin, btrace_call_end)
12301 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12302 (btrace_find_function_by_number, btrace_set_insn_history)
12303 (btrace_set_call_history): New.
12304 * btrace.c (btrace_init_insn_iterator)
12305 (btrace_init_func_iterator, compute_itrace): Remove.
12306 (ftrace_print_function_name, ftrace_print_filename)
12307 (ftrace_skip_file): Change
12308 parameter to const.
12309 (ftrace_init_func): Remove.
12310 (ftrace_debug): Use new btrace_function fields.
12311 (ftrace_function_switched): Also consider gaining and
12312 losing symbol information).
12313 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12314 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12315 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12317 (ftrace_new_function): Move. Remove debug print.
12318 (ftrace_update_lines, ftrace_update_insns): New.
12319 (ftrace_update_function): Check for call, ret, and jump.
12320 (compute_ftrace): Renamed to ...
12321 (btrace_compute_ftrace): ...this. Rewritten to compute call
12323 (btrace_fetch, btrace_clear): Updated.
12324 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12325 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12326 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12327 (btrace_call_number, btrace_call_begin, btrace_call_end)
12328 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12329 (btrace_find_function_by_number, btrace_set_insn_history)
12330 (btrace_set_call_history): New.
12331 * record-btrace.c (require_btrace): Use new btrace thread
12333 (record_btrace_info, btrace_insn_history)
12334 (record_btrace_insn_history, record_btrace_insn_history_range):
12335 Use new btrace thread info fields and new iterator.
12336 (btrace_func_history_src_line): Rename to ...
12337 (btrace_call_history_src_line): ...this. Use new btrace
12338 thread info fields.
12339 (btrace_func_history): Rename to ...
12340 (btrace_call_history): ...this. Use new btrace thread info
12341 fields and new iterator.
12342 (record_btrace_call_history, record_btrace_call_history_range):
12343 Use new btrace thread info fields and new iterator.
12345 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12347 * frame.h (frame_id_build_unavailable_stack_special): New.
12348 * frame.c (frame_id_build_unavailable_stack_special): New.
12350 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12352 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12353 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12354 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12356 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12357 (i386_insn_is_jump, i386_jmp_p): New.
12358 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12359 insn_is_jump to gdbarch.
12360 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12361 * gdbarch.h: Regenerated.
12362 * gdbarch.c: Regenerated.
12363 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12364 (default_insn_is_jump): New.
12365 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12366 (default_insn_is_jump): New.
12368 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12370 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12372 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12373 (btrace_read_type) <btrace_read_new>: Change to ...
12374 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12376 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12378 * common/linux-btrace.c (linux_read_btrace): Free trace from
12379 previous iteration.
12381 2014-01-15 Doug Evans <dje@google.com>
12383 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12386 2014-01-15 Tom Tromey <tromey@redhat.com>
12388 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12389 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12390 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12391 (set_objfile_main_name): New function.
12392 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12393 language_of_main>: New fields.
12394 (set_objfile_main_name): Declare.
12395 * symtab.c (find_main_name): Loop over objfiles to find the main
12397 (set_main_name): Now static.
12398 (get_main_info): Add comment.
12399 * symtab.h (set_main_name): Don't declare.
12401 2014-01-15 Tom Tromey <tromey@redhat.com>
12403 * symtab.c (main_progspace_key): New global.
12404 (struct main_info): New.
12405 (name_of_main, language_of_main): Remove.
12406 (get_main_info, main_info_cleanup): New function.
12407 (set_main_name, main_name, main_language): Use get_main_info.
12408 (_initialize_symtab): Initialize main_progspace_key.
12410 2014-01-15 Tom Tromey <tromey@redhat.com>
12412 * dbxread.c (process_one_symbol): Update.
12413 * dwarf2read.c (read_partial_die): Update.
12414 * symfile.c (set_initial_language): Call main_language.
12415 * symtab.c (language_of_main): Now static.
12416 (set_main_name): Add 'lang' parameter.
12417 (find_main_name): Update.
12418 (main_language): New function.
12419 (symtab_observer_executable_changed): Update.
12420 * symtab.h (set_main_name): Update.
12421 (language_of_main): Remove.
12422 (main_language): Declare.
12424 2014-01-15 Tom Tromey <tromey@redhat.com>
12426 * symfile.c (init_entry_point_info): Use new "initialized" field.
12428 * objfiles.h (struct entry_point) <initialized>: New field.
12429 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12430 (struct objfile) <ei>: ...here. Remove.
12431 * objfiles.c (entry_point_address_query): Update.
12433 2014-01-15 Tom Tromey <tromey@redhat.com>
12435 * objfiles.c (entry_point_address_query): Relocate entry point
12437 (objfile_relocate1): Do not relocate entry point address.
12438 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12439 <the_bfd_section_index>: New field.
12440 * symfile.c (init_entry_point_info): Find the entry point's
12443 2014-01-15 Tom Tromey <tromey@redhat.com>
12445 * solib-frv.c (enable_break): Use entry_point_address_query.
12447 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12449 * NEWS: Add note on improved process record-replay on
12450 arm*-linux* targets.
12452 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12454 * arm-tdep.c (enum arm_record_result): New enum.
12455 (arm_record_unsupported_insn): New function.
12456 (arm_record_coproc_data_proc): Removed.
12457 (thumb2_record_ld_st_multiple): New function.
12458 (thumb2_record_ld_st_dual_ex_tbb): New function.
12459 (thumb2_record_data_proc_sreg_mimm): New function.
12460 (thumb2_record_ps_dest_generic): New function.
12461 (thumb2_record_branch_misc_cntrl): New function.
12462 (thumb2_record_str_single_data): New function.
12463 (thumb2_record_ld_mem_hints): New function.
12464 (thumb2_record_ld_word): New function.
12465 (thumb2_record_lmul_lmla_div): New function.
12466 (thumb2_record_decode_insn_handler): New function.
12467 (decode_insn): Add thumb32 instruction handlers.
12469 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12471 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12472 (struct arm_linux_record_tdep): Declare.
12473 (arm_canonicalize_syscall): New function.
12474 (arm_all_but_pc_registers_record): New function.
12475 (arm_linux_syscall_record): New function.
12476 (arm_linux_init_abi): Add syscall recording constructs.
12477 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12478 decoding. (arm_record_coproc_data_proc): Update arm syscall
12480 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12481 <arm_syscall_record>: New field.
12482 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12485 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12487 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12488 register for push instruction recording.
12490 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12492 * arm-tdep.c (thumb_record_misc): Update to correct logical
12493 error while recording ldm, ldmia and pop instructions.
12495 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12497 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12499 2014-01-15 Pedro Alves <palves@redhat.com>
12501 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12502 (go32_resume, go32_fetch_registers, store_register)
12503 (go32_store_registers, go32_prepare_to_store)
12504 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12505 (go32_create_inferior, go32_can_run, go32_terminal_init)
12506 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12509 2014-01-15 Tom Tromey <tromey@redhat.com>
12511 * target.h (async_callback_ftype): New typedef.
12512 (struct target_ops) <to_async>: Use it.
12514 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12516 * python/py-value.c (get_field_type): Remove unnecessary curly
12517 braces for single-statement if block.
12519 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12521 * python/py-type.c (convert_field): Add missing empty line
12522 after declarations.
12524 2014-01-14 Doug Evans <dje@google.com>
12526 * symfile.h (expand_symtabs_matching): Renamed from
12527 expand_partial_symbol_names. Update prototype.
12528 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12529 * symfile.c (expand_symtabs_matching): Renamed from
12530 expand_partial_symbol_names. New args file_matcher, kind.
12531 Rename arg fun to symbol_matcher.
12532 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12533 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12534 ada_expand_partial_symbol_name.
12535 (ada_make_symbol_completion_list): Update to call
12536 expand_symtabs_matching.
12537 (ada_add_global_exceptions): Call expand_symtabs_matching.
12538 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12539 call map_symbol_filenames.
12540 * symtab.c (sources_info): Update to call map_symbol_filenames.
12541 (search_symbols): Call expand_symtabs_matching.
12542 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12543 (default_make_symbol_completion_list_break_on): Update to call
12544 expand_symtabs_matching.
12545 (make_source_files_completion_list): Update to call
12546 map_symbol_filenames.
12548 2014-01-14 Doug Evans <dje@google.com>
12550 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12551 (expand_symtabs_symbol_matcher_ftype): New typedef.
12552 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12553 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12554 * symfile.c (expand_partial_symbol_names): Update to use
12555 expand_symtabs_symbol_matcher_ftype.
12556 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12557 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12558 Arg name_matcher renamed to symbol_matcher.
12559 * psymtab.c (recursively_search_psymtabs): Update to use
12560 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12562 (expand_symtabs_matching_via_partial): Update to use
12563 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12564 Arg name_matcher renamed to symbol_matcher.
12566 2014-01-14 Doug Evans <dje@google.com>
12568 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12569 (map_partial_symbol_filenames): Ditto.
12570 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12571 (map_partial_symbol_filenames): Ditto.
12572 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12573 (map_partial_symbol_filenames): Ditto.
12574 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12575 (map_partial_symbol_filenames): Ditto.
12576 * symtab.c: Delete #include "psymtab.h".
12578 2014-01-14 Pedro Alves <palves@redhat.com>
12579 Tom Tromey <tromey@redhat.com>
12581 * infrun.c (use_displaced_stepping): Use find_record_target
12582 instead of RECORD_IS_USED.
12583 (adjust_pc_after_break): Use record_full_is_used instead of
12585 * record-btrace.c (record_btrace_open): Call record_preopen
12586 instead of checking RECORD_IS_USED.
12587 * record-full.c (record_full_shortname)
12588 (record_full_core_shortname): New globals.
12589 (record_full_is_used): New function.
12590 (find_full_open): Call record_preopen instead of checking
12592 (init_record_full_ops): Set the target's shortname to
12593 record_full_shortname.
12594 (init_record_full_core_ops): Set the target's shortname to
12595 record_full_core_shortname.
12596 * record-full.h (record_full_is_used): Declare.
12597 * record.c (find_record_target): Make extern.
12598 (record_preopen): New function.
12599 * record.h (RECORD_IS_USED): Delete macro.
12600 (find_record_target, record_preopen): Declare functions.
12602 2014-01-14 Yao Qi <yao@codesourcery.com>
12604 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12605 'len''s type to ULONGEST.
12606 (core_xfer_shared_libraries_aix): Likewise.
12607 * gdbarch.c, gdbarch.h: Regenerated.
12608 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12609 Change type of 'len' to ULONGEST.
12610 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12611 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12613 2014-01-14 Yao Qi <yao@codesourcery.com>
12615 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12616 type of 'len' to ULONGEST.
12617 (linux_xfer_osdata_processgroups): Likewise.
12618 (linux_xfer_osdata_threads): Likewise.
12619 (linux_xfer_osdata_fds): Likewise.
12620 (linux_xfer_osdata_isockets): Likewise.
12621 (linux_xfer_osdata_shm): Likewise.
12622 (linux_xfer_osdata_sem): Likewise.
12623 (linux_xfer_osdata_msg): Likewise.
12624 (linux_common_xfer_osdata): Likewise.
12625 (struct osdata_type) <getter>: Likewise.
12626 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12629 2014-01-14 Yao Qi <yao@codesourcery.com>
12631 * target.h (target_xfer_partial_ftype): Update.
12632 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12634 * aix-thread.c (aix_thread_xfer_partial): Change type of
12635 argument 'len' to ULONGEST.
12636 * auxv.c (procfs_xfer_auxv): Likewise.
12637 (ld_so_xfer_auxv): Likewise.
12638 (memory_xfer_auxv): Likewise.
12639 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12640 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12641 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12642 * corelow.c (core_xfer_partial): Likewise.
12643 * ctf.c (ctf_xfer_partial): Likewise.
12644 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12646 (darwin_read_dyld_info): Likewise.
12647 (darwin_xfer_partial): Likewise.
12648 * exec.c (section_table_xfer_memory_partial): Likewise.
12649 (exec_xfer_partial): Likewise.
12650 * exec.h (section_table_xfer_memory_partial): Update
12652 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12653 instead of plongest.
12654 (gnu_xfer_partial): Likewise.
12655 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12656 (ia64_hpux_xfer_solib_got): Likewise.
12657 (ia64_hpux_xfer_partial): Likewise.
12658 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12659 * inf-ptrace.c (inf_ptrace_xfer_partial):
12660 * inf-ttrace.c (inf_ttrace_xfer_partial):
12661 * linux-nat.c (linux_xfer_siginfo): Likewise.
12662 (linux_nat_xfer_partial): Likewise.
12663 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12664 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12665 * monitor.c (monitor_xfer_memory): Likewise.
12666 (monitor_xfer_partial): Likewise.
12667 * procfs.c (procfs_xfer_partial): Likewise.
12668 * record-full.c (record_full_xfer_partial): Likewise.
12669 (record_full_core_xfer_partial): Likewise.
12670 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12671 instead of plongest.
12672 (gdbsim_xfer_partial): Likewise.
12673 * remote.c (remote_xfer_partial): Likewise.
12674 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12675 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12677 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12678 (rs6000_xfer_shared_libraries): Likewise.
12679 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12680 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12681 (sparc_xfer_partial): Likewise.
12682 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12683 (spu_xfer_partial): Likewise.
12684 * spu-multiarch.c (spu_xfer_partial): Likewise.
12685 * target.c (target_read_live_memory): Likewise.
12686 (memory_xfer_live_readonly_partial): Likewise.
12687 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12688 (target_xfer_partial, default_xfer_partial): Likewise.
12689 (current_xfer_partial): Likewise.
12690 * tracepoint.c (tfile_xfer_partial): Likewise.
12691 * windows-nat.c (windows_xfer_memory): Likewise. Call
12692 pulongest instead of plongest.
12693 (windows_xfer_partial): Likewise.
12694 (windows_xfer_shared_libraries): Likewise.
12696 2014-01-14 Yao Qi <yao@codesourcery.com>
12698 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12699 target_xfer_partial_ftype.
12701 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12705 * valops.c (value_struct_elt_bitpos): New function
12706 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12707 object to 'None' if the field name is an empty string ("").
12708 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12709 attribute to look for a field when 'name' is 'None'.
12710 (get_field_type): New function
12712 2014-01-13 Doug Evans <dje@google.com>
12715 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12716 (try_open_dwop_file): Ditto.
12717 * gdb_bfd.c: #include "vec.h".
12718 (bfdp): New typedef.
12719 (struct gdb_bfd_data): New member included_bfds.
12720 (gdb_bfd_unref): Unref all included bfds.
12721 (gdb_bfd_record_inclusion): New function.
12722 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12724 2014-01-13 Tom Tromey <tromey@redhat.com>
12726 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12728 2014-01-13 Tom Tromey <tromey@redhat.com>
12730 * defs.h (use_windows): Remove.
12731 * gdb.c (main): Update.
12732 * main.c (captured_main, gdb_main): Update.
12733 * main.h (struct captured_main_args) <use_windows>: Remove.
12734 * top.c (use_windows): Remove.
12736 2014-01-13 Tom Tromey <tromey@redhat.com>
12738 * defs.h (deprecated_flush_hook): Remove.
12740 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12743 * linux-thread-db.c (try_thread_db_load): Add parameter
12744 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12745 (try_thread_db_load_from_pdir_1): Move it there from here.
12746 (try_thread_db_load_from_sdir): Update caller.
12747 (try_thread_db_load_from_dir): Move it there from here.
12749 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12751 * regformats/regdat.sh: Always rewrite the register file.
12753 2014-01-13 Pedro Alves <palves@redhat.com>
12755 * Makefile.in (CHECK_HEADERS): New variable.
12756 (check-headers:): New rule.
12758 2014-01-13 Tom Tromey <tromey@redhat.com>
12760 * cli/cli-setshow.c (do_set_command): Update.
12761 * defs.h (deprecated_set_hook): Remove.
12762 * top.c (deprecated_set_hook): Remove.
12764 2014-01-13 Pedro Alves <palves@redhat.com>
12766 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12767 the tracepoint if the PC is a pseudo-register.
12769 2014-01-13 Tom Tromey <tromey@redhat.com>
12771 * defs.h (XCALLOC): Remove.
12772 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12773 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12774 * dwarf2loc.c (allocate_piece_closure): Likewise.
12775 * elfread.c (elf_symfile_segments): Likewise.
12776 (elf_symfile_segments): Likewise.
12777 * gdbtypes.c (copy_type_recursive): Likewise.
12778 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12779 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12780 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12782 * mt-tdep.c (mt_gdbarch_init): Likewise.
12783 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12785 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12786 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12787 * registry.c (registry_alloc_data): Likewise.
12788 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12789 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12790 * serial.c (serial_fdopen_ops): Likewise.
12791 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12793 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12794 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12797 2014-01-13 Tom Tromey <tromey@redhat.com>
12799 * defs.h (XMALLOC): Remove.
12800 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12801 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12802 * cli-out.c (struct ui_out *): Likewise.
12803 * cli/cli-dump.c (add_dump_command): Likewise.
12804 (add_dump_command): Likewise.
12805 * complaints.c (get_complaints): Likewise.
12806 (find_complaint): Likewise.
12807 * dwarf2-frame.c (execute_cfa_program): Likewise.
12808 * dwarf2read.c (abbrev_table_read_table): Likewise.
12809 * gdbarch.sh: Likewise.
12810 * gdbarch.c: Rebuild.
12811 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12812 * interps.c (interp_new): Likewise.
12813 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12814 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12815 * mi/mi-console.c (mi_console_file_new): Likewise.
12816 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12817 * mi/mi-out.c (mi_out_new): Likewise.
12818 * mi/mi-parse.c (mi_parse): Likewise.
12819 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12820 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12821 * observer.c (xalloc_observer_list_node): Likewise.
12822 * regcache.c (regcache_xmalloc_1): Likewise.
12823 * reggroups.c (reggroup_new): Likewise.
12824 (_initialize_reggroup): Likewise.
12825 * registry.c (register_data_with_cleanup): Likewise.
12826 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12827 * ser-base.c (serial_ttystate): Likewise.
12828 * ser-mingw.c (make_pipe_state): Likewise.
12829 * ser-pipe.c (pipe_open): Likewise.
12830 * serial.c (serial_open): Likewise.
12831 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12832 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12833 (tui_alloc_win_info): Likewise.
12834 (tui_add_content_elements): Likewise.
12835 * tui/tui-file.c (tui_file_new): Likewise.
12836 * tui/tui-out.c (tui_out_new): Likewise.
12837 * ui-file.c (mem_file_new): Likewise.
12838 * ui-out.c (push_level): Likewise.
12839 (make_cleanup_ui_out_end): Likewise.
12840 (append_header_to_list): Likewise.
12841 (ui_out_new): Likewise.
12842 * user-regs.c (user_reg_add_builtin): Likewise.
12844 2014-01-13 Tom Tromey <tromey@redhat.com>
12846 * defs.h (XZALLOC): Remove.
12847 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12848 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12849 (get_ada_tasks_inferior_data): Likewise.
12850 * auto-load.c (get_auto_load_pspace_data): Likewise.
12851 * auxv.c (get_auxv_inferior_data): Likewise.
12852 * bfd-target.c (target_bfd_reopen): Likewise.
12853 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12854 (deprecated_insert_raw_breakpoint): Likewise.
12855 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12856 * corelow.c (core_open): Likewise.
12857 * darwin-nat.c (darwin_check_new_threads): Likewise.
12858 (darwin_attach_pid): Likewise.
12859 * dummy-frame.c (dummy_frame_push): Likewise.
12860 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12861 * dwarf2loc.c (allocate_piece_closure): Likewise.
12862 * elfread.c (elf_symfile_segments): Likewise.
12863 * eval.c (ptrmath_type_p): Likewise.
12864 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12865 * gdbtypes.c (alloc_type_arch): Likewise.
12866 (alloc_type_instance): Likewise.
12867 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12868 * inf-child.c (inf_child_can_use_agent): Likewise.
12869 * inflow.c (get_inflow_inferior_data): Likewise.
12870 * infrun.c (save_infcall_suspend_state): Likewise.
12871 * jit.c (jit_reader_load): Likewise.
12872 (get_jit_objfile_data): Likewise.
12873 (get_jit_program_space_data): Likewise.
12874 (jit_object_open_impl): Likewise.
12875 (jit_symtab_open_impl): Likewise.
12876 (jit_block_open_impl): Likewise.
12877 (jit_frame_sniffer): Likewise.
12878 * linux-fork.c (add_fork): Likewise.
12879 * maint.c (make_command_stats_cleanup): Likewise.
12880 * objfiles.c (get_objfile_pspace_data): Likewise.
12881 * opencl-lang.c (struct lval_closure): Likewise.
12882 * osdata.c (osdata_start_osdata): Likewise.
12883 * progspace.c (new_address_space): Likewise.
12884 (add_program_space): Likewise.
12885 * remote-sim.c (get_sim_inferior_data): Likewise.
12886 * sh-tdep.c (sh_gdbarch_init): Likewise.
12887 * skip.c (Ignore): Likewise.
12888 (skip_delete_command): Likewise.
12889 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12890 (library_list_start_library): Likewise.
12891 (solib_aix_current_sos): Likewise.
12892 * solib-darwin.c (get_darwin_info): Likewise.
12893 (darwin_current_sos): Likewise.
12894 * solib-dsbt.c (get_dsbt_info): Likewise.
12895 * solib-ia64-hpux.c (new_so_list): Likewise.
12896 (ia64_hpux_get_solib_linkage_addr): Likewise.
12897 * solib-spu.c (append_ocl_sos): Likewise.
12898 (spu_current_sos): Likewise.
12899 * solib-svr4.c (get_svr4_info): Likewise.
12900 (svr4_keep_data_in_core): Likewise.
12901 (library_list_start_library): Likewise.
12902 (svr4_default_sos): Likewise.
12903 (svr4_read_so_list): Likewise.
12904 * solib-target.c (library_list_start_library): Likewise.
12905 (solib_target_current_sos): Likewise.
12906 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12907 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12908 * symfile.c (default_symfile_segments): Likewise.
12909 * target-descriptions.c (tdesc_data_init): Likewise.
12910 (tdesc_create_reg): Likewise.
12911 (struct tdesc_type *): Likewise.
12912 (tdesc_create_vector): Likewise.
12913 (tdesc_set_struct_size): Likewise.
12914 (struct tdesc_type *): Likewise.
12915 (tdesc_free_feature): Likewise.
12916 (tdesc_create_feature): Likewise.
12917 * windows-nat.c (windows_add_thread): Likewise.
12918 (windows_make_so): Likewise.
12919 * xml-support.c (gdb_xml_body_text): Likewise.
12920 (gdb_xml_create_parser_and_cleanup): Likewise.
12921 (xml_process_xincludes): Likewise.
12922 * xml-syscall.c (allocate_syscalls_info): Likewise.
12923 (syscall_create_syscall_desc): Likewise.
12925 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12927 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12928 function, with code from i386_stap_parse_special_token.
12929 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12930 (i386_stap_parse_special_token): Move code to the two functions
12931 above; simplify it.
12933 2014-01-09 Pedro Alves <palves@redhat.com>
12934 Hui Zhu <hui@codesourcery.com>
12937 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12938 bp_err_string. Don't mark the location shlib_disabled if the
12939 error thrown wasn't a generic or memory error. Catch errors
12940 thrown while inserting breakpoints in overlayed code. Output
12941 error message of software breakpoints.
12942 * remote.c (remote_insert_breakpoint): If this breakpoint has
12943 target-side commands but this stub doesn't support Z0 packets,
12944 throw NOT_SUPPORTED_ERROR error.
12945 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12946 * target.h (target_insert_breakpoint): Extend comment.
12947 (target_insert_hw_breakpoint): Add comment.
12949 2014-01-08 Pedro Alves <palves@redhat.com>
12951 * remote.c (remote_add_thread): Add threads silently if starting
12953 (remote_notice_new_inferior): If in all-stop, and starting up,
12954 don't call notice_new_inferior.
12955 (get_current_thread): New function, factored out from ...
12956 (add_current_inferior_and_thread): ... this. Adjust.
12957 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12958 found any thread, then select the remote's current thread as GDB's
12959 current thread too.
12961 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12963 * NEWS: Create a new section for the next release branch.
12964 Rename the section of the current branch, now that it has
12967 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12969 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12970 * version.in: Bump version to 7.7.50.DATE-cvs.
12972 2014-01-08 Yao Qi <yao@codesourcery.com>
12974 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12975 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12976 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12978 2014-01-08 Yao Qi <yao@codesourcery.com>
12980 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12981 return value of bfd_get_filename to symbol_file_add_from_bfd.
12983 2014-01-08 Pierre Muller <muller@sourceware.org>
12986 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12987 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12988 to prim_record_mininal_symbol_and_info.
12989 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12990 in call to prim_record_minimal_symbol_and_info.
12991 (read_pe_exported_syms): Set index field of section_data.
12993 2014-01-07 Andrew Pinski <apinski@cavium.com>
12995 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12996 * features/aarch64.c: Regenerate.
12998 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13000 * target.c (return_null): Define.
13001 (update_current_target): Use it instead of return_zero for
13002 functions that return a pointer.
13004 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13006 * source.c (add_path): Fix check for duplicated paths in the previously
13009 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13011 * ada-lang.c: Remove duplicated include statements.
13012 * alphabsd-nat.c: Ditto.
13013 * amd64-darwin-tdep.c: Ditto.
13014 * amd64fbsd-nat.c: Ditto.
13015 * auto-load.c: Ditto.
13017 * breakpoint.c: Ditto.
13018 * dbxread.c: Ditto.
13019 * fork-child.c: Ditto.
13020 * gdb_usleep.c: Ditto.
13021 * i386-darwin-tdep.c: Ditto.
13022 * i386fbsd-nat.c: Ditto.
13024 * inferior.c: Ditto.
13025 * jv-lang.c: Ditto.
13026 * linux-nat.c: Ditto.
13027 * linux-tdep.c: Ditto.
13028 * m68kbsd-nat.c: Ditto.
13029 * m68klinux-nat.c: Ditto.
13030 * microblaze-tdep.c: Ditto.
13031 * mips-linux-tdep.c: Ditto.
13032 * mn10300-tdep.c: Ditto.
13033 * nto-tdep.c: Ditto.
13034 * opencl-lang.c: Ditto.
13036 * printcmd.c: Ditto.
13037 * regcache.c: Ditto.
13038 * remote-m32r-sdi.c: Ditto.
13040 * symfile.c: Ditto.
13042 * tilegx-linux-nat.c: Ditto.
13043 * tilegx-tdep.c: Ditto.
13044 * tracepoint.c: Ditto.
13046 * vaxbsd-nat.c: Ditto.
13047 * windows-nat.c: Ditto.
13048 * xtensa-tdep.c: Ditto.
13050 2014-01-07 Yao Qi <yao@codesourcery.com>
13052 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13054 2014-01-07 Yao Qi <yao@codesourcery.com>
13055 Joel Brobecker <brobecker@adacore.com>
13057 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13058 (pdc_write_regs): Likewise.
13059 (fetch_regs_kernel_thread): Likewise.
13060 (store_regs_kernel_thread): Likewise.
13062 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13064 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13065 tagged type objects to their actual type.
13067 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13069 * ada-valprint.c (print_field_values): Add "language" parameter.
13070 Update calls to print_field_values and print_variant_part.
13071 Pass new parameter "language" in call to val_print instead
13072 of "current_language". Replace call to ada_val_print by call
13074 (print_variant_part): Add "language" parameter.
13075 (ada_val_print_struct_union): Update call to print_field_values.
13077 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13079 * ada-valprint.c (ui_memcpy): Delete.
13080 (ada_print_floating): Update documentation. Add empty line
13081 between between function documentation and implementation.
13082 Delete variable "buffer". Use ui_file_xstrdup in place of
13083 ui_file_put. Minor adjustments following this change.
13085 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13087 * ada-valprint.c (ada_val_print_string): New function,
13088 extracted from ada_val_print_array.
13089 (ada_val_print_array): Replace extracted code by call
13090 to ada_val_print_string followed by a return. Move
13091 "else" branch to the function's top block.
13093 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13095 * ada-valprint.c (ada_val_print_array): Move implementation
13096 down. Rename parameter "offset" and "val" into "offset_aligned"
13097 and "original_value" respectively. Add parameter "offset".
13099 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13101 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13102 re-organizing the code. Change the "???" message printed
13103 when target type is a TYPE_CODE_UNDEF into
13104 "<ref to undefined type>".
13106 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13108 * ada-valprint.c (print_record): Delete, implementation inlined...
13109 (ada_val_print_struct_union): ... here. Remove call to
13110 ada_check_typedef in inlined implementation.
13112 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13114 * ada-valprint.c (ada_val_print_gnat_array): New function,
13115 extracted from ada_val_print_1;
13116 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13117 (ada_val_print_flt, ada_val_print_struct_union)
13118 (ada_val_print_ref): Likewise.
13119 (ada_val_print_1): Delete variables i and elttype.
13120 Replace extracted-out code by call to corresponding
13123 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13125 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13127 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13129 * ada-valprint.c (ada_val_print_1): Replace calls to
13130 ada_val_print_1 by calls to val_print.
13132 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13134 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13135 Update calls to self accordingly. Replace calls to c_val_print
13136 by calls to val_print.
13138 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13140 * ada-valprint.c (print_record): Delete declaration.
13141 (adjust_type_signedness, ada_val_print_1): Likewise.
13142 (ada_val_print): Move function implementation down.
13143 (print_variant_part, print_field_values, print_record):
13144 Move function implementation up.
13146 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13148 * python/py-type.c (typy_get_name): New function.
13149 (type_object_getset): Add entry for attribute "name".
13150 * NEWS: Add entry mentioning this new attribute.
13152 2014-01-07 Yao Qi <yao@codesourcery.com>
13154 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13157 2014-01-07 Yao Qi <yao@codesourcery.com>
13159 * gnu-nat.c (info_port_rights): Add qualifier const to
13162 2014-01-07 Yao Qi <yao@codesourcery.com>
13164 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13166 2014-01-07 Yao Qi <yao@codesourcery.com>
13168 * gnu-nat.c (make_inf) Update declaration.
13169 (make_inf): Make it static.
13170 (inf_set_traced): Likewise.
13171 (inf_port_to_thread, inf_task_died_status): Likewise.
13173 2014-01-07 Yao Qi <yao@codesourcery.com>
13175 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13177 2014-01-07 Yao Qi <yao@codesourcery.com>
13179 * gnu-nat.c (_initialize_gnu_nat): Declare.
13181 2014-01-07 Yao Qi <yao@codesourcery.com>
13183 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13185 (struct gdbarch_info) <byte_order>: Change type to
13187 <byte_order_for_code>: Likewise.
13188 * gdbarch.c, gdbarch.h: Regenerated.
13190 2014-01-06 Sasha Smundak <asmundak@google.com>
13192 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13194 2014-01-06 Tom Tromey <tromey@redhat.com>
13196 * doublest.c (convert_doublest_to_floatformat): Use const, not
13198 * somread.c (som_symtab_read): Likewise.
13200 2014-01-07 Hui Zhu <hui@codesourcery.com>
13202 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13203 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13204 (gdb_bfd_fopen): Ditto.
13205 (gdb_bfd_openr): Ditto.
13206 (gdb_bfd_openw): Ditto.
13207 (gdb_bfd_openr_iovec): Ditto.
13208 (gdb_bfd_fdopenr): Ditto.
13209 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13210 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13212 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13214 * symfile-mem.c (symbol_file_add_from_memory): Removed
13215 gdb_bfd_stash_filename.
13217 2014-01-03 Doug Evans <dje@google.com>
13219 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13222 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13224 Update year range in copyright notice of all files.
13226 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13228 * top.c (print_gdb_version): Set copyright year to 2014.
13230 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13232 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13234 For older changes see ChangeLog-2013.
13240 version-control: never