|
Jan Kratochvil |
35705ae |
commit 8800e981e44d9fb518feab23219447bf5fe7cc92
|
|
Jan Kratochvil |
35705ae |
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
Jan Kratochvil |
35705ae |
Date: Fri Jan 28 14:25:41 2011 +0100
|
|
Jan Kratochvil |
35705ae |
|
|
Jan Kratochvil |
35705ae |
Fix breakpoints unchaining.
|
|
Jan Kratochvil |
35705ae |
Possibly: https://bugzilla.redhat.com/show_bug.cgi?id=673483
|
|
Jan Kratochvil |
35705ae |
|
|
Jan Kratochvil |
35705ae |
[ Backported. ]
|
|
Jan Kratochvil |
35705ae |
|
|
Jan Kratochvil |
35705ae |
--- gdb-7.2/gdb/breakpoint.c.orig 2011-01-28 14:31:54.000000000 +0100
|
|
Jan Kratochvil |
35705ae |
+++ gdb-7.2/gdb/breakpoint.c 2011-01-28 14:33:14.000000000 +0100
|
|
Jan Kratochvil |
35705ae |
@@ -9777,20 +9777,18 @@ delete_breakpoint (struct breakpoint *bp
|
|
Jan Kratochvil |
35705ae |
breakpoints gets resolved. */
|
|
Jan Kratochvil |
35705ae |
if (bpt->related_breakpoint != bpt)
|
|
Jan Kratochvil |
35705ae |
{
|
|
Jan Kratochvil |
35705ae |
+ struct breakpoint *related;
|
|
Jan Kratochvil |
35705ae |
+
|
|
Jan Kratochvil |
35705ae |
if (bpt->type == bp_watchpoint_scope)
|
|
Jan Kratochvil |
35705ae |
watchpoint_del_at_next_stop (bpt->related_breakpoint);
|
|
Jan Kratochvil |
35705ae |
else if (bpt->related_breakpoint->type == bp_watchpoint_scope)
|
|
Jan Kratochvil |
35705ae |
watchpoint_del_at_next_stop (bpt);
|
|
Jan Kratochvil |
35705ae |
- else
|
|
Jan Kratochvil |
35705ae |
- {
|
|
Jan Kratochvil |
35705ae |
- struct breakpoint *related;
|
|
Jan Kratochvil |
35705ae |
|
|
Jan Kratochvil |
35705ae |
- /* Unlink bpt from the bpt->related_breakpoint ring. */
|
|
Jan Kratochvil |
35705ae |
- for (related = bpt; related->related_breakpoint != bpt;
|
|
Jan Kratochvil |
35705ae |
- related = related->related_breakpoint);
|
|
Jan Kratochvil |
35705ae |
- related->related_breakpoint = bpt->related_breakpoint;
|
|
Jan Kratochvil |
35705ae |
- bpt->related_breakpoint = bpt;
|
|
Jan Kratochvil |
35705ae |
- }
|
|
Jan Kratochvil |
35705ae |
+ /* Unlink bpt from the bpt->related_breakpoint ring. */
|
|
Jan Kratochvil |
35705ae |
+ for (related = bpt; related->related_breakpoint != bpt;
|
|
Jan Kratochvil |
35705ae |
+ related = related->related_breakpoint);
|
|
Jan Kratochvil |
35705ae |
+ related->related_breakpoint = bpt->related_breakpoint;
|
|
Jan Kratochvil |
35705ae |
+ bpt->related_breakpoint = bpt;
|
|
Jan Kratochvil |
35705ae |
}
|
|
Jan Kratochvil |
35705ae |
|
|
Jan Kratochvil |
35705ae |
observer_notify_breakpoint_deleted (bpt->number);
|