mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
26 lines
661 B
Plaintext
26 lines
661 B
Plaintext
--- 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);
|
|
}
|