diff options
author | Jie Zhang <jie.zhang@analog.com> | 2011-08-24 11:23:04 -0400 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-08-24 17:41:35 +0200 |
commit | 8d7ddde5f104dde8949dbefcad85f08b7313e126 (patch) | |
tree | e4378bc00ddde2eac4b525552ec98c04ce43bf61 /src/target | |
parent | 32862ed9f80e95ffca837247c905cde6857229e8 (diff) | |
download | riscv-openocd-8d7ddde5f104dde8949dbefcad85f08b7313e126.zip riscv-openocd-8d7ddde5f104dde8949dbefcad85f08b7313e126.tar.gz riscv-openocd-8d7ddde5f104dde8949dbefcad85f08b7313e126.tar.bz2 |
remove target argument from gdb packet handling functions
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/smp.c | 6 | ||||
-rw-r--r-- | src/target/smp.h | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/target/smp.c b/src/target/smp.c index ec157d3..eed3d8c 100644 --- a/src/target/smp.c +++ b/src/target/smp.c @@ -59,8 +59,9 @@ static const char DIGITS[16] = "0123456789abcdef"; /* packet j :smp status request */ int gdb_read_smp_packet(struct connection *connection, - struct target *target, char *packet, int packet_size) + char *packet, int packet_size) { + struct target *target = get_target_from_connection(connection); uint32_t len = sizeof(int32_t); uint8_t *buffer; char *hex_buffer; @@ -91,8 +92,9 @@ int gdb_read_smp_packet(struct connection *connection, /* J : smp set request */ int gdb_write_smp_packet(struct connection *connection, - struct target *target, char *packet, int packet_size) + char *packet, int packet_size) { + struct target *target = get_target_from_connection(connection); char *separator; int coreid = 0; int retval = ERROR_OK; diff --git a/src/target/smp.h b/src/target/smp.h index f85c9a4..b8f0ea5 100644 --- a/src/target/smp.h +++ b/src/target/smp.h @@ -19,7 +19,7 @@ ***************************************************************************/ #include "server/server.h" int gdb_read_smp_packet(struct connection *connection, - struct target *target, char *packet, int packet_size); + char *packet, int packet_size); int gdb_write_smp_packet(struct connection *connection, - struct target *target, char *packet, int packet_size); + char *packet, int packet_size); |