When I look at the implementation of debug_send_command(), at the end of this function I see:
// display the result
_message_box(reply:+errmsg,command);
Could you add an optional input parameter to debug_send_command() to allow to bypass displaying this message box?
Also for the debug_remote() function, I think it could be possible to provide all the parameters of the dialog box, as well as not show the dialog box by filling in the "attach_info" parameter. I performed a "say()" in my local copy of this function after the call to show() and I now see how I would format "attach_info" to have all the required parameters. This would be very useful, then my macro can read the IP address/port from a file that my gdb script generator creates, and I can also provide the executable there. It would really help my automation. Is this feasible?