diff options
author | Guinevere Larsen <blarsen@redhat.com> | 2024-05-31 10:48:54 -0300 |
---|---|---|
committer | Guinevere Larsen <blarsen@redhat.com> | 2024-08-02 13:02:07 -0300 |
commit | 6ce1ea97af20b9e618c524aa719e70c17dacda74 (patch) | |
tree | c9a8a147222219a2285355cc330e55cf21022694 /gdb/amd64-linux-nat.c | |
parent | 713e89012e43c83a6c1bb957c43ff58e5433336c (diff) | |
download | gdb-6ce1ea97af20b9e618c524aa719e70c17dacda74.zip gdb-6ce1ea97af20b9e618c524aa719e70c17dacda74.tar.gz gdb-6ce1ea97af20b9e618c524aa719e70c17dacda74.tar.bz2 |
gdb,testsuite: fix gdb.base/list-dot-nodebug and make it more robust
Thiago Jung Bauermann noticed that gdb.base/list-dot-nodebug was not
actually compiling the test with some debuginfo in the relevant part,
and while fixing I noticed that the base assumption of the "some" case
was wrong, GDB would select some symtab as a default location and the
test would always fail. This fix makes printing the default location
only be tested when there is no debuginfo.
When testing with no debuginfo, if a system had static libc debuginfo,
the test would also fail. To add an extra layer of robustness to the
test, this rewrite also strips any stray debuginfo from the executable.
The test would only fail now if it runs in a system that can't handle
stripped debuginfo and has static debuginfo pre-installed.
Reported-By: Tom de Vries <tdevries@suse.de>
Reported-By: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31721
Reviewed-by: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/amd64-linux-nat.c')
0 files changed, 0 insertions, 0 deletions