This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


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

Re: New C++ ABI: patches.


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 ]



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