Function address incoherence

Andrea Cardaci cyrus.and@gmail.com
Mon Aug 26 16:50:00 GMT 2019


On Mon, 26 Aug 2019 at 18:34, Christian Biesinger <cbiesinger@google.com> wrote:

> Why don't you use frame.function() and get the address from there?

This actually seems a good idea and I can't remember why I didn't end
up using that, let me try...

> (and why parse_and_eval instead of lookup_symbol?)

Because:

    >>> gdb.lookup_symbol('_start')
    (None, False)
    >>> gdb.parse_and_eval('_start')
    <gdb.Value object at 0x7f340fe3dcb0>

Maybe I need to specify a block different than the current.



More information about the Gdb mailing list