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?
source share