문제

I know the function name which is called. But not from where it is called. I want to put a breakpoint using gdb at return of this function. How to proceed?

Is there any specific command, or some series of steps?

도움이 되었습니까?

해결책 2

You can use reverse debugging using this one:

(gdb) fin
(gdb) reverse-step

다른 팁

If you are merely want to know what parent function called your specific function, put a breakpoint at the top of the child function in question. Once it breaks, use backtrace (or just bt) to see a full trace of the calls made to get to that point in execution.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top