9d4d36a73f
*** empty log message ***
2011-12-15 00:00:33 +00:00
0b6cb71e50
* defs.h (wait_to_die_with_timeout): Declare.
...
* utils.c: #include "gdb_wait.h".
(sigalrm_handler, wait_to_die_with_timeout): New functions.
* ser-pipe.c: Don't #include "gdb_wait.h".
(pipe_close): Give child a chance to die on its own after closing
its stdin before SIGTERM'ing it.
2011-12-14 20:53:57 +00:00
afaabefa90
Fix latest ChangeLog entry (forgot to give credit to reporter)
2011-12-14 20:27:47 +00:00
6475f2fe1c
fix uninitialized field in ada-lang.c (struct match_data)
...
Field found_sym in add_nonlocal_symbols's struct match_data is
used uninitialized. Rather than adding the initialization of
this field (to zero), we set the entire structure to zero first,
and then set the fields that need to be initialized to non-zero
next.
gdb/ChangeLog:
* ada-lang.c (add_nonlocal_symbols): Initialize data to
all zeros. Remove setting of data.arg_sym to NULL.
2011-12-14 20:24:59 +00:00
d6a0f6e0c7
* gdb.dwarf2/dw2-inline-param.exp: Log the objcopy command.
2011-12-14 19:59:25 +00:00
31015e1de0
* lib/gdb.exp (gdb_start_cmd): Fix error return value.
2011-12-14 19:50:18 +00:00
8d5b6c2b0a
Fix typo in "Changes since ...".
2011-12-14 18:55:12 +00:00
82bfbe7eff
2011-12-14 Pedro Alves <pedro@codesourcery.com>
...
* linux-low.c (linux_detach_one_lwp): Call
the_low_target.prepare_to_resume before detaching.
2011-12-14 17:33:24 +00:00
7b50312ad6
gdb/
...
2011-12-14 Pedro Alves <pedro@codesourcery.com>
PR threads/10729
* linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
pointer.
(linux_nat_prepare_to_resume): New global.
(lwp_free): New.
(purge_lwp_list): Use it.
(add_lwp): Call linux_nat_new_thread even on the first LWP.
Adjust to interface change.
(delete_lwp): Call lwp_free instead of xfree.
(detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
(linux_handle_syscall_trap, linux_handle_extended_wait)
(linux_nat_filter_event, resume_stopped_resumed_lwps): Call
linux_nat_prepare_to_resume before resuming.
(linux_stop_lwp): New.
(linux_nat_set_new_thread): Adjust.
(linux_nat_set_prepare_to_resume): New.
* linux-nat.h (struct arch_lwp_info): Forward declare.
(struct lwp_info) <arch_private>: New field.
(linux_stop_lwp): Declare.
(linux_nat_set_new_thread): Adjust.
(linux_nat_set_prepare_to_resume): New.
* i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
(struct i386_debug_reg_state): Move to i386-nat.h.
(dr_mirror): Comment.
(i386_debug_reg_state): New.
(i386_update_inferior_debug_regs): Simplify.
(i386_stopped_data_address): Use the debug register state from the
inferior, not from the local cache.
* i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
unset_status fields. New get_addr and get_control fields.
(DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
(DR_NADDR, DR_STATUS): New.
(struct i386_debug_reg_state): Moved from i386-nat.c.
* amd64-linux-nat.c (struct arch_lwp_info): New.
(amd64_linux_dr): Delete global.
(amd64_linux_dr_get_addr): New.
(amd64_linux_dr_get_control): New.
(amd64_linux_dr_unset_status): Delete.
(amd64_linux_dr_set_addr): Reimplement.
(amd64_linux_dr_reset_addr): Delete.
(update_debug_registers_callback): New.
(amd64_linux_dr_set_control): Reimplement.
(amd64_linux_dr_set_addr): Reimplement.
(amd64_linux_prepare_to_resume): New.
(amd64_linux_new_thread): Change parameter to an lwp pointer.
Reimplement.
(_initialize_amd64_linux_nat): No longer install
i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
amd64_linux_dr_get_control as i386_dr_low.get_control. Install
amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
amd64_linux_prepare_to_resume.
* i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
(DR_CONTROL): Delete.
(struct arch_lwp_info): New.
(i386_linux_dr): Delete global.
(i386_linux_dr_set_control): Reimplement.
(i386_linux_dr_get_addr): New.
(i386_linux_dr_set_addr): Reimplement.
(i386_linux_dr_get_control): New.
(update_debug_registers_callback): New.
(i386_linux_dr_unset_status): Delete.
(i386_linux_dr_set_addr): Reimplement.
(i386_linux_prepare_to_resume): New.
(i386_linux_new_thread): Change parameter to an lwp pointer.
Reimplement.
(_initialize_i386_linux_nat): No longer install
i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
i386_linux_dr_get_control as i386_dr_low.get_control. Install
i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
i386_linux_prepare_to_resume.
* arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
lwp pointer. Adjust.
* ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
* mips-linux-nat.c (mips_linux_new_thread): Likewise.
* ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
* s390-nat.c (s390_fix_watch_points): Likewise.
* i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
(DR_CONTROL): Delete.
(i386_darwin_dr_reset_addr): Delete.
(i386_darwin_dr_get_addr): New.
(i386_darwin_dr_get_control): New.
* go32-nat.c
(go32_get_dr7, go32_get_dr): New.
(init_go32_ops): No longer install i386_dr_low.reset_addr.
Install go32_get_dr7 as i386_dr_low.get_control. Install
go32_get_dr as i386_dr_low.get_addr.
* i386bsd-nat.c (i386bsd_dr_get): New.
(i386bsd_dr_reset_addr): Delete.
(i386bsd_dr_get_addr): New.
(i386bsd_dr_get_status): Use i386bsd_dr_get.
(i386bsd_dr_get_control): New.
* i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
(i386bsd_dr_get_addr): New.
(i386bsd_dr_get_control): New.
* i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
i386bsd_dr_get_control as i386_dr_low.get_control. Install
i386bsd_dr_get_addr as i386_dr_low.get_addr.
* windows-nat.c (init_windows_ops): No longer install
i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
as i386_dr_low.get_addr.
(cygwin_get_dr): New.
(cygwin_get_dr7): New.
gdb/testsuite/
2011-12-14 Pedro Alves <pedro@codesourcery.com>
PR threads/10729
* gdb.mi/watch-nonstop.c: New file.
* gdb.mi/mi-watch-nonstop.exp: New file.
2011-12-14 17:20:32 +00:00
1963ff9682
Add PR gdb/8367 to basenames-may-differ patch.
2011-12-14 16:05:59 +00:00
37acd67cf7
Add PR # 7200 to: Make "!" an alias for "shell".
2011-12-14 15:31:55 +00:00
dd110abf04
2011-12-14 Pedro Alves <pedro@codesourcery.com>
...
* ia64-tdep.c (ia64_memory_remove_breakpoint): Use
target_write_raw_memory.
* m32r-tdep.c (m32r_memory_remove_breakpoint): Use
target_write_raw_memory.
* microblaze-linux-tdep.c
(microblaze_linux_memory_remove_breakpoint): Use
target_write_raw_memory.
* ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
target_write_raw_memory.
2011-12-14 14:55:27 +00:00
2fb860fcbc
2011-12-14 Pedro Alves <pedro@codesourcery.com>
...
* gdb.texinfo (Implementing a Remote Stub): Explain that you
should transfer control to the stub in the startup code instead of
in main. Mention the need to get past the initial breakpoint.
2011-12-14 14:46:24 +00:00
ad32032e2e
Make decode_line_internal static.
...
gdb/ChangeLog:
* linespec.c (decode_line_internal): Make static.
2011-12-14 14:34:59 +00:00
d14c4eb729
gdb/
...
* breakpoint.c (create_breakpoint): Set canonical.addr_string
for static tracepoint.
2011-12-14 07:56:59 +00:00
712c65750b
gdb/gdbserver/
...
* tracepoint.c (gdb_ust_thread): Don't ignore return value
of write.
2011-12-14 07:47:15 +00:00
d54d1edf1a
2011-12-14 Yao Qi <yao@codesourcery.com>
...
* i386-low.c (i386_low_stopped_data_address): Initialize local
variable `control'.
2011-12-14 07:41:06 +00:00
93995a1655
*** empty log message ***
2011-12-14 00:00:02 +00:00
924437bc13
gdb/doc/
...
2011-12-13 Pedro Alves <pedro@codesourcery.com>
* gdb.texinfo (Implementing a Remote Stub): Explain that you
should transfer control to the stub in the startup code instead of
in main. Mention the need to get past the initial breakpoint.
gdb/testsuite/
2011-12-13 Pedro Alves <pedro@codesourcery.com>
Doug Evans <dje@google.com>
* lib/gdb.exp (gdb_run_cmd, runto_main, gdb_compile)
(clean_restart): Remove references to the gdb_stub target board
variable.
(gdb_step_for_stub): Delete.
* gdb.base/annota1.exp: Remove all references to [target_info
exists gdb_stub], gdb_step_for_stub and usestubs.
* gdb.base/annota3.exp: Ditto.
* gdb.base/async.exp: Ditto.
* gdb.base/break.exp: Ditto.
* gdb.base/code-expr.exp: Ditto.
* gdb.base/commands.exp: Ditto.
* gdb.base/completion.exp: Ditto.
* gdb.base/condbreak.exp: Ditto.
* gdb.base/consecutive.exp: Ditto.
* gdb.base/cvexpr.exp: Ditto.
* gdb.base/define.exp: Ditto.
* gdb.base/display.exp: Ditto.
* gdb.base/ena-dis-br.exp: Ditto.
* gdb.base/environ.exp: Ditto.
* gdb.base/gnu-ifunc.exp: Ditto.
* gdb.base/maint.exp: Ditto.
* gdb.base/pending.exp: Ditto.
* gdb.base/sect-cmd.exp: Ditto.
* gdb.base/sepdebug.exp: Ditto.
* gdb.base/unload.exp: Ditto.
* gdb.base/watchpoint-solib.exp: Ditto.
* gdb.cp/annota2.exp: Ditto.
* gdb.cp/annota3.exp: Ditto.
* gdb.dwarf2/dw2-inline-param.exp: Ditto.
* gdb.hp/gdb.compat/xdb1.exp: Ditto.
* gdb.mi/mi-pending.exp: Ditto.
* gdb.trace/circ.exp: Ditto.
* gdb.cp/ovldbreak.exp: Ditto. Adjust expected line numbers.
* gdb.base/list.exp: Ditto.
* gdb.base/all-types.c: Remove all calls to set_debug_traps and
breakpoint function and all references to the usestubs macro.
* gdb.base/exprs.c: Ditto.
* gdb.base/freebpcmd.c: Ditto.
* gdb.base/bitfields.c: Ditto.
* gdb.base/bitfields2.c: Ditto.
* gdb.base/break.c: Ditto.
* gdb.base/call-sc.c: Ditto.
* gdb.base/call-signals.c: Ditto.
* gdb.base/callfuncs.c: Ditto.
* gdb.base/charset.c: Ditto.
* gdb.base/consecutive.c: Ditto.
* gdb.base/constvars.c: Ditto.
* gdb.base/funcargs.c: Ditto.
* gdb.base/int-type.c: Ditto.
* gdb.base/interrupt.c: Ditto.
* gdb.base/langs0.c: Ditto.
* gdb.base/list0.c: Ditto.
* gdb.base/mips_pro.c: Ditto.
* gdb.base/miscexprs.c: Ditto.
* gdb.base/nodebug.c: Ditto.
* gdb.base/opaque0.c: Ditto.
* gdb.base/pointers.c: Ditto.
* gdb.base/printcmds.c: Ditto.
* gdb.base/ptype.c: Ditto.
* gdb.base/recurse.c: Ditto.
* gdb.base/reread1.c: Ditto.
* gdb.base/reread2.c: Ditto.
* gdb.base/restore.c: Ditto.
* gdb.base/return.c: Ditto.
* gdb.base/run.c: Ditto.
* gdb.base/scope0.c: Ditto.
* gdb.base/sepdebug.c: Ditto.
* gdb.base/setshow.c: Ditto.
* gdb.base/setvar.c: Ditto.
* gdb.base/sigall.c: Ditto.
* gdb.base/signals.c: Ditto.
* gdb.base/structs.c: Ditto.
* gdb.base/structs2.c: Ditto.
* gdb.base/testenv.c: Ditto.
* gdb.base/twice.c: Ditto.
* gdb.base/unwindonsignal.c: Ditto.
* gdb.base/watchpoint.c: Ditto.
* gdb.base/watchpoints.c: Ditto.
* gdb.base/whatis.c: Ditto.
* gdb.cp/classes.cc: Ditto.
* gdb.cp/cplusfuncs.cc: Ditto.
* gdb.cp/derivation.cc: Ditto.
* gdb.cp/formatted-ref.cc: Ditto.
* gdb.cp/misc.cc: Ditto.
* gdb.cp/overload.cc: Ditto.
* gdb.cp/ovldbreak.cc: Ditto.
* gdb.cp/ref-params.cc: Ditto.
* gdb.cp/ref-types.cc: Ditto.
* gdb.cp/templates.cc: Ditto.
* gdb.cp/virtfunc.cc: Ditto.
* gdb.hp/gdb.aCC/run.c: Ditto.
* gdb.hp/gdb.base-hp/callfwmall.c: Ditto.
* gdb.hp/gdb.compat/xdb0.c: Ditto.
* gdb.reverse/consecutive-reverse.c: Ditto.
* gdb.reverse/sigall-reverse.c: Ditto.
* gdb.reverse/until-reverse.c: Ditto.
* gdb.reverse/watch-reverse.c: Ditto.
* gdb.trace/actions.c: Ditto.
* gdb.trace/circ.c: Ditto.
* gdb.trace/collection.c: Ditto.
2011-12-13 17:22:11 +00:00
6210a125f8
2011-12-13 Pedro Alves <pedro@codesourcery.com>
...
PR remote/13492
* i386-low.c (i386_low_stopped_data_address): Avoid fetching
DR_CONTROL unless necessary. Extend comments.
* linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
2011-12-13 16:11:26 +00:00
fabde4854c
2011-12-13 Pedro Alves <pedro@codesourcery.com>
...
* gdb.base/watchpoint.c (struct foo2, foo2, struct foo4, foo4)
(func6, func7): New.
(main): Call func6 and func7.
* gdb.base/watchpoint.exp (test_wide_location_1)
(test_wide_location_2): New.
(top level): Re-enable hardware watchpoints if necessary. Call
test_wide_location_1 and test_wide_location_2.
2011-12-13 16:05:24 +00:00
8837a20f4f
Create new section in NEWS for next release branch
...
gdb/ChangeLog:
* NEWS: Create a new section for the next release branch.
Rename the section of the current branch, now that it has
been cut.
2011-12-13 13:36:38 +00:00
25564b6672
Record GDB 7.4 branch creation. Bump version number to 7.4.50.20111213-cvs.
2011-12-13 13:06:15 +00:00
2ece82445d
2011-12-13 Yao Qi <yao@codesourcery.com>
...
* tracepoint.c (trace_buffer_alloc): Replace magic numbers with
macros.
(upload_fast_traceframes, upload_fast_traceframes): Likewise.
2011-12-13 01:26:56 +00:00
8a40f88195
*** empty log message ***
2011-12-13 00:00:02 +00:00
ff7d1690b4
2011-12-11 Yao Qi <yao@codesourcery.com>
...
* gdb.trace/status-stop.exp: Skip it if target doesn't support trace.
2011-12-12 02:11:45 +00:00
b5de74e22e
*** empty log message ***
2011-12-12 00:00:03 +00:00
7dda8cff78
[Ada] improve message when cannot insert Ada exception catchpoint.
...
gdb/ChangeLog:
* ada-lang.c (ada_exception_support_info_sniffer): Improve
error message.
2011-12-11 17:38:17 +00:00
3eecfa5559
[Ada] Make the exception_support_info data per inferior.
...
The ada-lang module was using a static global called "exception_info"
for all inferiors. But each inferior might be different, and thus
this patch makes this data per-inferior.
gdb/ChangeLog:
* ada-lang.c (struct ada_inferior_data) [exception_info]:
New field.
(exception_info): Delete.
(ada_exception_support_info_sniffer): Get exception_support_info
data from our per-inferior data. Adjust code accordingly.
(ada_unhandled_exception_name_addr_from_raise): Likewise.
(ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
(ada_executable_changed_observer): Delete.
(_initialize_ada_language): Remove call to
observer_attach_executable_changed.
2011-12-11 17:37:56 +00:00
a6af7abe5d
Warn if missing debug info for Ada exception catchpoints
...
This patch should help the user understand why the debugger is not
able to insert Ada exception catchpoints when the Ada runtime was
stripped of debugging info, as is often the case on many GNU/Linux
distros:
(gdb) catch exception
Your Ada runtime appears to be missing some debugging information.
Cannot insert Ada exception catchpoint in this configuration.
gdb/ChangeLog:
* ada-lang.c (ada_has_this_exception_support): Raise an error
if we could find the Ada exception hook in the Ada runtime,
but no debugging info for that hook.
gdb/testsuite/ChangeLog:
* gdb.ada/catch_ex.exp, gdb.ada/mi_catch_ex.exp: Adjust
expected output for unsupported case.
2011-12-11 17:36:10 +00:00
f17011e0cd
Ada exception catchpoint support cleanup.
...
This patch cleans up a bit the way we detect which type of runtime
the program uses with respect to Ada exceptions. It also removes
an unnecessary check in ada_exception_sal which is already performed
by ada_exception_support_info_sniffer.
Some of the changes are preparation work for detecting the situation
where the Ada runtime is found, but lacking debugging info.
gdb/ChangeLog:
* ada-lang.c (ada_has_this_exception_support): New function,
extracted out of ada_exception_sal and ada_exception_sal.
(ada_exception_support_info_sniffer): Simplify by using
ada_has_this_exception_support.
(ada_exception_sal): Replace unnecessary checks by assertions.
Minor simplifications.
2011-12-11 17:35:34 +00:00
d3fbdd8686
* breakpoint.c (update_global_location_list): Remove nested
...
definition of `b'(-Wshadow).
2011-12-11 03:04:45 +00:00
eacd795a56
* breakpoint.c (insert_breakpoint_locations): Rename `error' to
...
`error_flag'(-Wshadow).
2011-12-11 02:53:28 +00:00
ad13d8dfa3
* bfd-target.c (target_bfd_reopen): Rename `bfd' to
...
`abfd'(-Wshadow).
2011-12-11 02:46:54 +00:00
917793afae
* annotate.c (annotate_array_section_begin): Rename `index' to
...
`idx'(-Wshadow).
2011-12-11 02:44:15 +00:00
d48ebb5b06
* amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
...
`idx'(-Wshadow).
2011-12-11 02:41:31 +00:00
9ed936ec47
* amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
...
`syscall' to `syscall_number'(-Wshadow).
2011-12-11 02:34:26 +00:00
a35ddb4476
* ada-lang.c (remove_extra_symbols): Rename `remove' to
...
`remove_p'(-Wshadow).
2011-12-11 02:31:04 +00:00
e5e61bd728
* ada-exp.y (write_var_or_type): Rename nested `renaming' to
...
`ren_sym'(-Wshadow).
2011-12-11 02:27:24 +00:00
cc337c3c0a
*** empty log message ***
2011-12-11 00:00:32 +00:00
b0df02fd80
* dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
...
debug_types_section. All uses updated.
(partial_read_comp_unit_head): Rename parameter is_debug_type_section
to is_debug_types_section.
2011-12-10 23:57:40 +00:00
61638e15c5
gdb/testsuite/
...
PR testsuite/12649
* gdb.trace/ftrace.exp (test_fast_tracepoints): Import gdb_prompt.
Protect gdb_test_multiple by final $gdb_prompt match.
2011-12-10 23:05:08 +00:00
d200ab1e84
* python/py-auto-load.c (source_section_scripts): Call xfree
...
instead of free.
2011-12-10 22:51:47 +00:00
0a00efc364
gdb/testsuite/
...
* gdb.cp/static-method.exp (have_gcc_45682_fixed, info addr A::func()):
New variable, new test.
(list static-method.cc:xxx::(anonymous namespace)::A::func)
(list 'static-method.cc:xxx::(anonymous namespace)::A::func')
(list 'static-method.cc':'xxx::(anonymous namespace)::A::func')
(list static-method.cc:'xxx::(anonymous namespace)::A::func'): KFAIL
them if HAVE_GCC_45682_FIXED is not set.
2011-12-10 15:58:14 +00:00
4511b1ba87
2011-12-10 Hui Zhu <teawater@gmail.com>
...
Yao Qi <yao@codesourcery.com>
* tracepoint.c (start_tracing): Clear `inserted' flag.
2011-12-10 Yao Qi <yao@codesourcery.com>
* gdb.trace/status-stop.exp: New.
* gdb.trace/status-stop.c: New.
2011-12-10 15:16:35 +00:00
df5a4bd3a5
2011-12-10 Hui Zhu <teawater@gmail.com>
...
* tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
2011-12-10 09:41:19 +00:00
1afeeb75f2
* breakpoint.c (bp_loc_is_permanent): Rename `brk' to
...
`bpoint'(-Wshadow).
2011-12-10 00:22:56 +00:00
80e1d41794
* breakpoint.c (update_static_tracepoint): Rename nested `sal' and
...
`marker' variables to `sal2' and `tpmarker' respectively
(-Wshadow).
2011-12-10 00:15:54 +00:00
20d6b87c2b
*** empty log message ***
2011-12-10 00:00:03 +00:00
04ca3c2272
2011-12-09 Andrew Pinski <apinski@cavium.com>
...
* linespec.c (hash_address_entry): Use iterative_hash_object on each
field rather than the struct itself.
2011-12-09 19:22:31 +00:00