freebsd-ports/devel/gdb/files/patch-unified
Kurt Jaeger 1b11093571 devel/gdb: 7.7.1 -> 7.8
For changes see also:
  http://www.gnu.org/software/gdb/download/ANNOUNCEMENT

PR:		192323
Submitted by:	yuri@rawbw.com
Approved by:	luca.pizzamiglio@gmail.com (maintainer)
2014-08-04 20:50:49 +00:00

15 lines
462 B
Text

--- gdb/gdb.c Thu Feb 13 13:07:24 2003
+++ gdb/gdb.c Wed May 17 00:24:39 2006
@@ -31,5 +32,11 @@
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);
}