Signed-off-by: Norbert Lange <norbert.la...@andritz.com>
---
 testsuite/smokey/gdb/gdb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testsuite/smokey/gdb/gdb.c b/testsuite/smokey/gdb/gdb.c
index 33c16fe87..4f39f3f6c 100644
--- a/testsuite/smokey/gdb/gdb.c
+++ b/testsuite/smokey/gdb/gdb.c
@@ -280,8 +280,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:
-- 
2.23.0


Reply via email to