Debugging a software-called function using GDB

I am debugging a piece of software for ARM32. I was able to programmatically call functions in GDB using call or even print . The problem is that I seem to be unable to set a breakpoint on the function and then call it programmatically. For example, if I:

 break test_function call test_function() 

then I get an error

The debugged program stops when in a function called from GDB. Evaluation of an expression containing a function. When the function is completed, GDB will silently stop.

Is there a way to programmatically call a function using GDB and pass through it?

+3
source share
1 answer

then I get an error

The program being debugged stopped while in a function called from GDB. Evaluation of the expression containing the function. When the function is done executing, GDB will silently stop.

It's not a mistake. This is exactly what you wanted to do: the breakpoint was started, and now you are ready to debug.

+6
source

Source: https://habr.com/ru/post/1393272/


All Articles