If I run a C / C ++ program in gdb (after compiling with the -g flag) and I look at the addresses of certain variables, arguments ... etc., and then run it outside of gdb (using ./ ) will Are these addresses the same as the ones I saw in gdb? If they are different, are they usually similar or will they be very different?
I ask about this because I have a buffer overflow program that works fine in gdb (with and without breakpoints), however, when I try to run it outside of gdb, it does not work.
Nosrettap
source share