New C++ ABI: patches.

Bryce McKinlay bryce@albatross.co.nz
Thu Jan 11 02:35:00 GMT 2001


Alexandre Petit-Bianco wrote:

> I'm still seeing a problem with:
>
>   class dotclass {
>     static void foo (Object x) { System.out.println (x.toString()); }
>     public static void main (String[] arg) { foo(int.class); }
>   }

Well, the problem is clear:

(gdb) r
Starting program: /home/bryce/projects/tests/./dc
[New Thread 1024 (LWP 32065)]
[Switching to Thread 1024 (LWP 32065)]

Breakpoint 1, main (argc=1, argv=0xbffffa3c) at /tmp/ccvjQRsxmain.i:10
10      /tmp/ccvjQRsxmain.i: No such file or directory.
(gdb) p _ZN4java4lang7Integer4TYPEE
$1 = (java.lang.Class *) 0x0

But the solution may require some thought ;-)

Does anyone have a gdb that demangles the new ABI symbols properly? Does it work ok with
java? (the last cvs gdb I tried, a few months ago, seemed horribly broken...)

regards

  [ bryce ]




More information about the Java mailing list