* config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
xm-cygwin32.h): New. * config/i386/(*win32*): Becomes *cygwin32*. * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32. (powerpcle-*-cygwin32): New. * configure: Regenerate. * win32-nat.c (child_create_inferior): Call CreateProcess with the right program arg.
This commit is contained in:
parent
9daacfc4e4
commit
3d78f53277
14 changed files with 220 additions and 331 deletions
|
@ -1,3 +1,14 @@
|
|||
Thu Feb 1 10:29:31 1996 Steve Chamberlain <sac@slash.cygnus.com>
|
||||
|
||||
* config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
|
||||
xm-cygwin32.h): New.
|
||||
* config/i386/(*win32*): Becomes *cygwin32*.
|
||||
* configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
|
||||
(powerpcle-*-cygwin32): New.
|
||||
* configure: Regenerate.
|
||||
* win32-nat.c (child_create_inferior): Call CreateProcess
|
||||
with the right program arg.
|
||||
|
||||
Thu Feb 1 11:01:10 1996 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
|
||||
|
|
|
@ -96,9 +96,9 @@ tm-ptx.h
|
|||
tm-ptx4.h
|
||||
tm-sun386.h
|
||||
tm-symmetry.h
|
||||
tm-win32.h
|
||||
win32.mh
|
||||
win32.mt
|
||||
tm-cygwin32.h
|
||||
cygwin32.mh
|
||||
cygwin32.mt
|
||||
xm-go32.h
|
||||
xm-i386aix.h
|
||||
xm-i386bsd.h
|
||||
|
@ -116,7 +116,7 @@ xm-ptx.h
|
|||
xm-ptx4.h
|
||||
xm-sun386.h
|
||||
xm-symmetry.h
|
||||
xm-win32.h
|
||||
xm-cygwin32.h
|
||||
|
||||
Things-to-lose:
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
MH_CFLAGS=
|
||||
XM_FILE=xm-win32.h
|
||||
XM_FILE=xm-cygwin32.h
|
||||
TERMCAP=
|
||||
NATDEPFILES=win32-nat.o
|
||||
XM_CLIBS=-lkernel32
|
|
@ -1,6 +1,6 @@
|
|||
# Target: Intel 386 run win32
|
||||
TDEPFILES= i386-tdep.o i387-tdep.o
|
||||
TM_FILE= tm-win32.h
|
||||
TM_FILE= tm-cygwin32.h
|
||||
|
||||
|
||||
|
|
@ -27,6 +27,8 @@ aix.mh
|
|||
aix.mt
|
||||
aix4.mh
|
||||
aix4.mt
|
||||
cygwin32.mh
|
||||
cygwin32.mt
|
||||
gdbserve.mt
|
||||
macos.mh
|
||||
macos.mt
|
||||
|
@ -37,6 +39,7 @@ ppc-nw.mt
|
|||
ppc-sim.mt
|
||||
ppcle-eabi.mt
|
||||
ppcle-sim.mt
|
||||
tm-cygwin32.h
|
||||
tm-macos.h
|
||||
tm-ppc-aix.h
|
||||
tm-ppc-aix4.h
|
||||
|
@ -45,6 +48,7 @@ tm-ppc-nw.h
|
|||
tm-ppc-sim.h
|
||||
tm-ppcle-eabi.h
|
||||
tm-ppcle-sim.h
|
||||
xm-cygwin32.h
|
||||
xm-aix.h
|
||||
xm-mpw.h
|
||||
|
||||
|
|
6
gdb/config/powerpc/cygwin32.mh
Normal file
6
gdb/config/powerpc/cygwin32.mh
Normal file
|
@ -0,0 +1,6 @@
|
|||
MH_CFLAGS=
|
||||
XM_FILE=xm-cygwin32.h
|
||||
TERMCAP=
|
||||
NATDEPFILES=win32-nat.o
|
||||
XM_CLIBS=-lkernel32
|
||||
|
6
gdb/config/powerpc/cygwin32.mt
Normal file
6
gdb/config/powerpc/cygwin32.mt
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Target: Powerpc running cygnus's unix api over win32
|
||||
TDEPFILES= rs6000-tdep.o
|
||||
TM_FILE= tm-cygwin32.h
|
||||
|
||||
|
||||
|
21
gdb/config/powerpc/tm-cygwin32.h
Normal file
21
gdb/config/powerpc/tm-cygwin32.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
/* Macro definitions PowerPC running under the Cygwin API.
|
||||
Copyright 1996 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GDB.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include "powerpc/tm-ppcle-eabi.h"
|
||||
|
41
gdb/config/powerpc/xm-cygwin32.h
Normal file
41
gdb/config/powerpc/xm-cygwin32.h
Normal file
|
@ -0,0 +1,41 @@
|
|||
/* Definitions for hosting on WIN32, for GDB.
|
||||
Copyright 1995, 1996 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GDB.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
#define HOST_BYTE_ORDER LITTLE_ENDIAN
|
||||
|
||||
#include "fopen-bin.h"
|
||||
|
||||
#define GDBINIT_FILENAME "gdb.ini"
|
||||
|
||||
|
||||
#define SLASH_P(X) ((X)=='\\' || (X) == '/')
|
||||
#define ROOTED_P(X) ((SLASH_P((X)[0]))|| ((X)[1] ==':'))
|
||||
#define SLASH_CHAR '/'
|
||||
#define SLASH_STRING "/"
|
||||
|
||||
|
||||
/* If we longjmp out of the signal handler we never get another one.
|
||||
So disable immediate_quit inside request_quit */
|
||||
#define REQUEST_QUIT
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
430
gdb/configure
vendored
430
gdb/configure
vendored
File diff suppressed because it is too large
Load diff
|
@ -289,7 +289,7 @@ i[3456]86-*-unixware) gdb_host=i386v4 ;;
|
|||
i[3456]86-*-sysv*) gdb_host=i386v ;;
|
||||
i[3456]86-*-isc*) gdb_host=i386v32 ;;
|
||||
i[3456]86-*-os9k) gdb_host=i386os9k ;;
|
||||
i[3456]86-*-win32*) gdb_host=win32 ;;
|
||||
i[3456]86-*-cygwin32) gdb_host=cygwin32 ;;
|
||||
m680[01]0-sun-sunos3*) gdb_host=sun2os3 ;;
|
||||
m680[01]0-sun-sunos4*) gdb_host=sun2os4 ;;
|
||||
m68030-sony-*) gdb_host=news1000 ;;
|
||||
|
@ -338,7 +338,7 @@ ns32k-umax-*) gdb_host=umax ;;
|
|||
ns32k-utek-sysv*) gdb_host=merlin ;;
|
||||
|
||||
powerpc-*-aix*) gdb_host=aix ;;
|
||||
|
||||
powerpcle-*-cygwin32) gdb_host=cygwin32 ;;
|
||||
pn-*-*) gdb_host=pn ;;
|
||||
|
||||
pyramid-*-*) gdb_host=pyramid ;;
|
||||
|
@ -456,8 +456,7 @@ i[3456]86-*-mach*) gdb_target=i386mach ;;
|
|||
i[3456]86-*-netware*) gdb_target=i386nw
|
||||
configdirs="${configdirs} nlm" ;;
|
||||
i[3456]86-*-osf1mk*) gdb_target=i386mk ;;
|
||||
i[3456]86-*-win32) gdb_target=win32 ;;
|
||||
|
||||
i[3456]86-*-cygwin32) gdb_target=cygwin32 ;;
|
||||
i960-*-bout*) gdb_target=vxworks960 ;;
|
||||
i960-*-coff*) gdb_target=nindy960 ;;
|
||||
i960-*-elf*) gdb_target=nindy960 ;;
|
||||
|
@ -544,6 +543,7 @@ powerpc-*-netware*) gdb_target=ppc-nw
|
|||
|
||||
powerpc-*-aix4*) gdb_target=aix4 ;;
|
||||
powerpc-*-aix*) gdb_target=aix ;;
|
||||
powerpcle-*-cygwin32) gdb_target=cygwin32 ;;
|
||||
powerpc-*-eabi*) if test x"$powerpc_sim" = x"yes"; then
|
||||
gdb_target=ppc-sim
|
||||
else
|
||||
|
|
|
@ -475,9 +475,10 @@ child_create_inferior (exec_file, allargs, env)
|
|||
if (new_console)
|
||||
flags |= CREATE_NEW_CONSOLE;
|
||||
|
||||
args = alloca (strlen (exec_file) + strlen (allargs) + 2);
|
||||
args = alloca (strlen (real_path) + strlen (allargs) + 2);
|
||||
|
||||
strcpy (args, real_path);
|
||||
|
||||
strcpy (args, exec_file);
|
||||
strcat (args, " ");
|
||||
strcat (args, allargs);
|
||||
|
||||
|
@ -489,18 +490,15 @@ child_create_inferior (exec_file, allargs, env)
|
|||
winenv = alloca(envlen + 1); /* allocate new buffer */
|
||||
|
||||
/* copy env strings into new buffer */
|
||||
for (temp = winenv, i = 0; env[i] && *env[i]; i++)
|
||||
for (temp = winenv, i = 0; env[i] && *env[i]; i++)
|
||||
{
|
||||
strcpy(temp, env[i]);
|
||||
temp += strlen(temp) + 1;
|
||||
}
|
||||
*temp = 0; /* final nil string to terminate new env */
|
||||
|
||||
strcat (real_path, " ");
|
||||
strcat (real_path, args);
|
||||
|
||||
ret = CreateProcess (0,
|
||||
real_path,
|
||||
args, /* command line */
|
||||
NULL, /* Security */
|
||||
NULL, /* thread */
|
||||
TRUE, /* inherit handles */
|
||||
|
|
Loading…
Reference in a new issue