Mail Archives: djgpp-workers/2001/07/02/01:55:16
On Sun, 1 Jul 2001, Mark E. wrote:
> > 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');
> }
This is fine, but where is __strnlen? Is this some new function in
the current CVS? I don't see it.
- Raw text -