This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/11557] Stale register and frame info in non-stop/async modes, just after resuming a thread


------- Additional Comments From pedro at codesourcery dot com  2010-04-29 14:35 -------
The problem is that we ended up with a stale regcache after resuming
the thread.  Any stop (internal or visible to the user) would flush
the cache, and so would a few user commands, like "info threads", but
iff you have more than one thread.

The always-works workaround, is to force a register cache
flush with "flushregs":

 (gdb) flushregs
 Register cache flushed.
 (gdb) info threads
 * 1 process 11017  (running)
 (gdb) p $pc
 Target is executing.
 (gdb) frame
 No stack.

("No stack" is bit of a lie in this case, but better than stale info!)


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=11557

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]