Re: Function address incoherence
Andrea Cardaci <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CACMsj9Nb5LsRdAXhfOH=rZNCboORhwqChCRu730-SA4MEjtr-Q@mail.gmail.com> |
On Mon, 26 Aug 2019 at 18:34, Christian Biesinger <[email protected]> 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.