AMD General

Patch pushed.
Thank you for your review,
Claudiu

From: Tom Tromey <tom@tromey.com>
Sent: Thursday, November 5, 2026 6:36 PM
To: Zissulescu-Ianculescu, Claudiu <Claudiu.Zissulescu-Ianculescu@amd.com>
Cc: gdb-patches@sourceware.org <gdb-patches@sourceware.org>; pedro@palves.net <pedro@palves.net>; Six, Lancelot <Lancelot.Six@amd.com>
Subject: Re: [PATCH] gdb: return the object's address for dynamic_cast<void *>
 
[You don't often get email from tom@tromey.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.


>>>>> Claudiu Zissulescu <claudiu.zissulescu-ianculescu@amd.com> writes:

> From: Claudiu Zissulescu-Ianculescu <claudiu.zissulescu-ianculescu@amd.com>
> value_dynamic_cast computes the address of the most derived object, but
> for a cast to "void *" it then returns value_at_lazy (type, addr): the
> "void *" stored at that address, i.e. the first word of the object.  For
> a polymorphic class that is the vtable pointer:

Thanks for the patch.  This is ok.

Approved-By: Tom Tromey <tom@tromey.com>

Tom