aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-05-02 09:36:57 +0000
committerAndrew Cagney <cagney@redhat.com>2000-05-02 09:36:57 +0000
commit03863182248f30818d11417609a7e576fefe705b (patch)
tree527f6a6a9029f14d94119ada4dea5e53e25dc323 /gdb/gdbserver
parentd7446e7568e7d6f5c49ed29f9184c94f09956a82 (diff)
downloadgdb-03863182248f30818d11417609a7e576fefe705b.zip
gdb-03863182248f30818d11417609a7e576fefe705b.tar.gz
gdb-03863182248f30818d11417609a7e576fefe705b.tar.bz2
Multi-arch NPC_REGNUM NNPC_REGNUM.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/remote-utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c
index cd078cc..2b632d6 100644
--- a/gdb/gdbserver/remote-utils.c
+++ b/gdb/gdbserver/remote-utils.c
@@ -33,6 +33,7 @@
#include <fcntl.h>
int remote_debug = 0;
+struct ui_file *gdb_stdlog;
static int remote_desc;
@@ -487,9 +488,8 @@ prepare_resume_reply (buf, status, signo)
buf = outreg (PC_REGNUM, buf);
buf = outreg (FP_REGNUM, buf);
buf = outreg (SP_REGNUM, buf);
-#ifdef NPC_REGNUM
- buf = outreg (NPC_REGNUM, buf);
-#endif
+ if (NPC_REGNUM >= 0)
+ buf = outreg (NPC_REGNUM, buf);
#ifdef O7_REGNUM
buf = outreg (O7_REGNUM, buf);
#endif