diff options
author | Tom de Vries <tdevries@suse.de> | 2025-09-05 09:54:41 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2025-09-05 09:54:41 +0200 |
commit | cc91060a47aa0f8d0e4f2c73f720068162408860 (patch) | |
tree | 79749940c27344be372e31b1e36626b4e8bdde21 /ld/cdtest-foo.h | |
parent | c6df5d79aac5c4a77c06314fd26c837470360f70 (diff) | |
download | fsf-binutils-gdb-master.zip fsf-binutils-gdb-master.tar.gz fsf-binutils-gdb-master.tar.bz2 |
When running test-case gdb.base/fileio.exp with host/target board
local-remote-host-native I run into:
...
gdb compile failed, fileio.c: In function 'test_open':
<command-line>:0:8: error: expected expression before '.' token
fileio.c:89:15: note: in expansion of macro 'OUTDIR'
ret = open (OUTDIR FILENAME, O_CREAT | O_TRUNC | O_RDWR, S_IWUSR | S_IRUSR);
^~~~~~
...
Fix this by using:
- quote_for_host to pass -DOUTDIR to the compilation, and
- STRINGIFY to stringify OUTDIR in fileio.c.
Tested on x86_64-linux, with target board unix and host/target board
local-remote-host-native.
Diffstat (limited to 'ld/cdtest-foo.h')
0 files changed, 0 insertions, 0 deletions