Commit Graph
7450 Commits
Author SHA1 Message Date
xwings 638ee864a5 Merge pull request #1657 from xwings/dev
Dev
2026-09-05 17:01:47 +08:00
xwings 6f7b256f66 Merge branch 'dev' of github.com:xwings/qiling into dev 2026-09-05 16:59:35 +08:00
xwings 2dbbf48588 bump to 1.4.11 2026-09-05 16:59:26 +08:00
xwings d8c2e30b2f Merge branch 'qilingframework:dev' into dev 2026-09-05 16:57:54 +08:00
xwings 206b90fd89 minor refactor and pypi fix 2026-09-05 16:57:28 +08:00
xwings c54e4078c8 Merge pull request #1655 from xwings/dev
update new ARCHITECTURE docs
2026-09-01 14:54:59 +08:00
xwings 64054a0129 update new ARCHITECTURE docs 2026-09-01 12:15:35 +08:00
xwings 83c5b1b0ed Merge pull request #1654 from retrocpugeek/fix/gdb-async-interrupt
gdb: fix stop-replies for step, signalled vCont resume, and ctrl-c interrupt
2026-09-01 11:48:44 +08:00
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
retrocpugeekandClaude Opus 4.8 c5a8a9b73e gdb: support async interrupt (ctrl-c) to break into a running guest
The stub drove continue by calling emu_start synchronously and only read
the socket again once the target stopped on its own, so the bare \x03 break
byte a client sends to pause a running target was never seen. A guest that
free-runs (e.g. an idle/event loop) could not be interrupted at all --
gdb/Ghidra reported 'Cannot execute this command while the target is running'.

Poll the client socket for the break byte from the per-instruction run hook
(dbg_hook), which does run on the emulation thread during emu_start:

- GdbSerialConn.poll_interrupt(): non-blocking select+recv, True on \x03.
- QlGdbUtils.dbg_hook: throttled (every INTR_POLL_INTERVAL insns) check of an
  installed check_interrupt callback; on a break, stop emulation and record it.
- handle_c: reply SIGINT when the stop was an interrupt rather than a
  breakpoint or normal exit.

Add a regression test that lets an infinite-loop guest free-run, sends the
bare break byte and asserts the stop-reply is 'S02' (SIGINT). Without the
fix no reply ever arrives, so the test stops the guest itself and fails
rather than hanging the run.

Also verified against a free-running MIPS64 BE guest: \x03 -> S02 in <1ms.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
2026-08-23 22:14:50 +10:00
retrocpugeekandClaude Opus 4.8 de34db212d gdb: report SIGTRAP (not SIGTERM) on single-step
handle_s answered every single-step ('s') with a SIGTERM stop-reply
whenever ql.emu_state was QL_STATE.STOPPED. But emu_start always leaves
the state STOPPED after running the requested step count, so the guard
was true on every step and gdb clients saw a spurious termination signal,
disconnecting mid-debug (issues #1377, #1538).

Give handle_s the same exit-vs-trap discrimination handle_c already uses:
a step reports SIGTRAP unless it carried pc to the emulation exit point,
in which case the guest has actually terminated and we reply W{exit_code}.
Also wrap the step in the same UcError/KeyboardInterrupt handling as
handle_c so a fault while stepping maps to a signal instead of crashing
the stub, and hoist the shared uc-error->signal map to a module constant.

Add a regression test that single-steps over the gdb stub and asserts the
stop-reply is 'S05' (SIGTRAP), which fails as 'S0f' (SIGTERM) without the fix.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-08-07 22:28:08 +10:00
xwings 499218bd1a Merge pull request #1642 from xwings/dev
Add AGENT documentation.
2026-07-02 09:57:41 +08:00
xwings e522d7e089 fix documents and minor changes 2026-07-02 08:54:12 +08:00
xwings abc4855388 Add documents for AGENTS 2026-07-02 08:52:20 +08:00
xwings a42fb28579 Bump version to 1.4.11-dev and update classifiers 2026-04-28 16:02:08 +08:00
xwings da210f0757 Update pyproject.toml 1.4.10 2026-04-28 15:58:29 +08:00
xwings c33a59cc08 Merge pull request #1624 from qilingframework/dependabot/pip/setuptools-78.1.1
Bump setuptools from 75.3.0 to 78.1.1
2026-04-28 15:57:51 +08:00
dependabot[bot] f5d7a745a3 Bump setuptools from 75.3.0 to 78.1.1
Bumps [setuptools](https://github.com/pypa/setuptools) from 75.3.0 to 78.1.1.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v75.3.0...v78.1.1)

---
updated-dependencies:
- dependency-name: setuptools
  dependency-version: 78.1.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
2026-04-28 07:56:51 +00:00
xwings bd263898e5 Merge pull request #1623 from qilingframework/dev
Preparing 1.4.9
2026-04-28 15:54:29 +08:00
xwings 2eba2cdc32 Merge pull request #1622 from xwings/dev
update rootfs branch
2026-04-28 15:53:09 +08:00
xwings b6ced6fa21 update rootfs branch 2026-04-28 15:51:49 +08:00
xwings f77b4c5233 Merge pull request #1621 from xwings/dev
update rootfs branch
2026-04-28 15:07:52 +08:00
xwings d18027e7ef update rootfs branch 2026-04-28 15:06:26 +08:00
xwings 483916e0a8 Merge pull request #1620 from xwings/dev
Version 1.4.8
2026-04-28 15:04:24 +08:00
xwings ef898e68d7 Version 1.4.8 2026-04-28 15:03:09 +08:00
xwings f788e764aa Merge pull request #1618 from xwings/python-3.13
Fix MCU wait
2026-04-28 14:12:13 +08:00
xwings 3a8d37168d Fix MCU wait 2026-04-28 13:52:50 +08:00
xwings a6631f44be Merge pull request #1617 from xwings/python-3.13
Bump test to 3.11 and 3.13
2026-04-28 13:25:42 +08:00
xwings 22d109d882 Fix windows collector 2026-04-28 13:11:17 +08:00
xwings b9eafe85ac Merge branch 'dev' into python-3.13 2026-04-28 12:36:09 +08:00
xwings 47c8a92b1e Bump test to 3.11 and 3.13 2026-04-28 11:47:55 +08:00
xwings 7b73f59355 Merge pull request #1615 from xwings/docker-fix
fix docker python:3-slim and dropped --no-deps
2026-04-28 11:00:22 +08:00
xwings 0d17d14a15 fix docker python:3-slim and dropped --no-deps 2026-04-28 10:57:47 +08:00
xwings 8cb2a6b918 Merge pull request #1614 from xwings/docker-fix
fix docker python:3-slim
2026-04-28 10:05:58 +08:00
xwings 104830d52d fix docker python:3-slim 2026-04-28 09:31:39 +08:00
xwings b4d9238ddb Merge pull request #1613 from xwings/dev
ignore files
2026-04-28 09:25:52 +08:00
xwings 22947e0755 ignore files 2026-04-28 09:24:32 +08:00
xwings d87967e77d Merge pull request #1610 from xwings/dev
Add TODO.md, ARCHITECTURE.md. Update README.md. and add kernel proxy
2026-04-27 22:11:34 +08:00
xwings 486369d375 better New SYSCALL_EX IPC message, FD arg type and Forwarder closure 2026-04-27 21:52:49 +08:00
xwings cb875f8488 more qiling style. update logging and exception 2026-04-12 16:48:53 +08:00
xwings 2f16cccc5d Fix docker.yaml and sync 2026-04-12 16:19:42 +08:00
xwings b60d4026b8 Fix docker.yaml 2026-04-12 16:18:34 +08:00
xwings 5ed49e7dcb Merge branch 'qilingframework:dev' into dev 2026-04-11 23:04:43 +08:00
xwings dbc939b678 Merge pull request #1558 from libumem/dev
epoll support
2026-04-11 23:03:56 +08:00
xwings 30eba376fc Add TODO.md, ARCHITECTURE.md. Update README.md. and add kernel proxy 2026-04-11 22:48:18 +08:00
libumem 3675f557e9 Address @elicn feedback 2025-11-16 18:19:20 +00:00
libumem 4448d4c129 Remove stray PDB invocation 2025-11-15 01:57:40 +00:00
libumem a76b858332 Tentative fix for epoll server test case 2025-11-14 04:39:15 +00:00
libumem 2ecd1d924a Merge branch 'qilingframework:dev' into dev 2025-11-12 20:23:27 -05:00
xwings fe462b8313 Merge pull request #1600 from 0xMirasio/master
PPC debugger XML support
2025-11-06 05:15:48 +08:00