]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Always propagate exceptions in DAP
authorTom Tromey <tromey@adacore.com>
Wed, 3 Sep 2025 15:26:25 +0000 (09:26 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 26 Sep 2025 15:29:13 +0000 (09:29 -0600)
commitecac42af735c3fa6abe49ec7cf9ebcd34096b2ac
tree850ee951cb01feaae32bbbb3174e08cafe06eaea
parente14efc5bf7c1af686976cae532acf3d6ad31b2a1
Always propagate exceptions in DAP

This changes the DAP exec_and_log function to always transform an
exception into a DAPException and propagate it.

As the bug points out, we haven't always wrapped calls when
appropriate.  I think it's better to cause the request to fail by
default; if any spot truly needs to ignore errors, that is readily
done at the point of call.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33346
gdb/python/lib/gdb/dap/events.py
gdb/python/lib/gdb/dap/next.py
gdb/python/lib/gdb/dap/startup.py
gdb/testsuite/gdb.dap/attach-fail.exp [new file with mode: 0644]