Is there a way to instruct code::blocks, via parameters or project configuration, to make able debug the same executable in the same address space in order to getting always the same allocation memory addresses for objects?
I don't know if this is possible, or if there is a way to tell gdb to do this, but it would be great for help in my debugging.
Thanks.
I have tried to put
set disable-randomization on
on the debuggers initialization commands, but still does not work.
Finally I used the shell command
sudo sysctl -w kernel.randomize_va_space=0
The initial value was 2, obtained with the command
sudo sysctl -q kernel.randomize_va_space
Remember to revert the initial value, for security.