This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

[commit] Alpha CANNOT_STEP_BREAKPOINT gdbarchification


Dunno why this was never done before.  Gets rid of another two nm.h
files.  Tested on FreeBSD/alpha.

Committed as obvious.

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
	* config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
	* config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
	* config/alpha/nm-nbsd.h: Remove file.
	* config/alpha/nm-fbsd.h: Remove file
	* config/alpha/nbsd.mh (NAT_FILE): Remove.
	* config/alpha/fbsd.mh (NAT_FILE): Remove.

Index: alpha-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/alpha-tdep.c,v
retrieving revision 1.152
diff -u -p -r1.152 alpha-tdep.c
--- alpha-tdep.c 17 Dec 2005 22:33:59 -0000 1.152
+++ alpha-tdep.c 15 Jan 2006 20:51:30 -0000
@@ -1609,6 +1609,7 @@ alpha_gdbarch_init (struct gdbarch_info 
 
   set_gdbarch_breakpoint_from_pc (gdbarch, alpha_breakpoint_from_pc);
   set_gdbarch_decr_pc_after_break (gdbarch, 4);
+  set_gdbarch_cannot_step_breakpoint (gdbarch, 1);
 
   /* Hook in ABI-specific overrides, if they have been registered.  */
   gdbarch_init_osabi (info, gdbarch);
Index: config/alpha/fbsd.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/fbsd.mh,v
retrieving revision 1.8
diff -u -p -r1.8 fbsd.mh
--- config/alpha/fbsd.mh 15 Jan 2006 19:45:28 -0000 1.8
+++ config/alpha/fbsd.mh 15 Jan 2006 20:51:30 -0000
@@ -2,4 +2,3 @@
 NATDEPFILES= fork-child.o inf-ptrace.o \
 	fbsd-nat.o alphabsd-nat.o \
 	gcore.o corelow.o core-regset.o
-NAT_FILE= nm-fbsd.h
Index: config/alpha/nbsd.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/nbsd.mh,v
retrieving revision 1.5
diff -u -p -r1.5 nbsd.mh
--- config/alpha/nbsd.mh 5 Mar 2005 14:36:10 -0000 1.5
+++ config/alpha/nbsd.mh 15 Jan 2006 20:51:30 -0000
@@ -1,3 +1,2 @@
 # Host: NetBSD/alpha
 NATDEPFILES= fork-child.o inf-ptrace.o alphabsd-nat.o
-NAT_FILE= nm-nbsd.h
Index: config/alpha/nm-fbsd.h
===================================================================
RCS file: config/alpha/nm-fbsd.h
diff -N config/alpha/nm-fbsd.h
--- config/alpha/nm-fbsd.h 15 Jan 2006 19:45:28 -0000 1.8
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,29 +0,0 @@
-/* Native-dependent definitions for FreeBSD/alpha.
-
-   Copyright 1986, 1987, 1989, 1992, 1996, 2000, 2004, 2005, 2006
-   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 NM_FBSD_H
-#define NM_FBSD_H
-
-/* The Alpha does not step over a breakpoint.  */
-#define CANNOT_STEP_BREAKPOINT 1
-
-#endif /* nm-fbsd.h */
Index: config/alpha/nm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/nm-linux.h,v
retrieving revision 1.15
diff -u -p -r1.15 nm-linux.h
--- config/alpha/nm-linux.h 22 Aug 2004 15:38:37 -0000 1.15
+++ config/alpha/nm-linux.h 15 Jan 2006 20:51:30 -0000
@@ -29,10 +29,6 @@
 
 #define U_REGS_OFFSET 0
 
-/* The alpha does not step over a breakpoint, the manpage is lying again.  */
-
-#define CANNOT_STEP_BREAKPOINT 1
-
 /* Given a pointer to either a gregset_t or fpregset_t, return a
    pointer to the first register.  */
 #define ALPHA_REGSET_BASE(regsetp)  ((long *) (regsetp))
Index: config/alpha/nm-nbsd.h
===================================================================
RCS file: config/alpha/nm-nbsd.h
diff -N config/alpha/nm-nbsd.h
--- config/alpha/nm-nbsd.h 5 Mar 2005 14:36:10 -0000 1.5
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,30 +0,0 @@
-/* Native-dependent definitions for NetBSD/alpha.
-
-   Copyright 2002, 2005 Free Software Foundation, Inc.
-
-   Contributed by Wasabi Systems, 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 NM_NBSD_H
-#define NM_NBSD_H
-
-/* The Alpha does not step over a breakpoint.  */
-#define CANNOT_STEP_BREAKPOINT 1
-
-#endif /* nm-nbsd.h */
Index: config/alpha/nm-osf.h
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/nm-osf.h,v
retrieving revision 1.8
diff -u -p -r1.8 nm-osf.h
--- config/alpha/nm-osf.h 4 Sep 2004 23:46:48 -0000 1.8
+++ config/alpha/nm-osf.h 15 Jan 2006 20:51:30 -0000
@@ -33,10 +33,6 @@
 
 #define PTRACE_XFER_TYPE long
 
-/* The alpha does not step over a breakpoint, the manpage is lying again.  */
-
-#define CANNOT_STEP_BREAKPOINT 1
-
 /* Support for shared libraries.  */
 
 #include "solib.h"


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