public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* debug/10068: Java debug info for class members has wrong DW_AT_name
@ 2003-03-13 23:56 carlton
  0 siblings, 0 replies; 2+ messages in thread
From: carlton @ 2003-03-13 23:56 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10068
>Category:       debug
>Synopsis:       Java debug info for class members has wrong DW_AT_name
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 13 23:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     carlton@math.stanford.edu
>Release:        GCC 3.2
>Organization:
>Environment:
GCC 3.2 (with Red Hat 8.0; I have reason to believe this
bug is still present in mainline, but I haven't checked),
i686-pc-linux-gnu
>Description:
GCJ is generating incorrect DWARF 2 debug info for
members of classes (at least member functions, I
confess I haven't checked for member variables): the
DW_AT_name is "Class.member(args)" instead of just "member".

Hopefully 'break Class.member' will start working again
in GDB after this...
>How-To-Repeat:
Compile this file with gcj -gdwarf-2 -S -dA:

public class jmisc
{
  public static void main (String[] args)
  {
    return;
  }
}

Then look through the debug info to where main is
declared: you'll see

.long .LC2 # DW_AT_name: "jmisc.main(java.lang.String[])"

where it should just say

.long .LC2 # DW_AT_name: "main"

I'm attaching the full assembly file to the PR; lots
of the DW_AT_names are wrong, e.g. the constructors'
names are wrong in a different way. Some GCJ person
should perhaps talk to a G++ person about what the debug
info should look like.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: debug/10068: Java debug info for class members has wrong DW_AT_name
@ 2003-03-14  0:16 David Carlton
  0 siblings, 0 replies; 2+ messages in thread
From: David Carlton @ 2003-03-14  0:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR debug/10068; it has been noted by GNATS.

From: David Carlton <carlton@math.stanford.edu>
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: debug/10068: Java debug info for class members has wrong DW_AT_name
Date: 13 Mar 2003 16:06:28 -0800

 On 13 Mar 2003 23:50:25 -0000, carlton@math.stanford.edu said:
 
 > I'm attaching the full assembly file to the PR
 
 Well, I was planning to, but I got distracted; sorry.  If anybody with
 edit access to GNATS wants me to, I can e-mail the assembly file to
 them for attaching.
 
 David Carlton
 carlton@math.stanford.edu


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

end of thread, other threads:[~2003-03-14  0:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-13 23:56 debug/10068: Java debug info for class members has wrong DW_AT_name carlton
2003-03-14  0:16 David Carlton

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).