summaryrefslogtreecommitdiff
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
commitafcd59d1e09d88a7adba6a9056506ae9e65db70f (patch)
tree4b9b97c19c99e566b2dfc8ef7c115c4d053ef689 /gdb/gdbserver
parent83bc7622ad6b4884524024296d466be6ad70141e (diff)
downloadgdb-afcd59d1e09d88a7adba6a9056506ae9e65db70f.tar.gz
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 cd078ccddc9..2b632d6c1fd 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