diff options
author | Mark Peek <mp@FreeBSD.org> | 2002-10-13 21:22:39 +0000 |
---|---|---|
committer | Mark Peek <mp@FreeBSD.org> | 2002-10-13 21:22:39 +0000 |
commit | 838ce26f5fda580254c3b64f81e5d676a688d714 (patch) | |
tree | 6f9a248ee4c5dba60973a912c14049cf643cf7a8 /devel/gdb6/files/patch-gdb_config_i386_nm-fbsd.h | |
parent | 46723b1c08bc98b0d8bcf23f77137fad6cae9730 (diff) | |
download | ports-838ce26f5fda580254c3b64f81e5d676a688d714.tar.gz ports-838ce26f5fda580254c3b64f81e5d676a688d714.zip |
Notes
Diffstat (limited to 'devel/gdb6/files/patch-gdb_config_i386_nm-fbsd.h')
-rw-r--r-- | devel/gdb6/files/patch-gdb_config_i386_nm-fbsd.h | 41 |
1 files changed, 8 insertions, 33 deletions
diff --git a/devel/gdb6/files/patch-gdb_config_i386_nm-fbsd.h b/devel/gdb6/files/patch-gdb_config_i386_nm-fbsd.h index 3c33c3340f96..efd2ce270e6f 100644 --- a/devel/gdb6/files/patch-gdb_config_i386_nm-fbsd.h +++ b/devel/gdb6/files/patch-gdb_config_i386_nm-fbsd.h @@ -1,35 +1,10 @@ ---- gdb/config/i386/nm-fbsd.h Sat Jul 21 13:16:44 2001 -+++ gdb/config/i386/nm-fbsd.h Mon Jun 3 10:04:54 2002 -@@ -148,5 +152,32 @@ - #define ld_2 d_sdt +--- gdb/config/i386/nm-fbsd.h Fri Jun 28 11:44:49 2002 ++++ gdb/config/i386/nm-fbsd.h Sun Oct 13 10:53:27 2002 +@@ -26,6 +26,7 @@ + #define I386_USE_GENERIC_WATCHPOINTS + #endif - #endif /* !SVR4_SHARED_LIBS */ -+ -+extern int kernel_debugging; -+extern int kernel_writablecore; -+ -+#if __FreeBSD_version >= 500032 -+#define ADDITIONAL_OPTIONS \ -+ {"kernel", no_argument, &kernel_debugging, 1}, \ -+ {"k", no_argument, &kernel_debugging, 1}, \ -+ {"wcore", no_argument, &kernel_writablecore, 1}, \ -+ {"w", no_argument, &kernel_writablecore, 1}, -+ -+#define ADDITIONAL_OPTION_HELP \ -+ "\ -+ --kernel Enable kernel debugging.\n\ -+ --wcore Make core file writable (only works for /dev/mem).\n\ -+ This option only works while debugging a kernel !!\n\ -+" -+ -+#define DEFAULT_PROMPT kernel_debugging?"(kgdb) ":"(gdb) " -+ -+/* misuse START_PROGRESS to test whether we're running as kgdb */ -+/* START_PROGRESS is called at the top of main */ -+#undef START_PROGRESS -+#define START_PROGRESS(STR,N) \ -+ if (!strcmp(STR, "kgdb")) \ -+ kernel_debugging = 1; -+#endif ++#include "config/nm-fbsd.h" + #include "i386/nm-i386.h" - #endif /* NM_FBSD_H */ + #ifdef HAVE_SYS_PARAM_H |