aboutsummaryrefslogtreecommitdiffstats
path: root/devel/gdb66
diff options
context:
space:
mode:
authormp <mp@FreeBSD.org>2003-01-05 04:19:55 +0800
committermp <mp@FreeBSD.org>2003-01-05 04:19:55 +0800
commitddf3c81613d2ee018dd506166c1e6c5e618f0f51 (patch)
tree89d9b077fb06744258cb0845d9439c2194db28c1 /devel/gdb66
parent86bf5a07475e38147a880cadf764709087af3985 (diff)
downloadfreebsd-ports-gnome-ddf3c81613d2ee018dd506166c1e6c5e618f0f51.tar.gz
freebsd-ports-gnome-ddf3c81613d2ee018dd506166c1e6c5e618f0f51.tar.zst
freebsd-ports-gnome-ddf3c81613d2ee018dd506166c1e6c5e618f0f51.zip
Allow compilation on 4-stable for user mode use.
Diffstat (limited to 'devel/gdb66')
-rw-r--r--devel/gdb66/files/patch-config_nm-fbsd.h13
-rw-r--r--devel/gdb66/files/patch-gdb_config_nm-fbsd.h13
-rw-r--r--devel/gdb66/files/patch-gdb_kvm-fbsd.c22
-rw-r--r--devel/gdb66/files/patch-kvm-fbsd.c22
4 files changed, 52 insertions, 18 deletions
diff --git a/devel/gdb66/files/patch-config_nm-fbsd.h b/devel/gdb66/files/patch-config_nm-fbsd.h
index 80c2c6e4ce26..9b6c033446c5 100644
--- a/devel/gdb66/files/patch-config_nm-fbsd.h
+++ b/devel/gdb66/files/patch-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 */
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 */
diff --git a/devel/gdb66/files/patch-gdb_kvm-fbsd.c b/devel/gdb66/files/patch-gdb_kvm-fbsd.c
index 99ad190406c3..efdccb4df56a 100644
--- a/devel/gdb66/files/patch-gdb_kvm-fbsd.c
+++ b/devel/gdb66/files/patch-gdb_kvm-fbsd.c
@@ -1,6 +1,6 @@
---- /dev/null Mon Oct 21 01:38:23 2002
-+++ gdb/kvm-fbsd.c Mon Oct 21 01:37:48 2002
-@@ -0,0 +1,743 @@
+--- gdb/kvm-fbsd.c Fri Jan 3 08:57:23 2003
++++ gdb/kvm-fbsd.c Fri Jan 3 08:57:20 2003
+@@ -0,0 +1,756 @@
+/* Kernel core dump functions below target vector, for GDB.
+ Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1995
+ Free Software Foundation, Inc.
@@ -22,7 +22,7 @@
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+*/
+
-+/* $FreeBSD: /tmp/pcvs/ports/devel/gdb66/files/Attic/patch-gdb_kvm-fbsd.c,v 1.3 2002-10-21 21:29:09 mp Exp $ */
++/* $FreeBSD: /tmp/pcvs/ports/devel/gdb66/files/Attic/patch-gdb_kvm-fbsd.c,v 1.4 2003-01-04 20:19:55 mp Exp $ */
+
+/*
+ * This works like "remote" but, you use it like this:
@@ -62,6 +62,7 @@
+#include "gdbcore.h"
+#include "regcache.h"
+
++#if __FreeBSD_version >= 500032
+static void
+kcore_files_info (struct target_ops *);
+
@@ -719,10 +720,21 @@
+ if (set_context ((CORE_ADDR) val))
+ error ("invalid proc address");
+}
++#else
++int kernel_debugging = 0;
++int kernel_writablecore = 0;
++
++CORE_ADDR
++fbsd_kern_frame_saved_pc (struct frame_info *fi)
++{
++ return 0;
++}
++#endif
+
+void
+_initialize_kcorelow (void)
+{
++#if __FreeBSD_version >= 500032
+ kcore_ops.to_shortname = "kcore";
+ kcore_ops.to_longname = "Kernel core dump file";
+ kcore_ops.to_doc =
@@ -743,5 +755,5 @@
+
+ add_target (&kcore_ops);
+ add_com ("proc", class_obscure, set_proc_cmd, "Set current process context");
++#endif
+}
-
diff --git a/devel/gdb66/files/patch-kvm-fbsd.c b/devel/gdb66/files/patch-kvm-fbsd.c
index 5ca670978024..13f0b4f78149 100644
--- a/devel/gdb66/files/patch-kvm-fbsd.c
+++ b/devel/gdb66/files/patch-kvm-fbsd.c
@@ -1,6 +1,6 @@
---- /dev/null Mon Oct 21 01:38:23 2002
-+++ gdb/kvm-fbsd.c Mon Oct 21 01:37:48 2002
-@@ -0,0 +1,743 @@
+--- gdb/kvm-fbsd.c Fri Jan 3 08:57:23 2003
++++ gdb/kvm-fbsd.c Fri Jan 3 08:57:20 2003
+@@ -0,0 +1,756 @@
+/* Kernel core dump functions below target vector, for GDB.
+ Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1995
+ Free Software Foundation, Inc.
@@ -22,7 +22,7 @@
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+*/
+
-+/* $FreeBSD: /tmp/pcvs/ports/devel/gdb66/files/Attic/patch-kvm-fbsd.c,v 1.3 2002-10-21 21:29:09 mp Exp $ */
++/* $FreeBSD: /tmp/pcvs/ports/devel/gdb66/files/Attic/patch-kvm-fbsd.c,v 1.4 2003-01-04 20:19:55 mp Exp $ */
+
+/*
+ * This works like "remote" but, you use it like this:
@@ -62,6 +62,7 @@
+#include "gdbcore.h"
+#include "regcache.h"
+
++#if __FreeBSD_version >= 500032
+static void
+kcore_files_info (struct target_ops *);
+
@@ -719,10 +720,21 @@
+ if (set_context ((CORE_ADDR) val))
+ error ("invalid proc address");
+}
++#else
++int kernel_debugging = 0;
++int kernel_writablecore = 0;
++
++CORE_ADDR
++fbsd_kern_frame_saved_pc (struct frame_info *fi)
++{
++ return 0;
++}
++#endif
+
+void
+_initialize_kcorelow (void)
+{
++#if __FreeBSD_version >= 500032
+ kcore_ops.to_shortname = "kcore";
+ kcore_ops.to_longname = "Kernel core dump file";
+ kcore_ops.to_doc =
@@ -743,5 +755,5 @@
+
+ add_target (&kcore_ops);
+ add_com ("proc", class_obscure, set_proc_cmd, "Set current process context");
++#endif
+}
-