aboutsummaryrefslogtreecommitdiff
path: root/gdb/monitor.c
diff options
context:
space:
mode:
authorKung Hsu <kung@cygnus>1995-02-28 23:08:06 +0000
committerKung Hsu <kung@cygnus>1995-02-28 23:08:06 +0000
commit326ae3e292a6018b70f0229192de8a53248af663 (patch)
tree5beceb25ecf12c47e04efd74c6d2618f3fa53036 /gdb/monitor.c
parent121bdf8f01b1f1d9fc719e3dce3c1c2e9b7c2731 (diff)
downloadgdb-326ae3e292a6018b70f0229192de8a53248af663.zip
gdb-326ae3e292a6018b70f0229192de8a53248af663.tar.gz
gdb-326ae3e292a6018b70f0229192de8a53248af663.tar.bz2
* defs.h: define SWAP_TARGET_AND_HOST macro.
* findvar.c, monitor.c, hppa-tdep.c: remove definition of SWAP_TARGET_AND_HOST.
Diffstat (limited to 'gdb/monitor.c')
-rw-r--r--gdb/monitor.c29
1 files changed, 8 insertions, 21 deletions
diff --git a/gdb/monitor.c b/gdb/monitor.c
index a44abf2..af2a4a4 100644
--- a/gdb/monitor.c
+++ b/gdb/monitor.c
@@ -61,27 +61,14 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
static const char hexchars[] = "0123456789abcdef";
static char *hex2mem ();
-#define SWAP_TARGET_AND_HOST(buffer,len) \
- do \
- { \
- if (TARGET_BYTE_ORDER != HOST_BYTE_ORDER) \
- { \
- char tmp; \
- char *p = (char *)(buffer); \
- char *q = ((char *)(buffer)) + len - 1; \
- for (; p < q; p++, q--) \
- { \
- tmp = *q; \
- *q = *p; \
- *p = tmp; \
- } \
- } \
- } \
- while (0)
-
-static void make_xmodem_packet ();
-static void print_xmodem_packet ();
-static void make_gdb_packet ();
+static void make_xmodem_packet();
+static void print_xmodem_packet();
+static void make_gdb_packet();
+static unsigned long ascii2hexword();
+static char *hexword2ascii();
+static int tohex();
+static int to_hex();
+static int from_hex();
static void monitor_load_ascii_srec PARAMS ((char *file, int fromtty));