From: "Klaus Rudolph" <lts-rudolph@gmx.de>
To: Tom Tromey <tromey@redhat.com>, gdb@sourceware.org
Subject: Re: automated cast to different data type possible?
Date: Thu, 12 May 2011 06:17:00 -0000 [thread overview]
Message-ID: <20110512061641.103010@gmx.net> (raw)
In-Reply-To: <m3d3jpneb0.fsf@fleche.redhat.com>
Tom Tromey wrote:
> Klaus> Base* ptr1=new A;
> Klaus> Base* ptr2=new B;
>
> Klaus> Now I want to debug ptr1. print returns only the output for base.
> OK
> Klaus> But I want to see, the type is a object of class A.
>
> You want "set print object on".
This only works with classes which includes a vtable, but there is no virtual function inside that hierarchy.
regards
Klaus
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
next prev parent reply other threads:[~2011-05-12 6:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-11 9:09 Klaus Rudolph
2011-05-11 21:00 ` Tom Tromey
2011-05-12 6:17 ` Klaus Rudolph [this message]
2011-05-12 16:06 ` Tom Tromey
2011-05-12 17:13 ` André Pönitz
2011-05-15 14:17 ` Klaus Rudolph
2011-05-16 11:43 ` André Pönitz
2011-05-16 17:15 ` Klaus Rudolph
2011-05-24 13:48 ` André Pönitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110512061641.103010@gmx.net \
--to=lts-rudolph@gmx.de \
--cc=gdb@sourceware.org \
--cc=tromey@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox