[prev in list] [next in list] [prev in thread] [next in thread]
List: gdb-patches
Subject: [eliz@is.elta.co.il: GDB: pexecute patches]
From: dj () delorie ! com (DJ Delorie)
Date: 1999-06-27 10:49:00
Message-ID: 199906271749.NAA32053 () envy ! delorie ! com
[Download RAW message or body]
------- 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 -------
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic