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/smp.c | |
parent | 32862ed9f80e95ffca837247c905cde6857229e8 (diff) |
remove target argument from gdb packet handling functions
Diffstat (limited to 'src/target/smp.c')
-rw-r--r-- | src/target/smp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/target/smp.c b/src/target/smp.c index ec157d36..eed3d8ca 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; |