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

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -