Skip to content
Snippets Groups Projects
Commit 0fd0b8ee authored by Christian Gudrian's avatar Christian Gudrian Committed by Peter Stuge
Browse files

rtos: fixed handling of qThreadExtraInfo packets


The commit "gdbserver: use common hexify/unhexify routines" [3d62c3df]
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: default avatarChristian Gudrian <christian.gudrian@gmx.de>
Reviewed-on: http://openocd.zylin.com/1308


Tested-by: jenkins
Reviewed-by: default avatarPeter Stuge <peter@stuge.se>
parent 9c450c70
No related branches found
No related tags found
No related merge requests found
...@@ -306,7 +306,7 @@ int rtos_thread_packet(struct connection *connection, char *packet, int packet_s ...@@ -306,7 +306,7 @@ int rtos_thread_packet(struct connection *connection, char *packet, int packet_s
(size_t) (tmp_str_ptr - tmp_str)); (size_t) (tmp_str_ptr - tmp_str));
char *hex_str = (char *) malloc(strlen(tmp_str) * 2 + 1); 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); gdb_put_packet(connection, hex_str, pkt_len);
free(hex_str); free(hex_str);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment