Files
qiling/tests
retrocpugeekandClaude Opus 5 a13a8c8c1f gdb: accept vCont C/S actions carrying any signal
A client that resumes while a signal is pending sends a vCont action of the
form 'C<sig>' (continue and deliver) or 'S<sig>' (step and deliver), e.g.
'vCont;S0f:pa410.1996;c:pa410.-1' -- the exact packet reported in issue
#1377. handle_v matched only 'c'/'C05' and 's'/'S05', so any other signal
fell through to an empty reply and clients aborted the session with
'Invalid remote reply:'.

We do not deliver host signals to the guest, so the signal value carries no
meaning for us: accept any of them and carry the action out as a plain
resume or step, which is what the client asked for. This matters more now
that the stub can stop with SIGINT on an async interrupt, since a client
may well resume from such a stop with 'C02'.

Also stop assuming os.exit_code exists when reporting termination: bare-metal
os layers (QlOsMcu) do not define it, which turns the exit path into an
AttributeError (seen in issue #1276). The underlying MCU interrupt handling
of #1276 is out of scope here.

Add a regression test asserting the '#1377' packet is answered with a
SIGTRAP stop-reply and that a signalled continue runs the guest to
termination; both replies are empty without the fix.

Fixes #1377

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-08-23 22:15:04 +10:00
..
2025-04-01 18:59:28 +03:00
2025-07-06 18:44:59 +03:00
2019-11-25 09:22:41 +08:00
2022-01-25 15:29:34 +02:00
2023-06-18 01:17:00 +03:00
2022-07-26 23:35:13 +03:00
2025-11-16 18:19:20 +00:00
2023-08-25 02:39:10 +03:00
2022-06-17 17:00:35 +08:00
2021-02-10 22:23:17 +08:00
2023-06-18 01:17:00 +03:00
2025-11-15 01:57:40 +00:00
2022-06-17 17:00:35 +08:00
2021-06-11 17:24:25 +08:00
2022-08-22 11:16:26 +03:00
2023-06-18 01:17:00 +03:00
2023-06-18 01:17:00 +03:00
2023-06-18 01:17:00 +03:00
2025-03-09 20:05:49 +02:00
2023-08-25 02:39:10 +03:00
2023-06-18 01:17:00 +03:00
2024-01-08 19:43:18 +08:00
2022-01-25 15:29:34 +02:00
2023-06-18 01:17:00 +03:00
2023-08-25 02:39:10 +03:00
2025-03-07 23:16:45 +08:00
2022-01-25 15:29:34 +02:00
2023-06-18 01:17:00 +03:00

This folder includes the testsuite for CI, such as Travis.