This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


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

gdb-981029 broke delta68 native gdb



Sat Nov 21 17:15:40 1998  Philippe De Muyter  <phdm@macqel.be>

	* config/m68k/nm-delta68.mh (KERNEL_U_SIZE): New macro.
	* delta68-nat.c (kernel_u_size): New function.

	* config/m68k/delta68.mh (NAT_FILE): Undo 1998-08-18 change :
	restore NAT_FILE definition; without NAT_FILE definition, configure
	will assume that gdb can not run native.
	* config/m68k/nm-delta68.mh : Undo 1998-08-18 change : recreate
	nm-delta68.mh file.

--- ./gdb/config/m68k/delta68.mh	Sat Nov 21 17:09:56 1998
+++ ./gdb/config/m68k/delta68.mh	Sat Nov 14 14:55:16 1998
@@ -2,4 +2,6 @@
 
 XM_FILE= xm-delta68.h
 
+# The NAT_FILE definition must be present to allow a native gdb
+NAT_FILE= nm-delta68.h
 NATDEPFILES= infptrace.o inftarg.o fork-child.o corelow.o core-aout.o delta68-nat.o
--- ./gdb/config/m68k/nm-delta68.h	Sat Nov 21 17:09:57 1998
+++ ./gdb/config/m68k/nm-delta68.h	Sat Nov 14 15:00:29 1998
@@ -0,0 +1,21 @@
+/* Macro definitions for a Motorola Delta Series sysV68 R3V7.1.
+   Copyright (C) 1993, 1998 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 KERNEL_U_SIZE kernel_u_size()
--- ./gdb/delta68-nat.c	Sat Nov 21 17:09:58 1998
+++ ./gdb/delta68-nat.c	Sat Nov 14 15:13:47 1998
@@ -1,5 +1,5 @@
 /* Functions specific to running gdb native on a Motorola Delta Series sysV68.
-   Copyright (C) 1993, Free Software Foundation, Inc.
+   Copyright (C) 1993, 1997-98, Free Software Foundation, Inc.
 
 This file is part of GDB.
 
@@ -83,4 +83,9 @@ clear_insn_cache ()
 #ifdef MCT_TEXT /* in sys/signal.h on sysV68 R3V7.1 */
   memctl(0, 4096, MCT_TEXT);
 #endif
+}
+
+kernel_u_size ()
+{
+  return sizeof (struct user);
 }