aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorLancelot Six <lancelot.six@amd.com>2023-09-11 14:54:59 +0000
committerLancelot Six <lancelot.six@amd.com>2023-09-12 08:12:26 +0000
commitaa240fbd480651bd72b3cebe7b5ea1cda204b7e9 (patch)
tree300360f6301b3d619ff267851f1e174d3693b40d /gdb
parent318d3bda5cad124bd11eebb0349d0f183ba625b1 (diff)
downloadgdb-aa240fbd480651bd72b3cebe7b5ea1cda204b7e9.zip
gdb-aa240fbd480651bd72b3cebe7b5ea1cda204b7e9.tar.gz
gdb-aa240fbd480651bd72b3cebe7b5ea1cda204b7e9.tar.bz2
gdb/testsuite/rocm: fix rocm-multi-inferior-gpu.cpp
The gdb/testsuite/gdb.rocm/multi-inferior-gpu.cpp testcase contains a call to execl which does not have NULL as a last argument. This is an invalid use of execl. This patch fixes this oversight. Change-Id: I03b60abe30468d71ba5089b240c6d00f9b8883b2 Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.rocm/multi-inferior-gpu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.rocm/multi-inferior-gpu.cpp b/gdb/testsuite/gdb.rocm/multi-inferior-gpu.cpp
index ca86923..d64afdd 100644
--- a/gdb/testsuite/gdb.rocm/multi-inferior-gpu.cpp
+++ b/gdb/testsuite/gdb.rocm/multi-inferior-gpu.cpp
@@ -62,7 +62,7 @@ parent (int argc, char **argv)
if (pid == 0)
{
/* Exec to force the child to re-initialize the ROCm runtime. */
- if (execl (argv[0], argv[0], n) == -1)
+ if (execl (argv[0], argv[0], n, nullptr) == -1)
{
perror ("Failed to exec");
return -1;