gdb/27: ptype shows duplicate constructors and destructors

chastain@redhat.com chastain@redhat.com
Sun Feb 18 17:38:00 GMT 2001


>Number:         27
>Category:       gdb
>Synopsis:       ptype shows duplicate constructors and destructors
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 18 17:38:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     chastain@redhat.com
>Release:        gdb cvs 2001-02-18
>Organization:
>Environment:
gcc cvs gcc-3_0-branch 2001-02-18
gdb cvs 2001-02-18
red hat 7 linux native
stabs debugging format

>Description:
class A
{
  public:
    A (int x);
  private:
    int x_;
};

A::A (int x)
  : x_ (x)
{
  ;
}

int main( )
{
  A a(1);
  return 0;
}

===

Reading specs from /vittone/fsf/2001-02-18/gehman/install-gcc-native/lib/gcc-lib/i686-pc-linux-gnu/3.0/specs
Configured with: /vittone/fsf/2001-02-18/source-gcc/configure --prefix=/vittone/fsf/2001-02-18/gehman/install-gcc-native --disable-shared
gcc version 3.0 20010217 (prerelease)

===

gdb 5.0
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) ptype A
type = class A {
  private:
    int x_;

  public:
    A & operator=(A const&);
    A(A &);
    void A(A const&);
    void A(A const&);
    A(int);
    void A(int);
    void A(int);
}
(gdb) 
>How-To-Repeat:

>Fix:

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



More information about the Gdb-prs mailing list