Skip to contentSkip to conversation

testsuite/smokey: Do not load .gdbinit in gdb test

PATCH Applied Vitaly Chikunov 2 participants 2 messages Apr 23, 2020 – Apr 24, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 testsuite/smokey: Do not load .gdbinit in gdb test

Avoid possible prompt being redefined in `.gdbinit' which could break gdb test.

---
 testsuite/smokey/gdb/gdb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
smokey/gdb/gdb.c +1 -1
index cc11d2352..eabf75e6a 100644
@@ -273,7 +273,7 @@ static int run_gdb(struct smokey_test *t, int argc, char *const argv[])
 
 			snprintf(run_param, sizeof(run_param), "--run=%d",
 				 t->__reserved.id);
-			execlp("gdb", "gdb", "--args",
+			execlp("gdb", "gdb", "--nx", "--args",
 			      argv[0], run_param, "run_target", (char *)NULL);
 			_exit(ESRCH);
 
Signature · 1 line
2.21.0
Applied
#1 lore raw
Quoted 14 lines · Vitaly Chikunov

Avoid possible prompt being redefined in `.gdbinit' which could break gdb test.

---
  testsuite/smokey/gdb/gdb.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
smokey/gdb/gdb.c +0 -0
index cc11d2352..eabf75e6a 100644

smokey/gdb/gdb.c static int run_gdb(struct smokey_test *t, int argc, char *const argv[]) · line 279

Quoted 8 lines
smokey/gdb/gdb.c +1 -1
@@ -273,7 +273,7 @@ static int run_gdb(struct smokey_test *t, int argc, char *const argv[])
 
  			snprintf(run_param, sizeof(run_param), "--run=%d",
  				 t->__reserved.id);
-			execlp("gdb", "gdb", "--args",
+			execlp("gdb", "gdb", "--nx", "--args",
  			      argv[0], run_param, "run_target", (char *)NULL);
  			_exit(ESRCH);
 

Thanks, applied.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux