[patch] Add libstdc++ type printers for class templates
Jonathan Wakely
jwakely@redhat.com
Tue Jul 15 11:58:00 GMT 2014
On 15/07/14 00:50 +0100, Jonathan Wakely wrote:
>One part of the patch I wasn't sure about was this, where 'mgr' is a
>function pointer:
>
> func = gdb.block_for_pc(int(mgr.cast(gdb.lookup_type('intptr_t'))))
>
>Is there a better way to get a pc from the function pointer?
>I tried simply int(mgr) but it didn't work.
I've committed the patch, but would still like to improve the cast
above if there's a better way to do it.
More information about the Gcc-patches
mailing list