public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "ssbssa at sourceware dot org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug python/29011] Python Value.dynamic_cast does not work as expected Date: Thu, 31 Mar 2022 15:38:42 +0000 [thread overview] Message-ID: <bug-29011-4717-6xALXlQaLt@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-29011-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=29011 Hannes Domani <ssbssa at sourceware dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ssbssa at sourceware dot org --- Comment #1 from Hannes Domani <ssbssa at sourceware dot org> --- You also get the same result without Python: (gdb) p p $1 = (Derived *) 0x5d20c0 (gdb) p pb $2 = (Base *) 0x5d20c0 (gdb) p pb2 $3 = (Base2 *) 0x5d20d0 (gdb) p dynamic_cast<Derived*>(p) $4 = (Derived *) 0x13f4e8800 <vtable for Derived+16> (gdb) p dynamic_cast<Derived*>(pb) $5 = (Derived *) 0x13f4e8800 <vtable for Derived+16> (gdb) p dynamic_cast<Derived*>(pb2) $6 = (Derived *) 0x13f4e8800 <vtable for Derived+16> (gdb) p dynamic_cast<Base*>(p) $7 = (Base *) 0x5d20c0 (gdb) p dynamic_cast<Base*>(pb) $8 = (Base *) 0x13f4e8800 <vtable for Derived+16> (gdb) p dynamic_cast<Base*>(pb2) $9 = (Base *) 0x5d20c0 (gdb) p dynamic_cast<Base2*>(p) $10 = (Base2 *) 0x5d20d0 (gdb) p dynamic_cast<Base2*>(pb) $11 = (Base2 *) 0x5d20d0 (gdb) p dynamic_cast<Base2*>(pb2) $12 = (Base2 *) 0x13f4e8800 <vtable for Derived+16> -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2022-03-31 15:38 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-03-30 23:55 [Bug python/29011] New: " evan_l00 at qq dot com 2022-03-31 15:38 ` ssbssa at sourceware dot org [this message] 2022-03-31 17:09 ` [Bug python/29011] " simark at simark dot ca 2022-04-02 16:00 ` tromey at sourceware dot org 2023-07-31 14:45 ` [Bug c++/29011] " tromey at sourceware dot org 2023-12-11 14:53 ` cvs-commit at gcc dot gnu.org 2023-12-11 14:55 ` ssbssa at sourceware dot org
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=bug-29011-4717-6xALXlQaLt@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /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: linkBe 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).