![]() ![]() """Auto-Step through the code until something happens or manually interrupted.Īn argument says how fast auto stepping is done (1-19, default 5).""" gdbinit file to make it always available): import gdb ![]() The following code may be placed in a gdb-auto-step.py which can be made active with source gdb-auto-step.py whenever you want that (or include in the. adjust the while loop to stop for a "not simple" stop (breakpoint/watchpoint/signal/.).register a stop event handler that checks for the stop reason and store the kind of step there.do the while loop within python, handle the "expected" keyboard interrupt of CTRL-C.optional: define a parameter for the default (replaced here for simplicity by a fixed value).define a user command (with additional argument to say how fast to auto-step).Using the python api this can be handled nicely: The currently accepted answer does always step, once started and therefore also "skips" over breakpoints, signals and even the program end (in the last case raising a single error "The program is not being run" before gdb internally aborting the while where that happened).Īs an additional culprit it stops if pagination is on (which is the default) as soon as the GDB output is "full". ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |