This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Identifying bottom-of-stack
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb at sources dot redhat dot com
- Cc: Roland McGrath <roland at redhat dot com>
- Date: Wed, 04 Aug 2004 12:00:50 -0400
- Subject: Identifying bottom-of-stack
Hello,
In the multi-threaded case, GDB's having fun identifying the outer-most
(oldest) frame and, unfortunatly, has this habit of backtracing past it :-/
Does anyone see a problem with:
- GLIBC marking those outermost frames with CFI indicating that both the
CFA and the RA are "unknown"?
- GDB's CFI unwinder recognizing this and returning a NULL frame ID (gdb
doesn't unwind _past_ such a frame).
I think this would give us a portable way of terminating the stack.
comments?
Andrew