mirror of
https://git.freebsd.org/ports.git
synced 2025-05-02 19:46:41 -04:00
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
16 lines
505 B
Text
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);
|
|
}
|