]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Handle optional lines correctly in gdb.ada/complete.exp
authorTom Tromey <tromey@adacore.com>
Thu, 5 Sep 2024 18:09:43 +0000 (12:09 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 20 Feb 2025 14:50:55 +0000 (07:50 -0700)
commitbe6adf5b7597cb2eb1e7f07fbfd766a9d6ac42bb
tree1502444f7db717f0db46642ce28d832e2a202ec8
parent904d3768c88a6591204969826f47d706f6da504a
Handle optional lines correctly in gdb.ada/complete.exp

While working on another series, I discovered that the existing code
in gdb.ada/complete.exp that conditionally accepts a completion does
not work correctly.  The code assumes that wrapping a line in "(...)?"
will make the entire line optional, but really this will only match a
blank line.

Meanwhile, I needed this same patch for a second series I'm working
on, so I've pulled this out.  As it only affects Ada, I am going to
check it in.
gdb/testsuite/gdb.ada/complete.exp