This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[eliz@is.elta.co.il: GDB: pexecute patches]


------- Start of forwarded message -------
Date: Sun, 27 Jun 1999 19:18:33 +0300 (IDT)
From: Eli Zaretskii <eliz@is.elta.co.il>
X-Sender: eliz@is
To: DJ Delorie <dj@delorie.com>
cc: Robert Hoehne <robert.hoehne@gmx.net>
Subject: GDB: pexecute patches
Content-Type: TEXT/PLAIN; charset=US-ASCII

1999-06-26  Eli Zaretskii  <eliz@is.elta.co.il>

	* pexecute.c (pexecute) [__GO32__]: Use P_WAIT rather than a
	literal constant.
	[__DJGPP__]: Don't shift left the return code of spawn.

*** ./libiberty/pexecute.c~0	Fri Jan 15 06:35:26 1999
- --- ./libiberty/pexecute.c	Mon May 17 14:04:40 1999
*************** pexecute (program, argv, this_pname, tem
*** 150,156 ****
  
  #ifdef __GO32__
    /* ??? What are the possible return values from spawnv?  */
!   rc = (flags & PEXECUTE_SEARCH ? spawnvp : spawnv) (1, program, argv);
  #else
    char *scmd, *rf;
    FILE *argfile;
- --- 150,156 ----
  
  #ifdef __GO32__
    /* ??? What are the possible return values from spawnv?  */
!   rc = (flags & PEXECUTE_SEARCH ? spawnvp : spawnv) (P_WAIT, program, argv);
  #else
    char *scmd, *rf;
    FILE *argfile;
*************** pexecute (program, argv, this_pname, tem
*** 197,208 ****
    if (rc == -1)
      {
        *errmsg_fmt = install_error_msg;
!       *errmsg_arg = program;
        return -1;
      }
  
    /* Tuck the status away for pwait, and return a "pid".  */
    last_status = rc << 8;
    return last_pid;
  }
  
- --- 197,212 ----
    if (rc == -1)
      {
        *errmsg_fmt = install_error_msg;
!       *errmsg_arg = (char *)program;
        return -1;
      }
  
    /* Tuck the status away for pwait, and return a "pid".  */
+ #ifdef __DJGPP__
+   last_status = rc;
+ #else
    last_status = rc << 8;
+ #endif
    return last_pid;
  }
  
------- End of forwarded message -------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]