Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew Haley <aph@redhat.com>
To: gdb@sourceware.org
Cc: java@gcc.gnu.org
Subject: Weird gdb problem
Date: Tue, 18 Jul 2006 16:07:00 -0000	[thread overview]
Message-ID: <17596.64787.198441.885314@zebedee.pink> (raw)

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.


             reply	other threads:[~2006-07-18 15:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-18 16:07 Andrew Haley [this message]
2006-07-18 17:09 ` Andrew Haley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17596.64787.198441.885314@zebedee.pink \
    --to=aph@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=java@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox