summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorchopps <chopps@NetBSD.org>1994-02-23 04:35:35 +0000
committerchopps <chopps@NetBSD.org>1994-02-23 04:35:35 +0000
commit3eb7421d0353bddbd85568a64047a09c1d0190bb (patch)
treed2d6ca7f3db811aba8b85f9d90ffa70825bfb95a /gnu/usr.bin
parent36d5e30290591e1361c2c432e36f048f8a8fd65e (diff)
removed arch dependent values.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/gdb/gdb/arch/m68k/nm.h11
-rw-r--r--gnu/usr.bin/gdb/gdb/arch/m68k/tm.h9
2 files changed, 12 insertions, 8 deletions
diff --git a/gnu/usr.bin/gdb/gdb/arch/m68k/nm.h b/gnu/usr.bin/gdb/gdb/arch/m68k/nm.h
index 527d2af6638..6c76204b657 100644
--- a/gnu/usr.bin/gdb/gdb/arch/m68k/nm.h
+++ b/gnu/usr.bin/gdb/gdb/arch/m68k/nm.h
@@ -17,15 +17,18 @@ 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., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: nm.h,v 1.2 1994/02/04 19:50:49 mycroft Exp $
+ $Id: nm.h,v 1.3 1994/02/23 04:35:35 chopps Exp $
*/
+#include <machine/vmparam.h>
#define PTRACE_ARG3_TYPE caddr_t
-/* This is BSD 4.3 or something like it. */
+/* KUSER_AREA is the address the kernel uses for struct user */
+#if ! defined (KUSER_AREA)
+#define KUSER_AREA USRSTACK
+#endif
-/* Get kernel u area address at run-time using BSD style nlist (). */
-#define KERNEL_U_ADDR USRSTACK
+#define KERNEL_U_ADDR KUSER_AREA
/* This is a piece of magic that is given a register number REGNO
and as BLOCKEND the address in the system of the end of the user structure
diff --git a/gnu/usr.bin/gdb/gdb/arch/m68k/tm.h b/gnu/usr.bin/gdb/gdb/arch/m68k/tm.h
index 5e406c11495..12ad3b6312e 100644
--- a/gnu/usr.bin/gdb/gdb/arch/m68k/tm.h
+++ b/gnu/usr.bin/gdb/gdb/arch/m68k/tm.h
@@ -17,8 +17,9 @@ 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., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: tm.h,v 1.1 1994/01/28 12:41:54 pk Exp $
+ $Id: tm.h,v 1.2 1994/02/23 04:35:39 chopps Exp $
*/
+#include <machine/vmparam.h>
/* Configuration file for HP9000/300 series machine running BSD,
including Utah, Mt. Xinu or Berkeley variants. This is NOT for HP-UX.
@@ -29,13 +30,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#define BPT_VECTOR 0x2
-#define TARGET_NBPG 4096
+#define TARGET_NBPG NBPG
/* For 4.4 this would be 2, but it is OK for us to detect an area a
bit bigger than necessary. This way the same gdb binary can target
either 4.3 or 4.4. */
-#define TARGET_UPAGES 3
+#define TARGET_UPAGES UPAGES
/* On the HP300, sigtramp is in the u area. Gak! User struct is not
mapped to the same virtual address in user/kernel address space
@@ -51,6 +52,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
/* Address of end of stack space. */
-#define STACK_END_ADDR 0xfff00000
+#define STACK_END_ADDR USRSTACK
#include "tm-m68k.h"