summaryrefslogtreecommitdiff
path: root/gdb/rdi-share/etherdrv.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/rdi-share/etherdrv.c')
-rw-r--r--gdb/rdi-share/etherdrv.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/rdi-share/etherdrv.c b/gdb/rdi-share/etherdrv.c
index 58462d44768..d9c5c0fa2cd 100644
--- a/gdb/rdi-share/etherdrv.c
+++ b/gdb/rdi-share/etherdrv.c
@@ -71,7 +71,7 @@
#include "hsys.h"
#include "devices.h"
-#include "endian.h"
+#include "angel_endian.h"
#include "buffers.h"
#include "hostchan.h"
#include "params.h"
@@ -282,6 +282,10 @@ static void fetch_ports(void)
* port on the remote target
*/
ia->sin_port = htons(CTRL_PORT);
+#ifdef DEBUG
+ printf("CTLR_PORT=0x%04x sin_port=0x%04x\n");
+#endif
+
if (sendto(sock, ctrlpacket, sizeof(ctrlpacket), 0,
(struct sockaddr *)ia, sizeof(*ia)) < 0)
{