This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: [patch] java run-time stack trace


Per Bothner wrote:

> it gets a little tricky with CNI native methods: They should be written
> in Java
> style, but then how do we distinguish Java and C++ methods - we cannot
> look at the file extension.

Actually, I'd like to have CNI functions mangled in C++ style. This is
how they are written in the source code (think copy/search/paste), and it
can help to make it very obvious when the stack trace goes through native
code. Also, this is consistent with GDB.

> > - drop the PC address display,
>
> I have mixed feeling about this.  The pc is useful when we don't have
> line numbers available, and using gdb isn't always an option,
> at least not online.

How about we display the pc in the case where line numbers arn't
available? This should be easy to determine if we use libbfd.so directly,
with the existing addr2line code as a fallback if bfd isn't available.
Hmm... hopefully bfd is threadsafe?

regards

  [ bryce ]



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