This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Fix native SCO builds
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 6 Oct 2002 20:38:11 +0200 (CEST)
- Subject: [PATCH] Fix native SCO builds
For some reason I overlooked a patch that I still had lying around.
Checked in now.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* config/i386/nm-i386sco.h: Add protection against
multiple-inclusion. Include "i386/nm-i386v.h".
(REGISTER_U_ADDR): Remove define.
(i386_register_u_addr): Remove prototype.
Index: config/i386/nm-i386sco.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-i386sco.h,v
retrieving revision 1.4
diff -u -p -r1.4 nm-i386sco.h
--- config/i386/nm-i386sco.h 15 Aug 2002 19:34:58 -0000 1.4
+++ config/i386/nm-i386sco.h 6 Oct 2002 18:35:39 -0000
@@ -20,12 +20,14 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#define REGISTER_U_ADDR(addr, blockend, regno) \
- (addr) = i386_register_u_addr ((blockend),(regno));
+#ifndef NM_I386SCO_H
+#define NM_I386SCO_H
-extern int i386_register_u_addr (int, int);
+#include "i386/nm-i386v.h"
/* When calling functions on SCO, sometimes we get an error writing some
of the segment registers. This would appear to be a kernel
bug/non-feature. */
#define CANNOT_STORE_REGISTER(regno) ((regno) == 14 || (regno) == 15)
+
+#endif /* nm-i386sco.h */