How can I jump to a frame in a stack trace according to the function name in gdb?

后端 未结 2 488
闹比i
闹比i 2021-02-07 01:28

I\'m debugging a stack overflow due to infinite recursion. The program fails when the stack is 700 calls deep.

I want to jump to the frame in which the function was in

2条回答
  •  抹茶落季
    2021-02-07 01:57

    Two options:

    • up 200 will bring you up 200 frames
    • If you know the initial caller of the recursive routine, you can do f[rame] - this will jump to the frame of address caller-func.

    See Frame Selection in the manual.

提交回复
热议问题