summaryrefslogtreecommitdiff
path: root/devel/gdb53/files/patch-gdb_config_nm-fbsd.h
diff options
context:
space:
mode:
authorMark Peek <mp@FreeBSD.org>2003-01-04 20:19:55 +0000
committerMark Peek <mp@FreeBSD.org>2003-01-04 20:19:55 +0000
commita7e34ee0b852f4dab9146d27377c50fa9da69df1 (patch)
tree5662f73aea933138332ad1ec481a0639445707af /devel/gdb53/files/patch-gdb_config_nm-fbsd.h
parentUse DBREG_DRX instead of accessing the dr members directly. This make gdb (diff)
Allow compilation on 4-stable for user mode use.
Notes
Notes: svn path=/head/; revision=72530
Diffstat (limited to 'devel/gdb53/files/patch-gdb_config_nm-fbsd.h')
-rw-r--r--devel/gdb53/files/patch-gdb_config_nm-fbsd.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/devel/gdb53/files/patch-gdb_config_nm-fbsd.h b/devel/gdb53/files/patch-gdb_config_nm-fbsd.h
index 80c2c6e4ce26..9b6c033446c5 100644
--- a/devel/gdb53/files/patch-gdb_config_nm-fbsd.h
+++ b/devel/gdb53/files/patch-gdb_config_nm-fbsd.h
@@ -1,14 +1,19 @@
---- gdb/config/nm-fbsd.h Wed Dec 31 16:00:00 1969
-+++ gdb/config/nm-fbsd.h Sun Oct 13 10:53:14 2002
-@@ -0,0 +1,31 @@
+--- gdb/config/nm-fbsd.h Fri Jan 3 09:33:00 2003
++++ gdb/config/nm-fbsd.h Fri Jan 3 09:36:00 2003
+@@ -0,0 +1,36 @@
+#ifndef CONFIG_NM_FBSD_H
+#define CONFIG_NM_FBSD_H
+
++#ifdef HAVE_SYS_PARAM_H
++#include <sys/param.h>
++#endif
++
+extern int kernel_debugging;
+extern int kernel_writablecore;
+
+CORE_ADDR fbsd_kern_frame_saved_pc(struct frame_info *frame);
+
++#if __FreeBSD_version >= 500032
+#define ADDITIONAL_OPTIONS \
+ {"kernel", no_argument, &kernel_debugging, 1}, \
+ {"k", no_argument, &kernel_debugging, 1}, \
@@ -30,5 +35,5 @@
+#define START_PROGRESS(STR,N) \
+ if (!strcmp (STR, "kgdb")) \
+ kernel_debugging = 1;
-+
++#endif
+#endif /* CONFIG_NM_FBSD_H */