I have tried the "Debug->Send user command to debugger", and when I issue "cont" the Debugger does as expected within C:B.
Allow me to suggest this is solved by adding a boolean variable eg. "debug_session_not_yet_executed". The variable is initialized to true.
When clicking on "Debug/Continue" this code is executed:
if ( debug_session_not_yet_executed )
{
// issue a "run" command to the debugger
debug_session_not_yet_executed = false;
}
else
// issue a "continue" command to the debugger
when the debug session is terminated, then
debug_session_not_yet_executed = true;
As the debug C:B button has the text "Debug/Continue", and the gdb has both a "run" and a "continue" command, and issuing "run" more than once terminates the debug session, then this makes sense to me.
When manually entering "cont" all is fine, clicking "Debug/Continue" teminates instead of continuing the program.
> cont
Breakpoint 3, main1 () at ../main.cpp:16
/home/ekh/develop/conlog/can_io/sw/trunk/main.cpp:16:166:beg:0xc90
>>>>>>cb_gdb:
> run
Don't know how to run. Try "help target".
>>>>>>cb_gdb:
And server response:
"gdb exited."