How to set a breakpoint in gdb for all function calls?

I have a library function call of the third part scattered in many places of my executable file. My executable is created using debug symbols, but there are no debug symbols in the third-party library, so I cannot place a breakpoint for this function. I want to set a breakpoint when calling a library function to check the call stack. How to set a breakpoint for all calls to the library function call in my executable file.

+5
source share
1 answer

I think the only way:

  • find any call to this function in your code;
  • Create a breakpoint on this line
  • start the debugger and stop there;
  • gdb nexti, ;
  • eip, ;
  • , eip;
+4

All Articles