From b53e4e02517624edaab08f5583d24f6fbaa385fd Mon Sep 17 00:00:00 2001 From: Alasdair Armstrong Date: Thu, 31 Oct 2019 18:26:31 +0000 Subject: Allow sail interactive toplevel to connect to a running QEMU instance using GDB/MI After starting QEMU with -s -S we can run :gdb_qemu in isail to connect to it using a gdb-multiarch child process, which we communicate with via the gdb/mi interface. :gdb_send command sends a command to gdb and waits for it to respond. The idea is we will have a :gdb_sync command that will sync the register state of the running QEMU session with the Sail interpreter after a breakpoint, then we can run Sail code to test the state of the machine by hooking memory reads into approprate gdb commands. --- src/util.ml | 1 + 1 file changed, 1 insertion(+) (limited to 'src/util.ml') diff --git a/src/util.ml b/src/util.ml index 2745631c..02a5468a 100644 --- a/src/util.ml +++ b/src/util.ml @@ -418,6 +418,7 @@ let termcode n = else "" let bold str = termcode 1 ^ str +let dim str = termcode 2 ^ str let darkgray str = termcode 90 ^ str let red str = termcode 91 ^ str -- cgit v1.2.3