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]

Re: Add support for WinCE toolchains


In article <88vbe5$4r5$1@cronkite.cygnus.com>,
Chris Faylor <cgf@cygnus.com> wrote:
>One of the things I've done is to regularize the name of files that I
>used.  Everything has a "wince" in it now since the WinCE version of PE
>is apparently non-standard.  I've also moved WinCE-specific code out of
>the generic target files into their own files.

Here is an addition/modification to what Nick Clifton had previously
proposed.  Most of the files are the same with the exception of
configure.tgt and the addition of some new target files in the
appropriate directories.  Per Andrew's request, there are no
modifications to any other files in config/*.

cgf

2000-02-23  Christopher Faylor  <cgf@cygnus.com>

        * configure.tgt: Add arm, mips, sh wince targets.
        * config/arm/tm-wince.h: New file.
        * config/arm/wince.mt New file.
        * config/sh/tm-wince.h: New file.
        * config/sh/wince.mt New file.
        * config/mips/tm-wince.h: New file.
        * config/mips/wince.mt New file. 

Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.3
diff -u -p -r1.3 configure.tgt
--- configure.tgt	2000/02/22 01:17:29	1.3
+++ configure.tgt	2000/02/23 05:35:27
@@ -51,6 +51,7 @@ alpha*-*-linux*)	gdb_target=alpha-linux 
 
 arc-*-*)		gdb_target=arc ;;
 
+arm*-wince-pe)		gdb_target=wince ;;
 arm*-*-linux*)		gdb_target=linux ;;
 arm*-*-* | thumb*-*-* | strongarm*-*-*)
 			gdb_target=embed
@@ -171,6 +172,7 @@ mips64*-big-*)		gdb_target=bigmips64 ;;
 mips*-big-*)		gdb_target=bigmips ;;
 mips*-dec-mach3*)	gdb_target=mach3 ;;
 mips*-dec-*)		gdb_target=decstation ;;
+mips*-wince-pe)		gdb_target=wince ;;
 mips*-*-pe)		gdb_target=mips-pe ;;
 mips64*el-*-ecoff*)	gdb_target=embedl64 ;;
 mips64*-*-ecoff*)	gdb_target=embed64 ;;
@@ -245,6 +247,7 @@ rs6000-*-lynxos*)	gdb_target=rs6000lynx 
 rs6000-*-aix4*)		gdb_target=aix4 ;;
 rs6000-*-*)		gdb_target=rs6000 ;;
 
+sh*-*-pe)		gdb_target=wince ;;
 sh-*-*)			gdb_target=sh ;;
 
 sparc-*-aout*)		gdb_target=sparc-em ;;
--- /dev/null	Tue May  5 16:32:27 1998
+++ arm/tm-wince.h	Thu Feb 17 09:45:37 2000
@@ -0,0 +1,37 @@
+/* Definitions to target GDB for Windows CE target
+   Copyright 2000 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.  */
+
+#ifndef TM_WINCE_H
+#define TM_WINCE_H
+
+#include "arm/tm-arm.h"
+
+#undef SOFTWARE_SINGLE_STEP_P
+#define SOFTWARE_SINGLE_STEP_P 1
+
+#undef SOFTWARE_SINGLE_STEP
+#define SOFTWARE_SINGLE_STEP(sig, bp_p) wince_software_single_step (sig, bp_p)
+
+void wince_software_single_step (unsigned int, int);
+
+#undef TARGET_BYTE_ORDER_SELECTABLE
+#define TARGET_BYTE_ORDER LITTLE_ENDIAN
+
+#endif /* TM_WINCE_H */
--- /dev/null	Tue May  5 16:32:27 1998
+++ arm/wince.mt	Thu Feb 17 09:45:37 2000
@@ -0,0 +1,5 @@
+# Target: Acorn RISC machine (ARM) with simulator
+TDEPFILES= arm-tdep.o wince.o
+TM_FILE= tm-wince.h
+MT_CFLAGS=-DARM -U_X86_ -U_M_IX86 -U__i386__ -U__i486__ -U__i586__ -U__i686__ -DUNICODE -D_WIN32_WCE -DWINCE_STUB='"${target_alias}-stub.exe"'
+WIN32LIBS=-lrapi
--- /dev/null	Tue May  5 16:32:27 1998
+++ mips/tm-wince.h	Thu Feb 17 09:45:37 2000
@@ -0,0 +1,38 @@
+/* Definitions to make GDB run on a Windows CE system.
+
+   Copyright 2000
+   Free Software Foundation, Inc.
+   Contributed by Per Bothner (bothner@cs.wisc.edu) at U.Wisconsin
+   and by Alessandro Forin (af@cs.cmu.edu) at CMU..
+
+   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.  */
+
+#ifndef TM_MIPS_H
+#define TM_MIPS_H 1
+
+#include "mips/tm-mips.h"
+
+#undef SOFTWARE_SINGLE_STEP_P
+#define SOFTWARE_SINGLE_STEP_P 1
+#define SOFTWARE_SINGLE_STEP(sig, bp_p) wince_software_single_step (sig, bp_p)
+
+void wince_software_single_step (unsigned int, int);
+#undef TARGET_BYTE_ORDER_SELECTABLE
+#define TARGET_BYTE_ORDER LITTLE_ENDIAN
+
+#endif /* TM_MIPS_H */
--- /dev/null	Tue May  5 16:32:27 1998
+++ mips/wince.mt	Thu Feb 17 09:45:37 2000
@@ -0,0 +1,5 @@
+# Target: Little-endian MIPS machine such as DECstation.
+TDEPFILES= mips-tdep.o wince.o
+TM_FILE= tm-wince.h
+MT_CFLAGS=-DMIPS -U_X86_ -U_M_IX86 -U__i386__ -U__i486__ -U__i586__ -U__i686__ -DUNICODE -D_WIN32_WCE -DWINCE_STUB='"${target_alias}-stub.exe"'
+WIN32LIBS=-lrapi
--- /dev/null	Tue May  5 16:32:27 1998
+++ sh/tm-wince.h	Thu Feb 17 09:45:37 2000
@@ -0,0 +1,34 @@
+/* Target-specific definition for Window CE
+   Copyright (C) 2000 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.  */
+
+#ifndef TM_WINCE_H
+#define TM_WINCE_H 1
+
+#include "sh/tm-sh.h"
+#undef SOFTWARE_SINGLE_STEP_P
+#define SOFTWARE_SINGLE_STEP_P 1
+
+#undef SOFTWARE_SINGLE_STEP
+#define SOFTWARE_SINGLE_STEP(sig, bp_p) wince_software_single_step (sig, bp_p)
+void wince_software_single_step (unsigned int, int);
+#undef TARGET_BYTE_ORDER_SELECTABLE
+#define TARGET_BYTE_ORDER LITTLE_ENDIAN
+
+#endif /* TM_WINCE_H */
--- /dev/null	Tue May  5 16:32:27 1998
+++ sh/wince.mt	Thu Feb 17 09:45:37 2000
@@ -0,0 +1,5 @@
+# Target: Hitachi Super-H running on Windows CE
+TDEPFILES= sh-tdep.o wince.o
+TM_FILE= tm-wince.h
+MT_CFLAGS=-DSHx -U_X86_ -U_M_IX86 -U__i386__ -U__i486__ -U__i586__ -U__i686__ -DUNICODE -D_WIN32_WCE -DWINCE_STUB='"${target_alias}-stub.exe"'
+WIN32LIBS=-lrapi
-- 
cgf@cygnus.com                        Cygnus Solutions, a Red Hat company
http://sourcware.cygnus.com/          http://www.redhat.com/

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