When a Slick-C command is called from the command line, or from invocation, the string arguments are stuffed into the first argument to the function. You will need a wrapper function to parse out the individual function arguments. Try something as simple as this:
_command int debug_attach_gdb(_str attach_info="") name_info(','VSARG2_EDITORCTL|VSARG2_REQUIRES_MDI|VSARG2_READ_ONLY)
{
return debug_attach("gdb", attach_info);
}
Then you will be able to invoke the editor with arguments like this:
vs +new "-#debug-attach-gdb pid=29914,app=/my-project.bin,session=GDB Attached"
I'm going to file a feature request to add smarter command line parsing to the debugger invocation commands.