This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb shows source line multiple times before executing !!


Daniel Jacobowitz writes:
 > I recommend either not worrying about it, or
 > looking at the assembly to understand what's going on.

It might also help to step through the assembly
instead of stepping line-by-line.

(gdb) display/i $pc
(gdb) stepi
[and keep repeating stepi, which will happen if at this point
you just keep hitting <return>]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]