]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix failure with C++ exceptions in DAP
authorTom Tromey <tromey@adacore.com>
Fri, 5 Jul 2024 16:53:43 +0000 (10:53 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 14 Aug 2024 16:08:58 +0000 (10:08 -0600)
commitf2387377574992655490996e46e25cc5fb7993da
treef90ddc1479e4ba090562a5824a67427f9b70275d
parent0c3bfda0ac6044b3515193f25b1555d912e22baf
Fix failure with C++ exceptions in DAP

While working on earlier patches, I noticed that the DAP C++ exception
test had some strange results in the log.  Digging into this, I found
that while the Ada catchpoints emit a "bkptno" field in the MI result,
the C++ ones do not -- but the DAP code was relying on this.

This patch fixes the problem by changing which field is examined, and
then updates the tests to verify this.

Reviewed-by: Keith Seitz <keiths@redhat.com>
gdb/python/lib/gdb/dap/breakpoint.py
gdb/testsuite/gdb.dap/catch-exception.exp
gdb/testsuite/gdb.dap/cxx-exception.exp