Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Weird gdb problem
@ 2006-07-18 16:07 Andrew Haley
  2006-07-18 17:09 ` Andrew Haley
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Haley @ 2006-07-18 16:07 UTC (permalink / raw)
  To: gdb; +Cc: java

I seem to have broken the debuginfo from gcj. 

When I step into a Java method I don't get info about args passed to
methods.  But this is only for debuginfo compiled into libgcj -- when
I compile a test case myself I get correct args displayed.  As in this
one, where I step into p.p(), the argument "this" is displayed:


(gdb) s
p.p() (this=@2aaaad588e30) at Hello.java:7
(gdb) 
0x00002aaaac057820 in java.lang.Object.Object() ()
    at /mnt/zebedee/aph/gcc/gcj-eclipse/libjava/java/lang/Object.java:360


Note that the first step gave the value of the "this" argument, and
the second one (in libgcj) didn't.  Continuing:


(gdb) 
java.io.PrintStream.println(java.lang.String)void ()
    at /mnt/zebedee/aph/gcc/gcj-eclipse/libjava/java/io/PrintStream.java:482
(gdb) info args
No arguments.


So, to recap: I get values of args to methods displayed in gdb, but
only when I compile test cases.  When stepping into libgcj itself, the
values of args aren't displayed.

So ... might anyone in gdb land like to guess how this might have broken?

TVM,
Andrew.


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

* Re: Weird gdb problem
  2006-07-18 16:07 Weird gdb problem Andrew Haley
@ 2006-07-18 17:09 ` Andrew Haley
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Haley @ 2006-07-18 17:09 UTC (permalink / raw)
  To: gdb, java

Andrew Haley writes:
 > I seem to have broken the debuginfo from gcj. 
 > 
 > When I step into a Java method I don't get info about args passed to
 > methods.  But this is only for debuginfo compiled into libgcj -- when
 > I compile a test case myself I get correct args displayed.  As in this
 > one, where I step into p.p(), the argument "this" is displayed:
 > 
 > 
 > (gdb) s
 > p.p() (this=@2aaaad588e30) at Hello.java:7
 > (gdb) 
 > 0x00002aaaac057820 in java.lang.Object.Object() ()
 >     at /mnt/zebedee/aph/gcc/gcj-eclipse/libjava/java/lang/Object.java:360
 > 
 > 
 > Note that the first step gave the value of the "this" argument, and
 > the second one (in libgcj) didn't.  Continuing:
 > 
 > 
 > (gdb) 
 > java.io.PrintStream.println(java.lang.String)void ()
 >     at /mnt/zebedee/aph/gcc/gcj-eclipse/libjava/java/io/PrintStream.java:482
 > (gdb) info args
 > No arguments.
 > 
 > 
 > So, to recap: I get values of args to methods displayed in gdb, but
 > only when I compile test cases.  When stepping into libgcj itself, the
 > values of args aren't displayed.
 > 
 > So ... might anyone in gdb land like to guess how this might have broken?

We might have found the bug.  Sorry for the noise...

Andrew.


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

end of thread, other threads:[~2006-07-18 16:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-18 16:07 Weird gdb problem Andrew Haley
2006-07-18 17:09 ` Andrew Haley

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