aboutsummaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2014-01-18 19:30:20 -0700
committerTom Tromey <tromey@redhat.com>2014-02-12 09:59:17 -0700
commit971dc0b89de28feaa5efade1f1f8675be223fabd (patch)
treed031abf767013288c86fb13d443afc41b11d2fb2 /gdb/common
parent0a822afbcdf6aee6c25a840e4785ad3af56a94fd (diff)
downloadgdb-971dc0b89de28feaa5efade1f1f8675be223fabd.zip
gdb-971dc0b89de28feaa5efade1f1f8675be223fabd.tar.gz
gdb-971dc0b89de28feaa5efade1f1f8675be223fabd.tar.bz2
replace hexify with bin2hex
This removes hexify in favor of bin2hex. The choice of which to keep was arbitrary. 2014-02-12 Tom Tromey <tromey@redhat.com> * common/rsp-low.h (hexify): Don't declare. * common/rsp-low.c (hexify): Remove. 2014-02-12 Tom Tromey <tromey@redhat.com> * remote-utils.c (look_up_one_symbol, monitor_output): Use bin2hex, not hexify. * tracepoint.c (cmd_qtstatus): Likewise.
Diffstat (limited to 'gdb/common')
-rw-r--r--gdb/common/rsp-low.c14
-rw-r--r--gdb/common/rsp-low.h2
2 files changed, 0 insertions, 16 deletions
diff --git a/gdb/common/rsp-low.c b/gdb/common/rsp-low.c
index fd6f563..a7b0014 100644
--- a/gdb/common/rsp-low.c
+++ b/gdb/common/rsp-low.c
@@ -172,20 +172,6 @@ bin2hex (const gdb_byte *bin, char *hex, int count)
return i;
}
-int
-hexify (char *hex, const char *bin, int count)
-{
- int i;
-
- for (i = 0; i < count; i++)
- {
- *hex++ = tohex ((*bin >> 4) & 0xf);
- *hex++ = tohex (*bin++ & 0xf);
- }
- *hex = 0;
- return i;
-}
-
void
convert_int_to_ascii (const unsigned char *from, char *to, int n)
{
diff --git a/gdb/common/rsp-low.h b/gdb/common/rsp-low.h
index 161c4a2..2ef5e6d 100644
--- a/gdb/common/rsp-low.h
+++ b/gdb/common/rsp-low.h
@@ -42,8 +42,6 @@ extern void convert_ascii_to_int (const char *from, unsigned char *to, int n);
extern int bin2hex (const gdb_byte *bin, char *hex, int count);
-extern int hexify (char *hex, const char *bin, int count);
-
extern void convert_int_to_ascii (const unsigned char *from, char *to, int n);
/* Convert BUFFER, binary data at least LEN bytes long, into escaped