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.

Reply via email to