Function address incoherence
Andreas Schwab
schwab@suse.de
Mon Aug 26 07:55:00 GMT 2019
On Aug 24 2019, Andrea Cardaci <cyrus.and@gmail.com> wrote:
> As you can see, $pc points to 0xb7fdba20 and the disassemble commands
> reports that it is part of _start, yet if I print the address of
> _start I obtain a different value (0x80482e0). (Using the disassemble
> command is just an example, simply printing $pc shows 0xb7fdba20
> <_start>.)
The disassembler can chose the nearest symbols, but the expression
evaluator needs to resolve it to a single address, so it can only chose
one of the them.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Gdb
mailing list