2010-11-16 21:39:48 +01:00
|
|
|
--- gdb/gdb.c Thu Feb 13 13:07:24 2003
|
|
|
|
+++ gdb/gdb.c Wed May 17 00:24:39 2006
|
2014-08-04 22:50:49 +02:00
|
|
|
@@ -31,5 +32,11 @@
|
2010-11-16 21:39:48 +01:00
|
|
|
args.argc = argc;
|
|
|
|
args.argv = argv;
|
|
|
|
- args.interpreter_p = INTERP_CONSOLE;
|
|
|
|
+ if (strncmp(basename(argv[0]), "insight", 7) == 0) {
|
|
|
|
+ args.interpreter_p = "insight";
|
|
|
|
+ } else if (strncmp(basename(argv[0]), "gdbtui", 6) == 0) {
|
|
|
|
+ args.interpreter_p = INTERP_TUI;
|
|
|
|
+ } else {
|
|
|
|
+ args.interpreter_p = INTERP_CONSOLE;
|
|
|
|
+ }
|
|
|
|
return gdb_main (&args);
|
|
|
|
}
|