diff options
author | Steven Kreuzer <skreuzer@FreeBSD.org> | 2010-11-16 20:39:48 +0000 |
---|---|---|
committer | Steven Kreuzer <skreuzer@FreeBSD.org> | 2010-11-16 20:39:48 +0000 |
commit | ade713343b20094ef59cfd831d3102f58ca4f8f6 (patch) | |
tree | a57bc51fcd78d5afef68927cd563c9988bd2601d /devel/gdb/files/patch-unified | |
parent | Add fix for vmware-user-suid-wrapper failes to load vmblock.ko (diff) |
GDB is a source-level debugger for Ada, C, C++, Objective-C, Pascal and
many other languages. GDB can target (i.e., debug programs running on)
more than a dozen different processor architectures, and GDB itself can
run on most popular GNU/Linux, Unix and Microsoft Windows variants.
This version of gdb has been modified by jhb@ to recognize freebsd threads
Reviewed by: John Baldwin <jhb@FreeBSD.org>, swell.k@gmail.com
Notes
Notes:
svn path=/head/; revision=264650
Diffstat (limited to 'devel/gdb/files/patch-unified')
-rw-r--r-- | devel/gdb/files/patch-unified | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/devel/gdb/files/patch-unified b/devel/gdb/files/patch-unified new file mode 100644 index 000000000000..19ef04213ee0 --- /dev/null +++ b/devel/gdb/files/patch-unified @@ -0,0 +1,25 @@ +--- gdb/gdb.c Thu Feb 13 13:07:24 2003 ++++ gdb/gdb.c Wed May 17 00:24:39 2006 +@@ -23,4 +23,5 @@ + #include "gdb_string.h" + #include "interps.h" ++#include <libgen.h> + + int +@@ -31,6 +32,14 @@ + args.argc = argc; + args.argv = argv; +- args.use_windows = 0; +- args.interpreter_p = INTERP_CONSOLE; ++ if (strncmp(basename(argv[0]), "insight", 7) == 0) { ++ args.use_windows = 1; ++ args.interpreter_p = "insight"; ++ } else if (strncmp(basename(argv[0]), "gdbtui", 6) == 0) { ++ args.use_windows = 0; ++ args.interpreter_p = INTERP_TUI; ++ } else { ++ args.use_windows = 0; ++ args.interpreter_p = INTERP_CONSOLE; ++ } + return gdb_main (&args); + } |