about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-02-08 17:27:54 +0000
committerAndreas Jaeger <aj@suse.de>2000-02-08 17:27:54 +0000
commitc03eebe14d36ff8c07c424e5ab74b9fa2d781f9f (patch)
treea837abc58b843d49ab3e9ca2055f8f5ca453f230 /sysdeps
parent8308c68b8839d5795206db96e5aab01d8f5e1b97 (diff)
downloadglibc-c03eebe14d36ff8c07c424e5ab74b9fa2d781f9f.tar.gz
glibc-c03eebe14d36ff8c07c424e5ab74b9fa2d781f9f.tar.xz
glibc-c03eebe14d36ff8c07c424e5ab74b9fa2d781f9f.zip
Update.
	* sysdeps/unix/sysv/linux/mips/sigcontextinfo.h (GET_PC): Fix typo.

	Make it compile.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/mips/register-dump.h8
-rw-r--r--sysdeps/unix/sysv/linux/mips/sigcontextinfo.h2
2 files changed, 4 insertions, 6 deletions
diff --git a/sysdeps/unix/sysv/linux/mips/register-dump.h b/sysdeps/unix/sysv/linux/mips/register-dump.h
index 61a4688242..e204223054 100644
--- a/sysdeps/unix/sysv/linux/mips/register-dump.h
+++ b/sysdeps/unix/sysv/linux/mips/register-dump.h
@@ -44,8 +44,7 @@ static void
 register_dump (int fd, struct sigcontext *ctx)
 {
   char regs[32][8];
-  char fpregs[32][8];
-  struct iovec iov[97]; XXX
+  struct iovec iov[38];
   size_t nr = 0;
   int i;
 
@@ -60,11 +59,11 @@ register_dump (int fd, struct sigcontext *ctx)
 
   /* Generate strings of register contents.  */
   for (i = 0; i < 31; i++)
-    hexvalue (ctx->sc_regs, regs[i], 8);
+    hexvalue (ctx->sc_regs[i], regs[i], 8);
   hexvalue (ctx->sc_pc, regs[32], 8);
   hexvalue (ctx->sc_cause, regs[33], 8);
   hexvalue (ctx->sc_status, regs[34], 8);
-  hexvalue (ctx->badvaddr, regs[35], 8);
+  hexvalue (ctx->sc_badvaddr, regs[35], 8);
   hexvalue (ctx->sc_mdhi, regs[36], 8);
   hexvalue (ctx->sc_mdlo, regs[37], 8);
 
@@ -94,7 +93,6 @@ register_dump (int fd, struct sigcontext *ctx)
       ADD_STRING (" ");
     }
   ADD_STRING ("\n           pc    cause  status   badvaddr       lo       hi\n      ");
-  ADD_MEM (regs[], 8);
   for (i = 32; i < 38; i++)
     {
       ADD_MEM (regs[i], 8);
diff --git a/sysdeps/unix/sysv/linux/mips/sigcontextinfo.h b/sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
index 2d9f280b12..9b3e7ea3a6 100644
--- a/sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
+++ b/sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
@@ -20,6 +20,6 @@
 
 #define SIGCONTEXT struct sigcontext
 #define SIGCONTEXT_EXTRA_ARGS
-#define GET_PC(ctx)	((void *) ctx.pc)
+#define GET_PC(ctx)	((void *) ctx.sc_pc)
 #define GET_FRAME(ctx)	((void *) ctx.sc_regs[30])
 #define GET_STACK(ctx)	((void *) ctx.sc_regs[29])