diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-04-11 14:06:42 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-04-11 14:06:42 +0000 |
commit | c4a2fdbc39dd31170e61e7fe0be332826825acbd (patch) | |
tree | e2c5b5221f3f882bee7386e24e0fed2fed9a5822 /src/server | |
parent | 0d7d64b5e9a463f63deb19f00efa14e6e5b1c34e (diff) | |
download | openocd_libswd-c4a2fdbc39dd31170e61e7fe0be332826825acbd.tar.gz openocd_libswd-c4a2fdbc39dd31170e61e7fe0be332826825acbd.tar.bz2 openocd_libswd-c4a2fdbc39dd31170e61e7fe0be332826825acbd.tar.xz openocd_libswd-c4a2fdbc39dd31170e61e7fe0be332826825acbd.zip |
Reset wip. Just adding hooks. This is just to reduce the size of the actual change, no change in behaviour.
git-svn-id: svn://svn.berlios.de/openocd/trunk@565 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/gdb_server.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index 9a5b81a4..3e4ba824 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -690,7 +690,7 @@ int gdb_new_connection(connection_t *connection) * instantaneous and thus avoiding annoying timeout problems during * connect. */ - gdb_service->target->type->halt(gdb_service->target); + target_halt(gdb_service->target); /* remove the initial ACK from the incoming buffer */ if ((retval = gdb_get_char(connection, &initial_ack)) != ERROR_OK) @@ -1231,7 +1231,7 @@ void gdb_step_continue_packet(connection_t *connection, target_t *target, char * if (packet[0] == 'c') { LOG_DEBUG("continue"); - target->type->resume(target, current, address, 0, 0); /* resume at current address, don't handle breakpoints, not debugging */ + target_resume(target, current, address, 0, 0); /* resume at current address, don't handle breakpoints, not debugging */ } else if (packet[0] == 's') { @@ -1755,7 +1755,7 @@ int gdb_detach(connection_t *connection, target_t *target) switch( detach_mode ) { case GDB_DETACH_RESUME: - target->type->resume(target, 1, 0, 1, 0); + target_resume(target, 1, 0, 1, 0); break; case GDB_DETACH_RESET: @@ -1763,7 +1763,7 @@ int gdb_detach(connection_t *connection, target_t *target) break; case GDB_DETACH_HALT: - target->type->halt(target); + target_halt(target); break; case GDB_DETACH_NOTHING: @@ -1904,7 +1904,7 @@ int gdb_input_inner(connection_t *connection) { if (target->state == TARGET_RUNNING) { - target->type->halt(target); + target_halt(target); gdb_con->ctrl_c = 0; } } |