gdb/testsuite: make gdb_supported_languages a caching proc
authorAndrew Burgess <aburgess@redhat.com>
Thu, 11 May 2023 13:35:49 +0000 (14:35 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Tue, 16 May 2023 10:37:43 +0000 (11:37 +0100)
commit4473d4f9096d75b24e5dc0225791d7c32fdbec47
treeb156e8de2324c77d662b1b10d7554c26bf0c3566
parent0a7dda4f7af1e2911d125726cd3b0ddb42617875
gdb/testsuite: make gdb_supported_languages a caching proc

Rewrite gdb_supported_languages as a caching proc that actually
queries GDB for the list of supported languages, rather than just
containing a hard-coded list of languages.

There's only one test that uses this proc right now,
gdb.python/py-function.exp, and that still passes after this change,
with no changes in the test names.
gdb/testsuite/lib/gdb.exp