aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/ax.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2014-01-18 19:42:15 -0700
committerTom Tromey <tromey@redhat.com>2014-02-12 09:59:20 -0700
commita7191e8bd7f4188d608764389d5a73fcf4b0e8da (patch)
tree63564515ee08df78bb81f9e72d2853099396f941 /gdb/gdbserver/ax.c
parentff0e980e6f720fe49608a5a0a37be3a28258c9d7 (diff)
downloadgdb-a7191e8bd7f4188d608764389d5a73fcf4b0e8da.zip
gdb-a7191e8bd7f4188d608764389d5a73fcf4b0e8da.tar.gz
gdb-a7191e8bd7f4188d608764389d5a73fcf4b0e8da.tar.bz2
replace convert_ascii_to_int with hex2bin
convert_ascii_to_int is identical to hex2bin. This removes the former. 2014-02-12 Tom Tromey <tromey@redhat.com> * common/rsp-low.c (convert_ascii_to_int): Remove. * common/rsp-low.h (convert_ascii_to_int): Don't declare. 2014-02-12 Tom Tromey <tromey@redhat.com> * ax.c (gdb_parse_agent_expr): Use hex2bin, not convert_ascii_to_int. * regcache.c (registers_to_string): Likewise. * remote-utils.c (decode_M_packet): Likewise. * server.c (process_serial_event): Likewise.
Diffstat (limited to 'gdb/gdbserver/ax.c')
-rw-r--r--gdb/gdbserver/ax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/ax.c b/gdb/gdbserver/ax.c
index 1eefaf3..ef659dc 100644
--- a/gdb/gdbserver/ax.c
+++ b/gdb/gdbserver/ax.c
@@ -105,7 +105,7 @@ gdb_parse_agent_expr (char **actparm)
aexpr = xmalloc (sizeof (struct agent_expr));
aexpr->length = xlen;
aexpr->bytes = xmalloc (xlen);
- convert_ascii_to_int (act, aexpr->bytes, xlen);
+ hex2bin (act, aexpr->bytes, xlen);
*actparm = act + (xlen * 2);
return aexpr;
}