diff options
Diffstat (limited to 'gdb/common')
-rw-r--r-- | gdb/common/rsp-low.c | 16 | ||||
-rw-r--r-- | gdb/common/rsp-low.h | 2 |
2 files changed, 0 insertions, 18 deletions
diff --git a/gdb/common/rsp-low.c b/gdb/common/rsp-low.c index a7b0014..c7a00c1 100644 --- a/gdb/common/rsp-low.c +++ b/gdb/common/rsp-low.c @@ -172,22 +172,6 @@ bin2hex (const gdb_byte *bin, char *hex, int count) return i; } -void -convert_int_to_ascii (const unsigned char *from, char *to, int n) -{ - int nib; - int ch; - while (n--) - { - ch = *from++; - nib = ((ch & 0xf0) >> 4) & 0x0f; - *to++ = tohex (nib); - nib = ch & 0x0f; - *to++ = tohex (nib); - } - *to++ = 0; -} - int remote_escape_output (const gdb_byte *buffer, int len, gdb_byte *out_buf, int *out_len, diff --git a/gdb/common/rsp-low.h b/gdb/common/rsp-low.h index 2ef5e6d..e1944cf 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 void convert_int_to_ascii (const unsigned char *from, char *to, int n); - /* Convert BUFFER, binary data at least LEN bytes long, into escaped binary data in OUT_BUF. Set *OUT_LEN to the length of the data encoded in OUT_BUF, and return the number of bytes in OUT_BUF |