aboutsummaryrefslogtreecommitdiff
path: root/src/rtos/rtos.c
diff options
context:
space:
mode:
authorChristian Gudrian <christian.gudrian@gmx.de>2013-03-24 12:46:58 +0100
committerPeter Stuge <peter@stuge.se>2013-03-24 14:24:50 +0000
commit0fd0b8ee7c31d455324ed500a270a67f2512ce66 (patch)
treef2a93787e67ecddf1f22b86ce8a08855bd1ed6f4 /src/rtos/rtos.c
parent9c450c704c09eeb304a891138131808531ac0cf2 (diff)
downloadriscv-openocd-0fd0b8ee7c31d455324ed500a270a67f2512ce66.zip
riscv-openocd-0fd0b8ee7c31d455324ed500a270a67f2512ce66.tar.gz
riscv-openocd-0fd0b8ee7c31d455324ed500a270a67f2512ce66.tar.bz2
rtos: fixed handling of qThreadExtraInfo packets
The commit "gdbserver: use common hexify/unhexify routines" [3d62c3d] mis-replaced a call to "str_to_hex" with a call to "unhexify". "hexify" should have been used instead. Change-Id: I5f5904b1b422f819a6308e2c0740ea43d22c7d0b Signed-off-by: Christian Gudrian <christian.gudrian@gmx.de> Reviewed-on: http://openocd.zylin.com/1308 Tested-by: jenkins Reviewed-by: Peter Stuge <peter@stuge.se>
Diffstat (limited to 'src/rtos/rtos.c')
-rw-r--r--src/rtos/rtos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c
index 957aeae..f90c4f6 100644
--- a/src/rtos/rtos.c
+++ b/src/rtos/rtos.c
@@ -306,7 +306,7 @@ int rtos_thread_packet(struct connection *connection, char *packet, int packet_s
(size_t) (tmp_str_ptr - tmp_str));
char *hex_str = (char *) malloc(strlen(tmp_str) * 2 + 1);
- int pkt_len = unhexify(hex_str, tmp_str, strlen(tmp_str) * 2 + 1);
+ int pkt_len = hexify(hex_str, tmp_str, 0, strlen(tmp_str) * 2 + 1);
gdb_put_packet(connection, hex_str, pkt_len);
free(hex_str);