|
|
01917d |
Problem occurs with python and its get_current_arch () as it selects
|
|
|
01917d |
selected_frame and current_frame while still inferior_ptid is valid for the
|
|
|
01917d |
original parent. But since this place it is already attached and later
|
|
|
01917d |
unwinders try to access it, breaking:
|
|
|
01917d |
-PASS: gdb.threads/watchpoint-fork.exp: child: singlethreaded: breakpoint after the first fork
|
|
|
01917d |
-PASS: gdb.threads/watchpoint-fork.exp: child: singlethreaded: watchpoint after the first fork
|
|
|
01917d |
-PASS: gdb.threads/watchpoint-fork.exp: child: singlethreaded: breakpoint after the second fork
|
|
|
01917d |
-PASS: gdb.threads/watchpoint-fork.exp: child: singlethreaded: watchpoint after the second fork
|
|
|
01917d |
-PASS: gdb.threads/watchpoint-fork.exp: child: singlethreaded: finish
|
|
|
01917d |
+FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: breakpoint after the first fork
|
|
|
01917d |
+FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: watchpoint after the first fork
|
|
|
01917d |
+FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: breakpoint after the second fork
|
|
|
01917d |
+FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: watchpoint after the second fork
|
|
|
01917d |
+FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: finish
|
|
|
01917d |
|
|
|
01917d |
--- ./gdb/infrun.c 2009-12-21 20:26:30.000000000 +0100
|
|
|
01917d |
+++ ./gdb/infrun.c 2009-12-21 20:26:11.000000000 +0100
|
|
|
01917d |
@@ -375,6 +375,9 @@ follow_fork (void)
|
|
|
01917d |
}
|
|
|
01917d |
else
|
|
|
01917d |
{
|
|
|
01917d |
+ /* Possibly referenced PARENT is no longer valid. */
|
|
|
01917d |
+ reinit_frame_cache ();
|
|
|
01917d |
+
|
|
|
01917d |
/* This pending follow fork event is now handled, one way
|
|
|
01917d |
or another. The previous selected thread may be gone
|
|
|
01917d |
from the lists by now, but if it is still around, need
|