Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch Move DB_{AOUT, ELF}_SYMBOLS (and DB_ELFSIZE) definit...



details:   https://anonhg.NetBSD.org/src/rev/548c6377dfdd
branches:  trunk
changeset: 467373:548c6377dfdd
user:      simonb <simonb%NetBSD.org@localhost>
date:      Tue Mar 23 22:07:06 1999 +0000

description:
Move DB_{AOUT,ELF}_SYMBOLS (and DB_ELFSIZE) definition to port-specific
db_machdep.h file.

diffstat:

 sys/arch/mips/include/db_machdep.h |  9 +++++----
 sys/arch/pmax/include/db_machdep.h |  6 +++++-
 2 files changed, 10 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r c24d05840254 -r 548c6377dfdd sys/arch/mips/include/db_machdep.h
--- a/sys/arch/mips/include/db_machdep.h        Tue Mar 23 22:04:01 1999 +0000
+++ b/sys/arch/mips/include/db_machdep.h        Tue Mar 23 22:07:06 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_machdep.h,v 1.6 1999/01/14 18:45:45 castor Exp $ */
+/* $NetBSD: db_machdep.h,v 1.7 1999/03/23 22:07:06 simonb Exp $ */
 
 /*
  * Copyright (c) 1997 Jonathan Stone (hereinafter referred to as the author)
@@ -83,11 +83,12 @@
 void   db_machine_init __P((void));
 
 /*
- * We use ELF symbols in DDB.
+ * Make sure at least one DDB symbol type is defined.
  *
  */
-/* #define     DB_ELF_SYMBOLS */
-#define        DB_AOUT_SYMBOLS */
+#if !(defined(DB_AOUT_SYMBOLS) || defined(DB_ELF_SYMBOLS))
+#error Must define at least one of DB_AOUT_SYMBOLS or DB_ELF_SYMBOLS
+#endif
 
 /*
  * MIPS cpus have no hardware single-step.
diff -r c24d05840254 -r 548c6377dfdd sys/arch/pmax/include/db_machdep.h
--- a/sys/arch/pmax/include/db_machdep.h        Tue Mar 23 22:04:01 1999 +0000
+++ b/sys/arch/pmax/include/db_machdep.h        Tue Mar 23 22:07:06 1999 +0000
@@ -1,3 +1,7 @@
-/*     $NetBSD: db_machdep.h,v 1.1 1997/07/07 03:54:24 jonathan Exp $  */
+/*     $NetBSD: db_machdep.h,v 1.2 1999/03/23 22:07:07 simonb Exp $    */
+
+#define DB_ELF_SYMBOLS
+#define DB_ELFSIZE     32
+#define DB_AOUT_SYMBOLS
 
 #include <mips/db_machdep.h>



Home | Main Index | Thread Index | Old Index