summaryrefslogtreecommitdiff
path: root/devel
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
parentUse DBREG_DRX instead of accessing the dr members directly. This make gdb (diff)
Allow compilation on 4-stable for user mode use.
Diffstat (limited to 'devel')
-rw-r--r--devel/gdb53/files/patch-gdb_config_nm-fbsd.h13
-rw-r--r--devel/gdb53/files/patch-gdb_kvm-fbsd.c22
-rw-r--r--devel/gdb6/files/patch-config_nm-fbsd.h13
-rw-r--r--devel/gdb6/files/patch-gdb_config_nm-fbsd.h13
-rw-r--r--devel/gdb6/files/patch-gdb_kvm-fbsd.c22
-rw-r--r--devel/gdb6/files/patch-kvm-fbsd.c22
-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
10 files changed, 130 insertions, 45 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 */
diff --git a/devel/gdb53/files/patch-gdb_kvm-fbsd.c b/devel/gdb53/files/patch-gdb_kvm-fbsd.c
index d1aa7e8f8034..cfba8de27727 100644
--- a/devel/gdb53/files/patch-gdb_kvm-fbsd.c
+++ b/devel/gdb53/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/gdb53/files/Attic/patch-gdb_kvm-fbsd.c,v 1.3 2002-10-21 21:29:09 mp Exp $ */
++/* $FreeBSD: /tmp/pcvs/ports/devel/gdb53/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/gdb6/files/patch-config_nm-fbsd.h b/devel/gdb6/files/patch-config_nm-fbsd.h
index 80c2c6e4ce26..9b6c033446c5 100644
--- a/devel/gdb6/files/patch-config_nm-fbsd.h
+++ b/devel/gdb6/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/gdb6/files/patch-gdb_config_nm-fbsd.h b/devel/gdb6/files/patch-gdb_config_nm-fbsd.h
index 80c2c6e4ce26..9b6c033446c5 100644
--- a/devel/gdb6/files/patch-gdb_config_nm-fbsd.h
+++ b/devel/gdb6/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/gdb6/files/patch-gdb_kvm-fbsd.c b/devel/gdb6/files/patch-gdb_kvm-fbsd.c
index ed5ddcb8c015..65ae325da200 100644
--- a/devel/gdb6/files/patch-gdb_kvm-fbsd.c
+++ b/devel/gdb6/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/gdb6/files/Attic/patch-gdb_kvm-fbsd.c,v 1.3 2002-10-21 21:29:09 mp Exp $ */
++/* $FreeBSD: /tmp/pcvs/ports/devel/gdb6/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/gdb6/files/patch-kvm-fbsd.c b/devel/gdb6/files/patch-kvm-fbsd.c
index 3b44298245b7..48c5a95b3873 100644
--- a/devel/gdb6/files/patch-kvm-fbsd.c
+++ b/devel/gdb6/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/gdb6/files/Attic/patch-kvm-fbsd.c,v 1.3 2002-10-21 21:29:09 mp Exp $ */
++/* $FreeBSD: /tmp/pcvs/ports/devel/gdb6/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
+}
-
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
+}
-