This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch/rfc] Move alpha START_INFERIOR_TRAPS_EXPECTED to nm-osf.h
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 15 Feb 2004 17:59:31 -0500
- Subject: [patch/rfc] Move alpha START_INFERIOR_TRAPS_EXPECTED to nm-osf.h
Hello,
Examining config/alpha/tm* reveals that only _native_ OSF[1-] needs
START_INFERIOR_TRAPS_EXPECTED defined as 3. All other systems can let
it default to 2.
This moves START_INFERIOR_TRAPS_EXPECTED to nm-osf.h where it belongs,
and then removes all the other #undef and #defines.
I'll commit in a few days, I want to check that alpha osf1 still works,
Andrew
2004-02-15 Andrew Cagney <cagney@redhat.com>
* config/alpha/tm-nbsd.h: Update copyright, delete #undef
START_INFERIOR_TRAPS_EXPECTED.
* config/alpha/tm-fbsd.h: Update copyright, delete #undef
START_INFERIOR_TRAPS_EXPECTED.
* config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
Delete macro.
* config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
macro, moved to "nm-osf.h". Update copyright.
* config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
update copyright.
Index: config/alpha/nm-osf.h
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/nm-osf.h,v
retrieving revision 1.6
diff -u -r1.6 nm-osf.h
--- config/alpha/nm-osf.h 18 Oct 2002 19:34:39 -0000 1.6
+++ config/alpha/nm-osf.h 15 Feb 2004 22:55:40 -0000
@@ -1,5 +1,7 @@
/* Native definitions for alpha running OSF/1.
- Copyright 1993, 1994, 1995, 1998, 2000 Free Software Foundation, Inc.
+
+ Copyright 1993, 1994, 1995, 1998, 2000, 2004 Free Software
+ Foundation, Inc.
This file is part of GDB.
@@ -17,6 +19,11 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+
+/* Number of traps that happen between exec'ing the shell
+ to run an inferior, and when we finally get to
+ the inferior code. This is 2 on most implementations. */
+#define START_INFERIOR_TRAPS_EXPECTED 3
/* ptrace register ``addresses'' are absolute. */
Index: config/alpha/tm-alpha.h
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/tm-alpha.h,v
retrieving revision 1.28
diff -u -r1.28 tm-alpha.h
--- config/alpha/tm-alpha.h 3 Sep 2003 15:02:49 -0000 1.28
+++ config/alpha/tm-alpha.h 15 Feb 2004 22:55:41 -0000
@@ -1,7 +1,7 @@
/* Definitions to make GDB run on an Alpha box under OSF1. This is
also used by the Alpha/Netware and Alpha GNU/Linux targets.
- Copyright 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2002 Free
+ Copyright 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2002, 2004 Free
Software Foundation, Inc.
This file is part of GDB.
@@ -30,11 +30,6 @@
struct frame_info;
struct symbol;
-
-/* Number of traps that happen between exec'ing the shell
- to run an inferior, and when we finally get to
- the inferior code. This is 2 on most implementations. */
-#define START_INFERIOR_TRAPS_EXPECTED 3
/* Special symbol found in blocks associated with routines. We can hang
alpha_extra_func_info_t's off of this. */
Index: config/alpha/tm-alphalinux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/tm-alphalinux.h,v
retrieving revision 1.9
diff -u -r1.9 tm-alphalinux.h
--- config/alpha/tm-alphalinux.h 29 May 2003 23:02:53 -0000 1.9
+++ config/alpha/tm-alphalinux.h 15 Feb 2004 22:55:41 -0000
@@ -2,8 +2,8 @@
definitions here are used when the _target_ system is running
GNU/Linux.
- Copyright 1996, 1998, 1999, 2000, 2002, 2003
- Free Software Foundation, Inc.
+ Copyright 1996, 1998, 1999, 2000, 2002, 2003, 2004 Free Software
+ Foundation, Inc.
This file is part of GDB.
@@ -26,12 +26,6 @@
#define TM_LINUXALPHA_H
#include "alpha/tm-alpha.h"
-
-/* Number of traps that happen between exec'ing the shell to run an
- inferior, and when we finally get to the inferior code. This is 2
- on GNU/Linux and most implementations. */
-#undef START_INFERIOR_TRAPS_EXPECTED
-#define START_INFERIOR_TRAPS_EXPECTED 2
#include "config/tm-linux.h"
Index: config/alpha/tm-fbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/tm-fbsd.h,v
retrieving revision 1.5
diff -u -r1.5 tm-fbsd.h
--- config/alpha/tm-fbsd.h 21 Apr 2002 20:17:28 -0000 1.5
+++ config/alpha/tm-fbsd.h 15 Feb 2004 22:55:41 -0000
@@ -1,5 +1,6 @@
/* Target-dependent definitions for FreeBSD/Alpha.
- Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
+
+ Copyright 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
This file is part of GDB.
@@ -22,11 +23,5 @@
#define TM_FBSD_H
#include "alpha/tm-alpha.h"
-
-/* Number of traps that happen between exec'ing the shell to run an
- inferior, and when we finally get to the inferior code. The
- default is right for FreeBSD. */
-
-#undef START_INFERIOR_TRAPS_EXPECTED
#endif /* TM_FBSD_H */
Index: config/alpha/tm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/tm-nbsd.h,v
retrieving revision 1.2
diff -u -r1.2 tm-nbsd.h
--- config/alpha/tm-nbsd.h 22 May 2002 04:46:14 -0000 1.2
+++ config/alpha/tm-nbsd.h 15 Feb 2004 22:55:41 -0000
@@ -1,5 +1,6 @@
/* Target-dependent definitions for NetBSD/Alpha.
- Copyright 2002 Free Software Foundation, Inc.
+
+ Copyright 2002, 2004 Free Software Foundation, Inc.
This file is part of GDB.
@@ -23,11 +24,5 @@
#include "alpha/tm-alpha.h"
#include "solib.h"
-
-/* Number of traps that happen between exec'ing the shell to run an
- inferior, and when we finally get to the inferior code. The
- default is right for NetBSD. */
-
-#undef START_INFERIOR_TRAPS_EXPECTED
#endif /* TM_NBSD_H */