public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/1193: g++ 3.2 creates multiple constructors: gdb 5.3 can't set breakpoints
@ 2007-10-11 19:56 drow
  0 siblings, 0 replies; 4+ messages in thread
From: drow @ 2007-10-11 19:56 UTC (permalink / raw)
  To: gdb-prs, joachim.eibl, nobody

Synopsis: g++ 3.2 creates multiple constructors: gdb 5.3 can't set breakpoints

State-Changed-From-To: open->closed
State-Changed-By: drow
State-Changed-When: Thu Oct 11 19:56:35 2007
State-Changed-Why:
    This is fixed in current snapshots.  It will be fixed in the next release of GDB (after 6.7).

http://sourceware.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=1193


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

* Re: c++/1193: g++ 3.2 creates multiple constructors: gdb 5.3 can't set breakpoints
@ 2005-06-15 21:38 Woody LaRue
  0 siblings, 0 replies; 4+ messages in thread
From: Woody LaRue @ 2005-06-15 21:38 UTC (permalink / raw)
  To: nobody; +Cc: gdb-prs

The following reply was made to PR c++/1193; it has been noted by GNATS.

From: "Woody LaRue" <larue@cadence.com>
To: <gdb-gnats@sources.redhat.com>
Cc:  
Subject: Re: c++/1193: g++ 3.2 creates multiple constructors: gdb 5.3 can't set breakpoints
Date: Wed, 15 Jun 2005 14:34:23 -0700

 This problem is impacting the systemC (www.systemc.org) community, and
 other C++ developers. Is there a fix in the works?


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

* Re: c++/1193: g++ 3.2 creates multiple constructors: gdb 5.3 can't set breakpoints
@ 2005-01-18 19:38 Sev Binello
  0 siblings, 0 replies; 4+ messages in thread
From: Sev Binello @ 2005-01-18 19:38 UTC (permalink / raw)
  To: nobody; +Cc: gdb-prs

The following reply was made to PR c++/1193; it has been noted by GNATS.

From: Sev Binello <sev@bnl.gov>
To: gdb-gnats@sources.redhat.com,  nobody@sources.redhat.com, 
 joachim.eibl@gmx.de,  gdb-prs@sources.redhat.com
Cc:  
Subject: Re: c++/1193: g++ 3.2 creates multiple constructors: gdb 5.3 can't
 set breakpoints
Date: Tue, 18 Jan 2005 14:29:57 -0500

 Is this still a problem with gdb 6.3 almost 2 years later ????????????
 
 http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=1193 
 
 


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

* c++/1193: g++ 3.2 creates multiple constructors: gdb 5.3 can't set breakpoints
@ 2003-04-27 12:18 joachim.eibl
  0 siblings, 0 replies; 4+ messages in thread
From: joachim.eibl @ 2003-04-27 12:18 UTC (permalink / raw)
  To: gdb-gnats; +Cc: joachim.eibl


>Number:         1193
>Category:       c++
>Synopsis:       g++ 3.2 creates multiple constructors: gdb 5.3 can't set breakpoints
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 27 12:18:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     joachim.eibl@gmx.de
>Release:        gdb 5.3 in combination with  g++ 3.2
>Organization:
>Environment:
Suse 8.2, i586
>Description:
Now this is not new, but I want to point out that these two bugs are related.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3187
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=267

In the little program below I want to place a breakpoint in the constructor via gdb. But it will never be called. The reason is that the binary contains the constructor function twice. The breakpoint will be set in the first function. But the second function is called.

// File simpletest.cpp: g++ -g3 simpletest.cpp
class A
{
public:
   A();
private:
   bool bFlag;
   int  num;
};

int main(int argc, char *argv[])
{
  A* pA = new A;
  return 0;
}

A::A()
{
   bFlag = false;   // Here I want to place a breakpoint
   num = 9;
}

It is visible even in the assembler output, created via 
g++ -S simpletest.cpp
Both constructors are identical and follow behind each other.
...
.globl _ZN1AC2Ev
        .type   _ZN1AC2Ev, @function
_ZN1AC2Ev:
.LFB6:
        pushl   %ebp
.LCFI4:
        movl    %esp, %ebp
.LCFI5:
        movl    8(%ebp), %eax
        movb    $0, (%eax)
        movl    8(%ebp), %eax
        movl    $9, 4(%eax)
        popl    %ebp
        ret
.LFE6:
        .size   _ZN1AC2Ev, .-_ZN1AC2Ev
        .align 2
.globl _ZN1AC1Ev
        .type   _ZN1AC1Ev, @function
_ZN1AC1Ev:
.LFB8:
        pushl   %ebp
.LCFI6:
        movl    %esp, %ebp
.LCFI7:
        movl    8(%ebp), %eax
        movb    $0, (%eax)
        movl    8(%ebp), %eax
        movl    $9, 4(%eax)
        popl    %ebp
        ret
...

(I'll also post this message on the gcc-bugs-site.)
>How-To-Repeat:

>Fix:

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


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

end of thread, other threads:[~2007-10-11 19:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-11 19:56 c++/1193: g++ 3.2 creates multiple constructors: gdb 5.3 can't set breakpoints drow
  -- strict thread matches above, loose matches on Subject: below --
2005-06-15 21:38 Woody LaRue
2005-01-18 19:38 Sev Binello
2003-04-27 12:18 joachim.eibl

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