www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/07/01/17:21:54

From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Sun, 1 Jul 2001 17:20:41 -0400
MIME-Version: 1.0
Subject: Re: v2loadimage proxy rev 3
Message-ID: <3B3F5BE9.21153.2517F9@localhost>
In-reply-to: <3405-Sun01Jul2001200600+0300-eliz@is.elta.co.il>
References: <3B3E6ED6 DOT 5875 DOT 5395E1 AT localhost> (snowball3 AT bigfoot DOT com)
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019