Mail Archives: djgpp-workers/2001/07/01/17:21:54
> I'm uneasy about this dummy command line: what if the debuggee somehow
> disables the !proxy support in its startup code?
Didn't think of that. What about this?
if (proxy_mode)
{
unsigned char cmd_len;
/* Setup the transfer buffer with proxy arguments. */
make_proxy_buffer(program, cmdline + 1, proxy_argc, __tb, __tb_size);
/* Provide a fallback command line in case the debugee has disabled
the proxy method. */
cmd_len = __strnlen(cmdline + 1, 126);
_farpokeb(my_ds, si.psp_selector + 128, cmd_len);
movedata(my_ds, (unsigned)(cmdline + 1), si.psp_selector, 128 + 1, cmd_len);
_farpokeb(my_ds, si.psp_selector + 128 + 1 + cmd_len, '\r');
}
- Raw text -