aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2009-06-24 16:41:30 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2009-06-24 16:41:30 +0000
commit0fd8e87fea23317d3db05d5d4ec5c97a5250bb21 (patch)
tree5bfc82c90425b4aa9c47f4700ba5a3daeb9c0ac3 /gdb/infcmd.c
parent0f54c268db73bed9aa42b3cd4e50af2a26f1e0c4 (diff)
downloadgdb-0fd8e87fea23317d3db05d5d4ec5c97a5250bb21.zip
gdb-0fd8e87fea23317d3db05d5d4ec5c97a5250bb21.tar.gz
gdb-0fd8e87fea23317d3db05d5d4ec5c97a5250bb21.tar.bz2
* breakpoint.h (set_longjmp_breakpoint): Add THREAD argument.
(enum bptype): Add bp_longjmp_master. * breakpoint.c (create_longjmp_master_breakpoint): New function. (update_breakpoints_after_exec): Handle bp_longjmp_master breakpoints. Call create_longjmp_master_breakpoint. (print_it_typical, bpstat_stop_status, bpstat_what, print_one_breakpoint_location, allocate_bp_location, mention, delete_command, breakpoint_re_set_one): Handle bp_longjmp_master. (breakpoint_re_set): Call create_longjmp_master_breakpoint. (create_longjmp_breakpoint): Delete. (set_longjmp_breakpoint): Add THREAD argument. Reimplement to install momentary clones of bp_longjmp_master breakpoints. * infcmd.c (step_1): Pass thread to set_longjmp_breakpoint.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index a8ab1f0..47064e5 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -831,7 +831,7 @@ step_1 (int skip_subroutines, int single_inst, char *count_string)
if (in_thread_list (inferior_ptid))
thread = pid_to_thread_id (inferior_ptid);
- set_longjmp_breakpoint ();
+ set_longjmp_breakpoint (thread);
make_cleanup (delete_longjmp_breakpoint_cleanup, &thread);
}