Skip to content

Instantly share code, notes, and snippets.

@YiChenChai
YiChenChai / vfile.patch
Created July 25, 2019 08:02
Small patch to add GDB remote file download capabilities to QEMU
diff --git a/gdbstub.c b/gdbstub.c
index b470aec..54cc026 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -1907,6 +1907,91 @@ static void handle_v_kill(GdbCmdContext *gdb_ctx, void *user_ctx)
exit(0);
}
+static void handle_v_file_open(GdbCmdContext *gdb_ctx, void *user_ctx)
+{