diff options
author | Tom de Vries <tdevries@suse.de> | 2024-12-20 06:16:55 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2024-12-20 06:16:55 +0100 |
commit | 45b4f0499cbea2ed0efb2e1e2719617a3734a9ab (patch) | |
tree | 1655d00aa664716cac0acf7ea8d1de12c0ec34b0 /gdb/ada-lang.c | |
parent | a426ba6b4aa6351f818e5591ac56ddadbfdeb17c (diff) | |
download | binutils-45b4f0499cbea2ed0efb2e1e2719617a3734a9ab.zip binutils-45b4f0499cbea2ed0efb2e1e2719617a3734a9ab.tar.gz binutils-45b4f0499cbea2ed0efb2e1e2719617a3734a9ab.tar.bz2 |
[gdb/testsuite] Use -nostdlib in gdb.linespec/explicit.exp
On openSUSE Leap 15.6 ppc64le-linux, with gdb.linespec/explicit.exp I run
into:
...
(gdb) b -source thread_pointer.h FAIL: $exp: complete after -source: tab complete "b -source thr"
Quit^M
...
The test-case already contains a related workaround:
...
# Get rid of symbols from shared libraries, otherwise
# "b -source thr<tab>" could find some system library's
# source.
gdb_test_no_output "nosharedlibrary"
...
but that doesn't work in this case because the debug info is in the executable
itself:
...
The File Name Table (offset 0xb5):
Entry Dir Time Size Name
1 0 0 0 abi-note.c
2 1 0 0 types.h
3 2 0 0 stdint-intn.h
4 2 0 0 stdint-uintn.h
5 3 0 0 elf.h
6 4 0 0 thread_pointer.h
...
due to debug info in some glibc object file.
Fix this by:
- using -nostdlib, ensuring only debug info from the three test-case sources
is present in the executable, and
- adding a _start wrapping main.
Tested on x86_64-linux and ppc64le-linux.
Reviewed-By: Keith Seitz <keiths@redhat.com>
PR testsuite/31229
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31229
Diffstat (limited to 'gdb/ada-lang.c')
0 files changed, 0 insertions, 0 deletions