From 838ce26f5fda580254c3b64f81e5d676a688d714 Mon Sep 17 00:00:00 2001 From: Mark Peek Date: Sun, 13 Oct 2002 21:22:39 +0000 Subject: Patches to get FreeBSD changes working with gdb-5.3. --- devel/gdb66/files/patch-gdb_config_nm-fbsd.h | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 devel/gdb66/files/patch-gdb_config_nm-fbsd.h (limited to 'devel/gdb66/files/patch-gdb_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 new file mode 100644 index 000000000000..80c2c6e4ce26 --- /dev/null +++ b/devel/gdb66/files/patch-gdb_config_nm-fbsd.h @@ -0,0 +1,34 @@ +--- 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 @@ ++#ifndef CONFIG_NM_FBSD_H ++#define CONFIG_NM_FBSD_H ++ ++extern int kernel_debugging; ++extern int kernel_writablecore; ++ ++CORE_ADDR fbsd_kern_frame_saved_pc(struct frame_info *frame); ++ ++#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 /* CONFIG_NM_FBSD_H */ -- cgit v1.2.3