This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Add libstdc++ type printers for class templates


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]