[英]How to set a breakpoint in gdb for all invocations of a function?
I have a third part library function call scattered at a lot of places in my executable. 我有第三部分库函数调用分散在我的可执行文件的很多地方。 My executable is built using debug symbols, but the third party library does not have the debug symbols, hence I cannot place a breakpoint on the function.
我的可执行文件是使用调试符号构建的,但第三方库没有调试符号,因此我不能在函数上放置断点。 I want to put a breakpoint whenever the library function is called, to examine the call stack.
我想在调用库函数时放置一个断点来检查调用堆栈。 How can I set a breakpoint at all invocations of a library function call within my executable.
如何在我的可执行文件中的库函数调用的所有调用中设置断点。
I think that the only way is to: 我认为唯一的办法是:
nexti
to get to the first function instruction; nexti
以获取第一个函数指令;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.