This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: gdb/483: gdb.c++/local.exp: ptype Local
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 13 Apr 2002 00:38:01 -0000
- Subject: Re: gdb/483: gdb.c++/local.exp: ptype Local
- Reply-to: Daniel Jacobowitz <drow at mvista dot com>
The following reply was made to PR gdb/483; it has been noted by GNATS.
From: Daniel Jacobowitz <drow@mvista.com>
To: mec@shout.net
Cc: gdb-gnats@sources.redhat.com
Subject: Re: gdb/483: gdb.c++/local.exp: ptype Local
Date: Fri, 12 Apr 2002 20:30:46 -0400
On Fri, Apr 12, 2002 at 06:38:45PM -0000, mec@shout.net wrote:
>
> >Number: 483
> >Category: gdb
> >Synopsis: gdb.c++/local.exp: ptype Local
> >Confidential: no
> >Severity: serious
> >Priority: medium
> >Responsible: unassigned
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Fri Apr 12 11:48:00 PDT 2002
> >Closed-Date:
> >Last-Modified:
> >Originator: mec@shout.net
> >Release: gdb HEAD%20020411
> >Organization:
> >Environment:
> target = native, host = i686-pc-linux-gnu%rh-7.2, gdb = HEAD%20020411, gcc = 3.0.4, goption = -gdwarf-2
> >Description:
> Excerpt from gdb.log:
>
> ptype Local^M
> type = class Local {^M
> public:^M
> int loc1;^M
> ^M
> char loc_foo(const char);^M
> char loc_foo(const char);^M
> }^M
> (gdb) FAIL: gdb.c++/local.exp: ptype Local (double loc_foo)
>
> Note the double occurrence of method "loc_foo".
>
> This happens with -gdwarf-2 with gcc 2.96-rh, gcc 3.0.4, gcc gcc-3_1-branch%20020411, gcc HEAD%20020411. This does not happen with -gdwarf-2 with gcc 2.95.3. This does not happen with -gstabs+ with any of the five compilers listed.
>
> See also:
>
> ftp://ftp.shout.net/pub/users/mec/gdb/2002-04-11,native,i686-pc-linux-gnu%rh-7.2,HEAD,3.0.4,g-dwarf-2.tar.gz
> ftp://ftp.shout.net/pub/users/mec/gdb/2002-04-11,HEAD,testsuite-src.tar.gz
> >How-To-Repeat:
> Run test script gdb.c++/local.exp on native i686-pc-linux-gnu.
Could you check (via readelf) if one of the loc_foo copies has
DW_AT_artificial set?
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer