Some java questions

Keith Seitz keiths@redhat.com
Tue Sep 9 23:36:00 GMT 2008


Tom Tromey wrote:

> To support Java 1.5, we had to add return types to name mangling.
> These are needed due to covariant return types.

Ah, okay, that explains a lot.

> What you are seeing here is just how the demangler chooses to print
> this information.  E.g., when I 'nm --demangle=java' a simple java
> program, I see:
> 
> 0804891e T h.main(java.lang.String[])void
>          U java.lang.Object.toString()java.lang.String
> [etc]

Yuck. Nonetheless, it looks like that's the status quo, and I need to 
fix it. I'll also look into either fixing the "info func" printout or at 
least add a test case for that so that it doesn't disappear.

Keith



More information about the Gdb mailing list