GDB arithmetics -
when use commands:
print/x &_start -> get: 0x08049054 print/x &_key -> get: 0x0804916d
it quite easy figure out difference is: 119h
but if use command:
print/x &_key-&_start -> get: 0x46 (!!)
why? confirm if debug program of own?
what see pointer arithmetic.
see also: so:pointer arithmetic
Comments
Post a Comment