]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Fix gdb.base/exec-invalid-sysroot.exp
authorTom de Vries <tdevries@suse.de>
Wed, 4 Jun 2025 07:58:07 +0000 (09:58 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 4 Jun 2025 07:58:07 +0000 (09:58 +0200)
commit4c1459870634074ea2266ec5755371eec3948963
tree9044fc2fdb507be9814ce863d04f04987f5cd6cc
parent9037efb5472bc139d3be675ea4274105faeae5b3
[gdb/testsuite] Fix gdb.base/exec-invalid-sysroot.exp

Since commit d462550c91c ("gdb/testsuite: also compile foll-exec.exp as C++"),
we run into:
...
Running gdb.base/exec-invalid-sysroot.exp ...
gdb compile failed, foll-exec.c: In function 'main':
foll-exec.c:35:52: error: 'EXECD_PROG' undeclared (first use in this function)
   printf ("foll-exec is about to execlp(%s)...\n", EXECD_PROG);
                                                    ^~~~~~~~~~
foll-exec.c:35:52: note: each undeclared identifier is reported only once \
  for each function it appears in
...

Fix this by default-defining EXECD_PROG to "execd-prog".

Tested on x86_64-linux.
gdb/testsuite/gdb.base/foll-exec.c