gdbreplay had its own implementation of fromhex. This patch changes
it to use the one in common/.
gdb/gdbserver/ChangeLog
2019-06-02 Tom Tromey <tom@tromey.com>
* gdbreplay.c (fromhex): Remove.
* Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
+2019-06-02 Tom Tromey <tom@tromey.com>
+
+ * gdbreplay.c (fromhex): Remove.
+ * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
+
2019-05-29 Tom Tromey <tromey@adacore.com>
* configure: Rebuild.
common/cleanups.o \
common/common-exceptions.o \
common/common-utils.o \
+ common/rsp-low.o \
common/errors.o \
common/netstuff.o \
common/print-utils.o \
#endif
#include "common/netstuff.h"
+#include "common/rsp-low.h"
#ifndef HAVE_SOCKLEN_T
typedef int socklen_t;
fflush (stderr);
}
-static int
-fromhex (int ch)
-{
- if (ch >= '0' && ch <= '9')
- {
- return (ch - '0');
- }
- if (ch >= 'A' && ch <= 'F')
- {
- return (ch - 'A' + 10);
- }
- if (ch >= 'a' && ch <= 'f')
- {
- return (ch - 'a' + 10);
- }
- fprintf (stderr, "\nInvalid hex digit '%c'\n", ch);
- fflush (stderr);
- exit (1);
-}
-
static int
logchar (FILE *fp)
{