|
|
Re: breakpoints in constructors
|
|
12/01/2008 10:18 AM
post17637
|
Re: breakpoints in constructors
class Charles : public ScottBaio {
Charles( Network *network, Slot *slot, Plot *plot = NULL );
}
Oddly, the "Charles Not In Charge" spinoff was not the hit of it's more able predecessor.
:-)
Ryan Mansfield wrote:
> Malte Mundt wrote:
>> Hi,
>>
>> a customer mentioned to me that breakpoints in constructors do not work. Is this true (haven't tried to reproduce it,
yet). Is there a fix?
>
> This is true sometimes in C++ generated by gcc 3.x and newer. In the new
> C++ ABI, gcc generates two copies of the constructor, one in-charge and
> one not-in-charge. When you set a breakpoint in the ctor, gdb sets the
> breakpoint in the closest one. In some cases this will not be the ctor
> that gets executed. I believe there have been some changes done in the
> upstream gdb (6.8 or newer) that sets breakpoints in both constructors
> and resolves the issue.
>
> Regards,
>
> Ryan Mansfield
>
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post17636
>
--
cburgess@qnx.com
|
|
|
|
|