diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-09-27 07:38:23 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-09-27 07:38:23 +0000 |
commit | 5ee17cb3c626761fbc5feefdd152bbd9be7e02c7 (patch) | |
tree | 31d8b41342cf17e772ad21eb997806e291a10642 /devel/gdb53-act/files/patch-gdb_config_nm-fbsd.h | |
parent | New port: adabindx - an Ada-binding to the X Window System and *tif (diff) |
new port - ACT modified gdb53, a gdb that understands the Ada programming language
Ada programming knowledgeable version of gdb53
PR: ports/56371
Submitted by: John R. Shannon <john@johnrshannon.com>
Notes
Notes:
svn path=/head/; revision=89530
Diffstat (limited to 'devel/gdb53-act/files/patch-gdb_config_nm-fbsd.h')
-rw-r--r-- | devel/gdb53-act/files/patch-gdb_config_nm-fbsd.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/devel/gdb53-act/files/patch-gdb_config_nm-fbsd.h b/devel/gdb53-act/files/patch-gdb_config_nm-fbsd.h new file mode 100644 index 000000000000..9b6c033446c5 --- /dev/null +++ b/devel/gdb53-act/files/patch-gdb_config_nm-fbsd.h @@ -0,0 +1,39 @@ +--- 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}, \ ++ {"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 ++#endif /* CONFIG_NM_FBSD_H */ |