aboutsummaryrefslogtreecommitdiff
path: root/sim/mips/interp.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-05-29 14:13:37 -0400
committerMike Frysinger <vapier@gentoo.org>2021-05-29 15:29:54 -0400
commit8ea881d9e3cbaf4667f24db3fa8741392ee54437 (patch)
treeb0e23eb60fc5c3c4bc11d91dc1a931e02e8d6f17 /sim/mips/interp.c
parent67514280fcbbbf872879b1a4a0aeb3453a24fb88 (diff)
downloadgdb-8ea881d9e3cbaf4667f24db3fa8741392ee54437.zip
gdb-8ea881d9e3cbaf4667f24db3fa8741392ee54437.tar.gz
gdb-8ea881d9e3cbaf4667f24db3fa8741392ee54437.tar.bz2
sim: mips: fix build w/out dv-sockser
Make sure we don't fail to build when dv-socker is unavailable.
Diffstat (limited to 'sim/mips/interp.c')
-rw-r--r--sim/mips/interp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sim/mips/interp.c b/sim/mips/interp.c
index 00c1b63..93bbc5c 100644
--- a/sim/mips/interp.c
+++ b/sim/mips/interp.c
@@ -543,8 +543,12 @@ sim_open (SIM_OPEN_KIND kind, host_callback *cb,
{
/* FIXME: poking at dv-sockser internals, use tcp backend if
--sockser_addr option was given.*/
+#ifdef HAVE_DV_SOCKSER
extern char* sockser_addr;
- if(sockser_addr == NULL)
+#else
+# define sockser_addr NULL
+#endif
+ if (sockser_addr == NULL)
sim_hw_parse (sd, "/tx3904sio@0xfffff300/backend stdio");
else
sim_hw_parse (sd, "/tx3904sio@0xfffff300/backend tcp");