diff options
author | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-07-08 10:49:58 +0000 |
---|---|---|
committer | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-07-08 10:49:58 +0000 |
commit | 46b3e72528cbda940b296e706abbfebb060105b2 (patch) | |
tree | 3edee74c8499bf4b8deedb2a00d3239e75acb3a4 /src/server | |
parent | 31e2500259c735590c918c16fb643a1c4b50a369 (diff) | |
download | openocd_libswd-46b3e72528cbda940b296e706abbfebb060105b2.tar.gz openocd_libswd-46b3e72528cbda940b296e706abbfebb060105b2.tar.bz2 openocd_libswd-46b3e72528cbda940b296e706abbfebb060105b2.tar.xz openocd_libswd-46b3e72528cbda940b296e706abbfebb060105b2.zip |
- fix pre_resume script not being called
git-svn-id: svn://svn.berlios.de/openocd/trunk@771 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/gdb_server.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index 3ea1dde0..850d0de3 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -1219,6 +1219,7 @@ void gdb_step_continue_packet(connection_t *connection, target_t *target, char * if (packet[0] == 'c') { LOG_DEBUG("continue"); + target_invoke_script(connection->cmd_ctx, target, "pre_resume"); target_resume(target, current, address, 0, 0); /* resume at current address, don't handle breakpoints, not debugging */ } else if (packet[0] == 's') @@ -1801,6 +1802,7 @@ int gdb_detach(connection_t *connection, target_t *target) switch( detach_mode ) { case GDB_DETACH_RESUME: + target_invoke_script(connection->cmd_ctx, target, "pre_resume"); target_resume(target, 1, 0, 1, 0); break; |