summaryrefslogtreecommitdiff
path: root/devel/gdb66/files/patch-gdb_config_nm-fbsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/gdb66/files/patch-gdb_config_nm-fbsd.h')
-rw-r--r--devel/gdb66/files/patch-gdb_config_nm-fbsd.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/devel/gdb66/files/patch-gdb_config_nm-fbsd.h b/devel/gdb66/files/patch-gdb_config_nm-fbsd.h
index 80c2c6e4ce26..9b6c033446c5 100644
--- a/devel/gdb66/files/patch-gdb_config_nm-fbsd.h
+++ b/devel/gdb66/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 */