Mail Archives: djgpp-workers/2001/07/01/13:08:50
> From: "Mark E." <snowball3 AT bigfoot DOT com>
> Date: Sun, 1 Jul 2001 00:29:10 -0400
>
> This is rev 3 of changing v2loadimage to generate the proxy info
> understandable by the startup code. I implemented Eli's suggestion as
> follows:
> If the len byte 255 (0xff), the command line is assumed to be zero-terminated
> and is parsed to generate proxy info (no matter how long or short the args
> turn out to be). Otherwise, it's treated as a normal command tail.
Great! The only comment I have now is about this:
> + /* Provide a dummy command line that will be ignored when
> + the proxy variable is found and parsed. */
> + proxy_cmdline[0] = 1;
> + proxy_cmdline[1] = '\r';
> + movedata(my_ds, (unsigned)proxy_cmdline, si.psp_selector, 128, 2);
I'm uneasy about this dummy command line: what if the debuggee somehow
disables the !proxy support in its startup code? Isn't it safer to
pass it the first 126 characters of the command line, or what strlen
says about the length, whichever is smaller?
- Raw text -