diff options
author | Andrew Stubbs <andrew.stubbs@st.com> | 2006-01-16 12:55:18 +0000 |
---|---|---|
committer | Andrew Stubbs <andrew.stubbs@st.com> | 2006-01-16 12:55:18 +0000 |
commit | f365de7342a5440ee8d04545d3b5b248102c4803 (patch) | |
tree | 470d3d62dd1a274e852dd1f7e3a66d22476f615a /gdb/breakpoint.c | |
parent | 6b81c8553207b3509c64bba8af4b84c54937e034 (diff) | |
download | gdb-f365de7342a5440ee8d04545d3b5b248102c4803.zip gdb-f365de7342a5440ee8d04545d3b5b248102c4803.tar.gz gdb-f365de7342a5440ee8d04545d3b5b248102c4803.tar.bz2 |
2006-01-16 Andrew Stubbs <andrew.stubbs@st.com>
* breakpoint.c (insert_breakpoints): Check that a thread exists
before inserting thread specific breakpoints.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 239cd36..064762d 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -1142,6 +1142,12 @@ insert_breakpoints (void) if (!breakpoint_enabled (b->owner)) continue; + /* There is no point inserting thread-specific breakpoints if the + thread no longer exists. */ + if (b->owner->thread != -1 + && !valid_thread_id (b->owner->thread)) + continue; + /* FIXME drow/2003-10-07: This code should be pushed elsewhere when hardware watchpoints are split into multiple loc breakpoints. */ if ((b->loc_type == bp_loc_hardware_watchpoint |