diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-05-29 14:13:37 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-05-29 15:29:54 -0400 |
commit | 8ea881d9e3cbaf4667f24db3fa8741392ee54437 (patch) | |
tree | b0e23eb60fc5c3c4bc11d91dc1a931e02e8d6f17 /sim/mips | |
parent | 67514280fcbbbf872879b1a4a0aeb3453a24fb88 (diff) | |
download | gdb-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')
-rw-r--r-- | sim/mips/ChangeLog | 6 | ||||
-rw-r--r-- | sim/mips/interp.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog index 0d687a9..f885391 100644 --- a/sim/mips/ChangeLog +++ b/sim/mips/ChangeLog @@ -1,12 +1,14 @@ +2021-05-29 Mike Frysinger <vapier@gentoo.org> + + * interp.c [!HAVE_DV_SOCKSER] (sockser_addr): Define to NULL. + 2021-05-22 Faraz Shahbazker <fshahbazker@wavecomp.com> -sim/mips/ChangeLog: * interp.c (sim_open): Add shadow mappings from 32-bit address space to 64-bit sign-extended address space. 2021-05-22 Faraz Shahbazker <fshahbazker@wavecomp.com> -sim/mips/ChangeLog: * interp.c (sim_create_inferior): Only truncate sign extension bits for 32-bit target models. 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"); |