public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/31920]  New: Bad location information for Java local variable
@ 2007-05-14 16:44 drow at gcc dot gnu dot org
  2007-05-14 16:45 ` [Bug debug/31920] " drow at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: drow at gcc dot gnu dot org @ 2007-05-14 16:44 UTC (permalink / raw)
  To: gcc-bugs

Here's a snippet from the HEAD version of gdb.java/jprint.java in the GDB
testsuite:

  public static void main(String[] args) {
    jprint x = new jprint ();
    x.dothat (44);
    print (k, 33);
  }

GCC's debug info reports that x is a pointer in %rax when compiled with -g -O0.
 It reports that that's true throughout the function.  Unfortunately it isn't
true; it's in %rax before the call to x.dothat(44) but afterwards %rax is
garbage.


-- 
           Summary: Bad location information for Java local variable
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: drow at gcc dot gnu dot org
  GCC host triplet: x86_64-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31920


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

* [Bug debug/31920] Bad location information for Java local variable
  2007-05-14 16:44 [Bug debug/31920] New: Bad location information for Java local variable drow at gcc dot gnu dot org
@ 2007-05-14 16:45 ` drow at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: drow at gcc dot gnu dot org @ 2007-05-14 16:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from drow at gcc dot gnu dot org  2007-05-14 17:45 -------
Created an attachment (id=13552)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13552&action=view)
Test case.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31920


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

end of thread, other threads:[~2007-05-14 16:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-14 16:44 [Bug debug/31920] New: Bad location information for Java local variable drow at gcc dot gnu dot org
2007-05-14 16:45 ` [Bug debug/31920] " drow at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).