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
This commit is contained in:
oharboe
2009-09-24 06:34:23 +00:00
parent 23e22b6ec4
commit 37755ffdb6
2 changed files with 68 additions and 28 deletions

View File

@@ -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