Handle exceptions when creating DAP breakpoints
authorTom Tromey <tromey@adacore.com>
Thu, 25 May 2023 17:24:39 +0000 (11:24 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 22 Jun 2023 15:46:23 +0000 (09:46 -0600)
commitc1dad46f3585fca8f66061496ba791c9c3213481
tree19761b9640f87067dd318d6676b77aef67f2cc0d
parent44fc43e5c8cdd8fc1611daa95f3bb7b450926efc
Handle exceptions when creating DAP breakpoints

When creating a DAP breakpoint, a failure should be returned by
setting "verified" to False.  gdb didn't properly implement this, and
there was a FIXME comment to this effect.  This patch fixes the
problem.
gdb/python/lib/gdb/dap/breakpoint.py
gdb/testsuite/gdb.dap/catch-exception.exp
gdb/testsuite/gdb.dap/cond-bp.exp