This answer describes how you can manipulate the debugging environment when running gdb
interactively. The specific suggestion is to use the following command aid in catching a Heisenbug.
(gdb) set disable-randomization off
However, when using gdb
from the command-line, you lose a lot of amenities that you would have with a graphical debugging front end (such as nemiver
or kdbg
). I am using kdbg
, which allows me to specify a command-line for use when invoking gdb
. Is there a command-line argument that achieves the same results as the interactive command shown above?