Debuggers and C++ (Was: Re: C or C++ ?)

Bill,

thanks for the first useful message in this thread :wink:

Does WinDbg handle multiple inheritance well? Recently I found a problem
with SoftICE and still didn’t try it with WinDbg. The problem:

class Derived: public Base1, public Base2 {
public:
virtual void InheritedFromBase2();
}

When I step into any virtual method interited from Base2 (any class which
isn’t the first in the list), this pointer is shifted so it points to Base2
start and SI displays class instance data incorrectly. VS debugger seems to
handle it well and I’d like to know if also WinDbg.

Thanks.

Best regards,

Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]


From: xxxxx@bsquare.com[SMTP:xxxxx@bsquare.com]
Reply To: xxxxx@lists.osr.com
Sent: Thursday, April 25, 2002 1:31 AM
To: xxxxx@lists.osr.com
Subject: [ntdev] Re: C or C++ ?

WinDbg seems to handle all facets of C++ quite well, I am actually quite
surprised at its abilities. But, as it handles user-mode code I guess
this
is to be expected.


Bill McKenzie

We’re fixing it, Mihal ! Hang in there. :slight_smile:

Alberto.

On 25 Apr 2002, at 1:56, Michal Vodicka wrote:

Bill,

thanks for the first useful message in this thread :wink:

Does WinDbg handle multiple inheritance well? Recently I found a problem
with SoftICE and still didn’t try it with WinDbg. The problem:

class Derived: public Base1, public Base2 {
public:
virtual void InheritedFromBase2();
}

When I step into any virtual method interited from Base2 (any class which
isn’t the first in the list), this pointer is shifted so it points to Base2
start and SI displays class instance data incorrectly. VS debugger seems to
handle it well and I’d like to know if also WinDbg.

Thanks.

Best regards,

Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]

> ----------
> From: xxxxx@bsquare.com[SMTP:xxxxx@bsquare.com]
> Reply To: xxxxx@lists.osr.com
> Sent: Thursday, April 25, 2002 1:31 AM
> To: xxxxx@lists.osr.com
> Subject: [ntdev] Re: C or C++ ?
>
> WinDbg seems to handle all facets of C++ quite well, I am actually quite
> surprised at its abilities. But, as it handles user-mode code I guess
> this
> is to be expected.
>
> –
> Bill McKenzie
>
>


You are currently subscribed to ntdev as: xxxxx@ieee.org
To unsubscribe send a blank email to %%email.unsub%%

> Bill,

thanks for the first useful message in this thread :wink:

Does WinDbg handle multiple inheritance well? Recently I found a problem
with SoftICE and still didn’t try it with WinDbg. The problem:

class Derived: public Base1, public Base2 {
public:
virtual void InheritedFromBase2();
}

When I step into any virtual method interited from Base2 (any class which
isn’t the first in the list), this pointer is shifted so it points to Base2
start and SI displays class instance data incorrectly. VS debugger seems to
handle it well and I’d like to know if also WinDbg.

Seems to work perfectly in WinDbg 4.0.0018.0. I have a class here which
derives from 3 classes (all interface only) and WinDbg has no problem
displaying the correct instance data when in a method that is inherited from
any of these base classes.

Mike

> ----------

From: xxxxx@mpc-data.co.uk[SMTP:xxxxx@mpc-data.co.uk]
Reply To: xxxxx@lists.osr.com
Sent: Thursday, April 25, 2002 5:04 PM
To: xxxxx@lists.osr.com
Subject: [ntdev] Re: Debuggers and C++ (Was: Re: C or C++ ?)

Seems to work perfectly in WinDbg 4.0.0018.0. I have a class here which
derives from 3 classes (all interface only) and WinDbg has no problem
displaying the correct instance data when in a method that is inherited
from
any of these base classes.

Thanks. It is exactly what I needed, interface only base classes.

Best regards,

Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]

Fine, hopefully it’ll be fixed soon. I was a bit surprised SI has this
problem when you’re C++ evangelist :wink:

Best regards,

Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]


From: xxxxx@ieee.org[SMTP:xxxxx@ieee.org]
Reply To: xxxxx@lists.osr.com
Sent: Thursday, April 25, 2002 2:43 PM
To: xxxxx@lists.osr.com
Subject: [ntdev] Re: Debuggers and C++ (Was: Re: C or C++ ?)

We’re fixing it, Mihal ! Hang in there. :slight_smile:

Alberto.

On 25 Apr 2002, at 1:56, Michal Vodicka wrote:

> Bill,
>
> thanks for the first useful message in this thread :wink:
>
> Does WinDbg handle multiple inheritance well? Recently I found a problem
> with SoftICE and still didn’t try it with WinDbg. The problem:
>
> class Derived: public Base1, public Base2 {
> public:
> virtual void InheritedFromBase2();
> }
>
> When I step into any virtual method interited from Base2 (any class
which
> isn’t the first in the list), this pointer is shifted so it points to
Base2
> start and SI displays class instance data incorrectly. VS debugger seems
to
> handle it well and I’d like to know if also WinDbg.
>
> Thanks.
>
> Best regards,
>
> Michal Vodicka
> STMicroelectronics Design and Application s.r.o.
> [michal.vodicka@st.com, http:://www.st.com]
>
> > ----------
> > From: xxxxx@bsquare.com[SMTP:xxxxx@bsquare.com]
> > Reply To: xxxxx@lists.osr.com
> > Sent: Thursday, April 25, 2002 1:31 AM
> > To: xxxxx@lists.osr.com
> > Subject: [ntdev] Re: C or C++ ?
> >
> > WinDbg seems to handle all facets of C++ quite well, I am actually
quite
> > surprised at its abilities. But, as it handles user-mode code I guess
> > this
> > is to be expected.
> >
> > –
> > Bill McKenzie
> >
> >
>
> —
> You are currently subscribed to ntdev as: xxxxx@ieee.org
> To unsubscribe send a blank email to %%email.unsub%%
>


You are currently subscribed to ntdev as: michal.vodicka@st.com
To unsubscribe send a blank email to %%email.unsub%%