]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Make nsalias.exp more reliable
authorTom Tromey <tom@tromey.com>
Fri, 10 Mar 2023 16:49:24 +0000 (09:49 -0700)
committerTom Tromey <tom@tromey.com>
Sun, 28 Jan 2024 17:58:16 +0000 (10:58 -0700)
commit83c8b5eb334a77249e5b8f20ed891c227d8e42ae
tree117963ddaba82c197b5d1b397992ebabfdbf6ba5
parent17841991c3144991e942c6cec8f21527b8cdb51f
Make nsalias.exp more reliable

nsalias.exp tries to detect a complaint that is issued when expanding
a CU.  However, the test is a bit funny in that, while gdb does
currently expand the CU and issue the complaint, it also emits this
error:

    No symbol "N100" in current context.

This series will change gdb such that this CU is not expanded -- which
makes sense, the symbol in question doesn't actually match the lookups
that are done.

So, to make the test more robust, a direct request to expand symtabs
is done instead.
gdb/testsuite/gdb.cp/nsalias.exp