diff options
author | Tom Tromey <tromey@redhat.com> | 2014-01-18 19:41:08 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-12 09:59:19 -0700 |
commit | ff0e980e6f720fe49608a5a0a37be3a28258c9d7 (patch) | |
tree | c50140e487463bea1072b5dfceba6973d2194f92 /gdb/common/rsp-low.c | |
parent | e9371aff2d8c31adf23483aebe85018e11f534f3 (diff) | |
download | gdb-ff0e980e6f720fe49608a5a0a37be3a28258c9d7.zip gdb-ff0e980e6f720fe49608a5a0a37be3a28258c9d7.tar.gz gdb-ff0e980e6f720fe49608a5a0a37be3a28258c9d7.tar.bz2 |
replace unhexify with hex2bin
unhexify and hex2bin are identical, so this removes unhexify. The
particular choice of which to keep was made on the basis of
parallelism with the earlier patch that removed hexify.
2014-02-12 Tom Tromey <tromey@redhat.com>
* common/rsp-low.h (unhexify): Don't declare.
* common/rsp-low.c (unhexify): Remove.
2014-02-12 Tom Tromey <tromey@redhat.com>
* server.c (handle_query, handle_v_run): Use hex2bin, not
unhexify.
* tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
Diffstat (limited to 'gdb/common/rsp-low.c')
-rw-r--r-- | gdb/common/rsp-low.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/gdb/common/rsp-low.c b/gdb/common/rsp-low.c index c7a00c1..decd23c 100644 --- a/gdb/common/rsp-low.c +++ b/gdb/common/rsp-low.c @@ -127,25 +127,6 @@ hex2bin (const char *hex, gdb_byte *bin, int count) return i; } -int -unhexify (char *bin, const char *hex, int count) -{ - int i; - - for (i = 0; i < count; i++) - { - if (hex[0] == 0 || hex[1] == 0) - { - /* Hex string is short, or of uneven length. - Return the count that has been converted so far. */ - return i; - } - *bin++ = fromhex (hex[0]) * 16 + fromhex (hex[1]); - hex += 2; - } - return i; -} - void convert_ascii_to_int (const char *from, unsigned char *to, int n) { |