]> git.pld-linux.org Git - packages/gdb.git/blob - gdb-6.8-tui-singlebinary.patch
- NOTE: does not build with -j2
[packages/gdb.git] / gdb-6.8-tui-singlebinary.patch
1 Provide `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  }
This page took 0.027041 seconds and 3 git commands to generate.