commit d979098fd07f9d2a78f6c3c120683b1e682d21bc
parent e7496ed06e21bcda3606b948585fde2d1ce73df0
Author: Brian Swetland <swetland@frotz.net>
Date: Tue, 23 Jun 2015 15:10:58 -0700
gdb-bridge: pass monitor <command> from gdb to debugger
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/tools/gdb-bridge.c b/tools/gdb-bridge.c
@@ -284,7 +284,11 @@ static void handle_query(struct gdbcnxn *gc, char *cmd, char *args) {
p+=2;
}
*cmd = 0;
+ zprintf("GBD: %s\n", p);
+ debugger_unlock();
debugger_command(args);
+ debugger_lock();
+ gdb_puts(gc, "OK");
} else if(!strcmp(cmd, "Supported")) {
gdb_puts(gc,
"qXfer:features:read+"