public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: "Klaus Rudolph" <lts-rudolph@gmx.de>
Cc: gdb@sourceware.org
Subject: Re: automated cast to different data type possible?
Date: Wed, 11 May 2011 21:00:00 -0000	[thread overview]
Message-ID: <m3d3jpneb0.fsf@fleche.redhat.com> (raw)
In-Reply-To: <20110511090850.28500@gmx.net> (Klaus Rudolph's message of "Wed,	11 May 2011 11:08:50 +0200")

>>>>> "Klaus" == Klaus Rudolph <lts-rudolph@gmx.de> writes:

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

Tom

  reply	other threads:[~2011-05-11 21:00 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 [this message]
2011-05-12  6:17   ` Klaus Rudolph
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=m3d3jpneb0.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=lts-rudolph@gmx.de \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).