I\'m outside gdb\'s target executable and I don\'t even have a stack that corresponds to that target. I want to single-step anyway, so that I can verify what\'s going on in
The most useful thing you can do here is display/i $pc
, before using stepi
as already suggested in R Samuel Klatchko's answer. This tells gdb to disassemble the current instruction just before printing the prompt each time; then you can just keep hitting Enter to repeat the stepi
command.
(See my answer to another question for more detail - the context of that question was different, but the principle is the same.)