- fix pre_resume script not being called

git-svn-id: svn://svn.berlios.de/openocd/trunk@771 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
ntfreak
2008-07-08 10:49:58 +00:00
parent 31e2500259
commit 46b3e72528
3 changed files with 7 additions and 14 deletions

View File

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