diff options
author | Pedro Alves <palves@redhat.com> | 2013-03-07 17:29:32 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-03-07 17:29:32 +0000 |
commit | f0cc8ad436c3d86783ceaa2febd2919ef5f996fa (patch) | |
tree | f7185e76d7714a528cb239589e8dffaa85e7ceca /gdb/remote.h | |
parent | e64f749990145b448f6bac4eac24748b476430e4 (diff) | |
download | gdb-f0cc8ad436c3d86783ceaa2febd2919ef5f996fa.zip gdb-f0cc8ad436c3d86783ceaa2febd2919ef5f996fa.tar.gz gdb-f0cc8ad436c3d86783ceaa2febd2919ef5f996fa.tar.bz2 |
hex2bin, bin2hex: move declarations to header.
Move the declarations to a header, rather than declaring them in
(multiple) .c files.
gdb/
2013-03-07 Pedro Alves <palves@redhat.com>
* remote.c (hex2bin, bin2hex): Move extern declarations to ...
* remote.h (hex2bin, bin2hex): ... here.
* tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
Diffstat (limited to 'gdb/remote.h')
-rw-r--r-- | gdb/remote.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/remote.h b/gdb/remote.h index d49b427..b95370c 100644 --- a/gdb/remote.h +++ b/gdb/remote.h @@ -39,6 +39,10 @@ extern void getpkt (char **buf, long *sizeof_buf, int forever); extern int putpkt (char *buf); +extern int hex2bin (const char *hex, gdb_byte *bin, int count); + +extern int bin2hex (const gdb_byte *bin, char *hex, int count); + extern char *unpack_varlen_hex (char *buff, ULONGEST *result); extern void async_remote_interrupt_twice (void *arg); |