From 37755ffdb63164e768745369a98f06c5ec9d476d Mon Sep 17 00:00:00 2001 From: oharboe Date: Thu, 24 Sep 2009 06:34:23 +0000 Subject: When attaching GDB to OpenOCD, the target state is no longer affected. Added gdb_sync feature that allows GDB to sync up to target state. Issue "monitor gdb_sync" and the next stepi, will return immediately with updated register values to GDB. git-svn-id: svn://svn.berlios.de/openocd/trunk@2754 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/server/gdb_server.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/server/gdb_server.h') diff --git a/src/server/gdb_server.h b/src/server/gdb_server.h index fb4cdbab..ea981f31 100644 --- a/src/server/gdb_server.h +++ b/src/server/gdb_server.h @@ -43,6 +43,10 @@ typedef struct gdb_connection_s int closed; int busy; int noack_mode; + bool sync; /* set flag to true if you want the next stepi to return immediately. + allowing GDB to pick up a fresh set of register values from the target + without modifying the target state. */ + } gdb_connection_t; typedef struct gdb_service_s -- cgit v1.2.3