commit | 3a12e74ecedfc416aafeda26dbe335ad7962a283 | [log] [tgz] |
---|---|---|
author | Tom Tromey <tromey@adacore.com> | Thu Nov 16 10:44:42 2023 -0700 |
committer | Tom Tromey <tromey@adacore.com> | Mon Dec 11 11:44:33 2023 -0700 |
tree | 3887e5a68052763ffc5a9f7256bf78859cd67d45 | |
parent | f895e1592d5f4e58776e6a2d7ccdcc028cc5df80 [diff] |
Introduce gdb.interrupt DAP cancellation needs a way to interrupt whatever is happening on gdb's main thread -- whether that is the inferior, a gdb CLI command, or Python code. This patch adds a new gdb.interrupt() function for this purpose. It simply sets the quit flag and lets gdb do the rest. No tests in this patch -- instead this is tested via the DAP cancellation tests. Reviewed-By: Eli Zaretskii <eliz@gnu.org> Reviewed-By: Kévin Le Gouguec <legouguec@adacore.com>