This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Debugging a constructor
- To: Hany Morcos <hanymorcos at yahoo dot com>, gdb at sourceware dot cygnus dot com
- Subject: Re: Debugging a constructor
- From: Hany Morcos <hanymorcos at yahoo dot com>
- Date: Thu, 24 Feb 2000 16:30:41 -0800 (PST)
Got it
thank you
--- Hany Morcos <hanymorcos@yahoo.com> wrote:
>
>
> How do I print the variable values inside
> a constructor?
>
> I can't use this... Because doesn't exist yet..
> The object hasn't been constructed...
>
> Then how do I print the value of x??
>
> class y{
>
> public:
> y(int* x) {x =
> coreDumpAndGenerateManyHeadaches(); // print x
> inside
> gdb } ;
> };
>
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com