ports/devel/gdb/files/patch-unified
Luca Pizzamiglio da0888d129 devel/gdb: Update to gdb 8.0.1
Resolve tons of warnings.
Fix the type of literal string as char const *
Fix Makefile's variables order and adding the license file
Rework patches to make portlint happy

Reviewed by:	jhb
Approved by:	lme (mentor)
Differential Revision:	https://reviews.freebsd.org/D12525
2017-09-29 14:49:58 +00:00

16 lines
505 B
Text

--- gdb/gdb.c.orig 2017-09-14 09:28:17 UTC
+++ gdb/gdb.c
@@ -28,6 +28,12 @@ main (int argc, char **argv)
memset (&args, 0, sizeof args);
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);
}