hi,
it's been driving me nuts: i press "n" (next) or "s" (step), gdb steps back up to some lines above the line it's at. and sometimes, it does this a couple of times before really stepping forward. it's like it's going through a loop. i've heard about a "bs" (backstep) command, but i'm sure i'm pressing "n."
for example, take this snippet:
somestruct->a = b ; // line 1
function(somestruct); // line 2
say, i'm at line 1 -> press "n" -> i'm at line 2 -> press "n" -> i'm back at line 1...
well, it's being behaving this way a couple of weeks. i guess i didn't mind.
but now, when it goes back up to line 1, it corrupts somestruct->a.
please. what's going on? i'm being driven nuts, insane, mad....
thanks.