This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/483: gdb.c++/local.exp: ptype Local



>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.
>Fix:

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]