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

Popular posts from this blog

mod rewrite - Doing external redirect. .htaccess NS flag not working. How to achieve similar results? -

mysql - How to insert just year and month into date field? -