This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Idea for stack traces
- From: Tom Tromey <tromey at redhat dot com>
- To: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Cc: java at gcc dot gnu dot org
- Date: 08 Mar 2002 13:09:47 -0700
- Subject: Re: Idea for stack traces
- References: <3C88EE69.5080506@waitaki.otago.ac.nz>
- Reply-to: tromey at redhat dot com
>>>>> "Bryce" == Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
Bryce> During class initialization, some data structure is built up
Bryce> with the code pointers (from _Jv_Method) for each method in the
Bryce> class. When a stack trace is required, we traverse this data
Bryce> structure to determine which method each stack PC value belongs
Bryce> to, and the method name and argument values from the _Jv_Method
Bryce> structure are used when printing the stack trace.
We also need a way to handle interpreted methods, where the PC range
is always the same but the actual method is determined in the frame
itself. This can be a slower method if need be. Looking at the ORP
interfaces here would be good.
Tom