Commit 6af0816a authored by Norbert Lange via Xenomai's avatar Norbert Lange via Xenomai Committed by Jan Kiszka

smokey/gdb: search gdb in PATH

Signed-off-by: default avatarNorbert Lange <norbert.lange@andritz.com>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent b091f9b0
......@@ -273,8 +273,8 @@ static int run_gdb(struct smokey_test *t, int argc, char *const argv[])
snprintf(run_param, sizeof(run_param), "--run=%d",
t->__reserved.id);
execl("/usr/bin/gdb", "gdb", "--args",
argv[0], run_param, "run_target", NULL);
execlp("gdb", "gdb", "--args",
argv[0], run_param, "run_target", (char *)NULL);
_exit(ESRCH);
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment