where do stack traces get filled in?
Cedric Berger
cedric@wireless-networks.com
Wed Dec 12 23:43:00 GMT 2001
Tom Tromey wrote:
>>>>>>"Adam" == Adam Megacz <gcj@lists.megacz.com> writes:
>>>>>>>>Adam> Are backtraces a target-specific thing (which would have to be
>Adam> rewritten for win32), or would I be able to do some clever
>Adam> cut-and-paste out of glibc? Or is this impossible with SJLJ
>Adam> exceptions?
>>Adam> Well, I guess there's licensing issues with glibc (LGPL vs
>Adam> GPL-with-exception); perhaps "review the glibc code, learn how
>Adam> it works, and then reimplement the same algorithm".
>>I don't really know what exactly would have to be done.
>For all I know there is some Win32 API you could use here.
>I've never used that, but if you don't know where to start, you may take
a look
at the following Windows DLL: "IMAGEHLP.DLL", for example its "StackWalk"
function. There was some "Under the hood" article explaining how to use it.
Cedric
More information about the Java
mailing list