Is there a gdb command to finish a loop construct?

前端 未结 2 636
暖寄归人
暖寄归人 2021-02-01 03:27

In gdb, I have the finish command to easily finish execution of a function frame, often when walking through code in the debugger, after looking at a few iterations

2条回答
  •  日久生厌
    2021-02-01 03:43

    gdb doesn't know where a loop ends so it can't do that. I think the best you can do is use the advance command with a location after the loop.

提交回复
热议问题