I am new to Linux space. My project creates 'so' (akin to our dll's) which is used by an executable. Currently to debug, I invoke gdb -tui Which puts me into the gdb terminal where I put break points and do the r with parameters ... and debug. Everything was fine, until now where the entire architecture has been changed.
Now to run our code, we execute a command $ java -jar ... and a lot many parameters. The jar files etc do not belong to us.
I am yet to find out what executable is called, or the code flow.
Question : Is there a way to invoke gdb command from within my source code ?
say
MyClass::myFunc()
{
some calls
<THE GDB COMMAND>
What I am looking at is, once I place my 'so' in the path and execute the said java command, the gdb is invoked the moment it hits my function.
The solution provided here wasn't clear. Invoke and control GDB from c++