1
1
mirror of https://github.com/rui314/mold.git synced 2024-10-04 08:37:28 +03:00

Fix hanging unit test gdb-index

This affects Fedora >= 35, where debuginfod is enabled by default. On
such systems, gdb shows the following interactive prompt and then waits
forever:
```
This GDB supports auto-downloading debuginfo from the following URLs:
https://debuginfod.fedoraproject.org/
Enable debuginfod for this session? (y or [n])
```

Unsetting the `DEBUGINFOD_URLS` environment variable disables the prompt
as documented here: https://fedoraproject.org/wiki/Debuginfod#Disabling

Signed-off-by: Christoph Erhardt <github@sicherha.de>
This commit is contained in:
Christoph Erhardt 2022-04-15 19:07:27 +02:00
parent 1f55e40a8a
commit c6ae4234b8

View File

@ -43,6 +43,7 @@ $QEMU $t/exe | grep -q 'Hello world'
readelf -WS $t/exe | fgrep -q .gdb_index
unset DEBUGINFOD_URLS
gdb $t/exe -ex 'b main' -ex run -ex cont -ex quit >& /dev/null
echo OK