Rewrite version_compare and rust_at_least
authorTom Tromey <tromey@adacore.com>
Tue, 14 Mar 2023 13:51:45 +0000 (07:51 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 29 Mar 2023 16:13:12 +0000 (10:13 -0600)
commit1fa14231efd56ee77a9d8f66f741e285c0040839
treee52dcc9c588d987430a1e7202b435703aad6183a
parent52fcd590bdabebf6cb4baa271cc1208f2541e6d4
Rewrite version_compare and rust_at_least

This rewrites version_compare to allow the input lists to have
different lengths, then rewrites rust_at_least to use version_compare.
gdb/testsuite/lib/gdb-utils.exp
gdb/testsuite/lib/rust-support.exp