]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - gdb/patches/gdb-6.8-tui-singlebinary.patch
gdb: Update to 7.3.50.20110722.
[people/arne_f/ipfire-3.x.git] / gdb / patches / gdb-6.8-tui-singlebinary.patch
CommitLineData
5a03b7c3
MT
1Provide `gdb --tui' functionality for the hardlink `gdbtui'.
2
3--- ./gdb/gdb.c 1 Jan 2008 22:53:09 -0000 1.6
4+++ ./gdb/gdb.c 20 Jun 2008 08:02:57 -0000
5@@ -30,5 +30,19 @@ main (int argc, char **argv)
6 args.argv = argv;
7 args.use_windows = 0;
8 args.interpreter_p = INTERP_CONSOLE;
9+
10+ if (argv[0])
11+ {
12+ char *s;
13+
14+ s = strrchr (argv[0], '/');
15+ if (s)
16+ s++;
17+ else
18+ s = argv[0];
19+ if (strcmp (s, "gdbtui") == 0)
20+ args.interpreter_p = INTERP_TUI;
21+ }
22+
23 return gdb_main (&args);
24 }