]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Catch KeyboardInterrupt in send_gdb_with_response
authorTom Tromey <tromey@adacore.com>
Thu, 30 Nov 2023 20:57:09 +0000 (13:57 -0700)
committerTom Tromey <tromey@adacore.com>
Mon, 11 Dec 2023 18:44:35 +0000 (11:44 -0700)
commitc0a652c2aa8858dba99d578fa2fac25b1a532a0a
tree27ce9d7ad84bb16f15aff5f810454c74c5dbd945
parent606fc72a5f05a61184bc476dd877200336c1e3d0
Catch KeyboardInterrupt in send_gdb_with_response

Cancellation will generally be seen by the DAP code as a
KeyboardInterrupt.  However, this derives from BaseException and not
Exception, so a small change is needed to send_gdb_with_response, to
forward the exception to the DAP server thread.

Reviewed-By: Kévin Le Gouguec <legouguec@adacore.com>
gdb/python/lib/gdb/dap/startup.py