public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
* finding the bottom of the stack
@ 2002-04-23  5:46 Adam Megacz
  0 siblings, 0 replies; only message in thread
From: Adam Megacz @ 2002-04-23  5:46 UTC (permalink / raw)
  To: java


I'm implementing Bryce's idea for stack traces with reflection data,
but if I keep reading ebp (ia32) off the stack and dereferencing it, I
wind up launching off into nowhereland when I pass the bottom of the
stack (ie there's no 0x0000 marker below the bottom of the stack, at
least not on Win32).

How do you know when you've hit the bottom? I guess I could watch for a
return value in Thread::run()... is there another way?

Tricks for knowing the boundaries of your executable's image would be
helpful too, although I somehow doubt that there's a
non-Win32-specific way to do this (I'll dredge the API docs).

  - a

-- 
The web is dead; long live the Internet.
http://www.xwt.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-04-23  4:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-23  5:46 finding the bottom of the stack Adam Megacz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).