Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb and gcj symbols
@ 2001-09-16 11:29 Anthony Green
  0 siblings, 0 replies; 3+ messages in thread
From: Anthony Green @ 2001-09-16 11:29 UTC (permalink / raw)
  To: gdb

GDB's java support is quite broken right now.  Here's an example...

(gdb) set lang java
(gdb) ptype jmisc
type = class jmisc  extends java.lang.Object {

    void main__5jmisc_ZN5jmisc4mainEP6JArrayIPN4java4lang6StringEE;
    void _ZN5jmiscC1Ev;
}

The stabs data refers to this correctly mangled symbol...

_ZN5jmisc4mainEP6JArrayIPN4java4lang6StringEE

So how does the physname get the "main__5jmisc" prefix?  The full
main__5jmisc_ZN5jmisc4mainEP6JArrayIPN4java4lang6StringEE string is
passed to the v3 demangler, which doesn't recognize it and assumes it
is a C symbol.

Any ideas?

Thanks,

AG


^ permalink raw reply	[flat|nested] 3+ messages in thread
* gdb and gcj symbols
@ 2001-10-04 22:57 Anthony Green
  2001-10-04 23:28 ` Daniel Berlin
  0 siblings, 1 reply; 3+ messages in thread
From: Anthony Green @ 2001-10-04 22:57 UTC (permalink / raw)
  To: gdb

GDB's java support is quite broken right now.  Here's an example...

(gdb) set lang java
(gdb) ptype jmisc
type = class jmisc  extends java.lang.Object {

    void main__5jmisc_ZN5jmisc4mainEP6JArrayIPN4java4lang6StringEE;
    void _ZN5jmiscC1Ev;
}

The stabs data refers to this correctly mangled symbol...

_ZN5jmisc4mainEP6JArrayIPN4java4lang6StringEE

So how does the physname get the "main__5jmisc" prefix?  The full
main__5jmisc_ZN5jmisc4mainEP6JArrayIPN4java4lang6StringEE string is
passed to the v3 demangler, which doesn't recognize it and assumes it
is a C symbol.

Any ideas?

Thanks,

AG



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-10-04 23:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-16 11:29 gdb and gcj symbols Anthony Green
2001-10-04 22:57 Anthony Green
2001-10-04 23:28 ` Daniel Berlin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox