aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/set-solib-absolute-prefix.c
AgeCommit message (Collapse)AuthorFilesLines
10 daysRename set-solib-absolute-prefix.exp to x86-set-solib-absolute-prefix.expAlexandra Hájková1-32/+0
and move it from gdb.base to gdb.arch as it's a target specific test. Reviewed-by: Maciej W. Rozycki <macro@redhat.com> Approved-By: Tom Tromey <tom@tromey.com>
2025-04-02Add gdb.base/set-solib-absolute-prefix.expAlexandra Hajkova1-0/+32
Compile a 32-bit x86 executable and then stop within a system call. Change the sysroot to a non-existent directory, GDB should try (and fail) to reload the currently loaded shared libraries. However, GDB should retain the symbols for the vDSO library as that is not loaded from the file system. Check the backtrace to ensure that the __kernel_vsyscall symbol is still in the backtrace, this indicates GDB still has the vDSO symbols available. This test was present in Fedora for a long time and was originally written by Jan Kratochvil for this fix 829a902da291e72ad17e8c44fa8d9ead3db41b1f. Co-Authored-By: Jan Kratochvil <jan.kratochvil@redhat.com> Approved-By: Andrew Burgess <aburgess@redhat.com>