You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c54e407
Browse filesBrowse the repository at this point in the historyBrowse files
|`qiling/debugger/debugger.py`| Base `QlDebugger`|
20
-
|`qiling/debugger/gdb/gdb.py`|`QlGdb`: GDB remote-serial-protocol server |
20
+
|`qiling/debugger/gdb/gdb.py`|`QlGdb`: GDB remote-serial-protocol server, plus the `GdbSerialConn` transport |
21
+
|`qiling/debugger/gdb/utils.py`|`QlGdbUtils`: breakpoint table and the per-instruction `dbg_hook` that services breakpoints, stepping, and async interrupts |
21
22
|`qiling/debugger/gdb/xmlregs.py`, `gdb/xml/`| Target-description XML per arch for modern GDB clients |
-`qiling/debugger/debugger.py:13` - `QlDebugger` - base; `run()` starts the session.
30
-
-`qiling/debugger/gdb/gdb.py:68` - `QlGdb(QlDebugger)` - listens on ip:port, translates RSP packets to Qiling hook/mem/reg operations.
31
+
-`qiling/debugger/gdb/gdb.py:84` - `QlGdb(QlDebugger)` - listens on ip:port, translates RSP packets to Qiling hook/mem/reg operations; `run()` (`:139`) serves the session.
32
+
-`qiling/debugger/gdb/gdb.py:817` - `GdbSerialConn` - the socket transport; `poll_interrupt()` (`:856`) is a non-blocking check for a client `\x03`, wired into `QlGdbUtils.check_interrupt` (`qiling/debugger/gdb/gdb.py:145`) so a running guest can be broken into asynchronously.
33
+
-`qiling/debugger/gdb/utils.py:16` - `QlGdbUtils` - `dbg_hook` (`:48`) runs per instruction to service breakpoints, single-step, and interrupts; `bp_insert`/`bp_remove` (`:81`/`:94`); `resume_emu` (`:107`).
34
+
- Stop replies report `SIGTRAP` (`qiling/debugger/gdb/gdb.py:49`) for both single-step (`:243`) and async-interrupt stops (`:262`).
-`qiling/os/blob/blob.py:12` - `QlOsBlob(QlOs)` - runs `entry_point` → `exit_point` with no OS services.
30
+
-`qiling/os/blob/blob.py:14` - `QlOsBlob(QlOs)` - runs `entry_point` → `exit_point` with no OS services.
30
31
- MCU selection: `QL_OS.MCU` is the only member of `QL_OS_BAREMETAL` (`qiling/const.py:74`); `ql.baremetal` (`qiling/core.py:357`) gates hardware-manager creation.
31
32
32
33
## Interactions
@@ -40,13 +41,21 @@ BLOB by `tests/test_blob.py` (u-boot) and `tests/test_edl.py`.
- The whole `test_blob.py` file does **not** pass from a clean checkout; see
50
+
Open Gaps.
48
51
49
52
## Open Gaps / Roadmap
50
53
51
54
- Supported chip families are those with board definitions in `qiling/extensions/mcu/` (STM32F1/F4, GD32VF1, NXP, Atmel, BES); new chips need new peripheral maps.
52
55
- BLOB mode provides no services by design — targets needing hardware must use MCU mode instead.
56
+
-`test_blob.BlobTest.test_blob_raw` (`tests/test_blob.py:85`) errors with
57
+
`FileNotFoundError` on a clean checkout: it reads
58
+
`examples/rootfs/blob/example_raw.bin` (`tests/test_blob.py:96`), but the
59
+
pinned `examples/rootfs` submodule ships only `u-boot.bin.img`. Either the
60
+
fixture must be added upstream and the submodule bumped, or the test skipped
-`qiling/os/windows/fncc.py` - `@winsdkapi` decorator - declares an API's calling convention and typed params; implementations live in `dlls/`.
34
-
- API dispatch is address-based: IAT addresses recorded by the PE loader are hooked and marshalled through `QlFunctionCall` — user overrides via `QlOs.set_api` (`qiling/os/os.py:224`).
34
+
- API dispatch is address-based: IAT addresses recorded by the PE loader are hooked and marshalled through `QlFunctionCall` — user overrides via `QlOs.set_api` (`qiling/os/os.py:225`).
35
35
-`qiling/os/uefi/uefi.py:22` - `QlOsUefi(QlOs)` - executes DXE/SMM modules; services in `bs.py`/`rt.py`/`smm.py` are installed as callable tables.
36
36
-`qiling/os/dos/dos.py:33` - `QlOsDos(QlOs)` - dispatches BIOS/DOS interrupts from `interrupts/`.
37
37
38
38
## Interactions
39
39
40
40
- All three subclass [os-base.md](os-base.md)`QlOs` and allocate from `QlMemoryHeap`.
41
-
-[loader.md](loader.md): `QlLoaderPE` builds PEB/TEB and records IAT hook addresses; `QlLoaderPE_UEFI` installs protocols into `os/uefi/context.py`; `QlLoaderDOS` sets real-mode state.
41
+
-[loader.md](loader.md): `QlLoaderPE` builds PEB/TEB and records IAT hook addresses; `QlLoaderPE_UEFI` installs protocols into `qiling/os/uefi/context.py`; `QlLoaderDOS` sets real-mode state.
0 commit comments