about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2002-07-12 23:25:56 +0000
committerAndreas Jaeger <aj@suse.de>2002-07-12 23:25:56 +0000
commit1a0ff018bdc8dcac1f7a05bc65f4d278566c78ba (patch)
tree65768b4810c2f1746bafb56d2412748c1776e201 /sysdeps
parent12670809086f1219bdbfdc67d60453ac35ffe071 (diff)
downloadglibc-1a0ff018bdc8dcac1f7a05bc65f4d278566c78ba.tar.gz
glibc-1a0ff018bdc8dcac1f7a05bc65f4d278566c78ba.tar.xz
glibc-1a0ff018bdc8dcac1f7a05bc65f4d278566c78ba.zip
* sysdeps/unix/sysv/linux/mips/register-dump.h (register_dump):
Use correct indices. 
Patch by Eliot Dresselhaus <eliot@ayrnetworks.com>.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/mips/register-dump.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/mips/register-dump.h b/sysdeps/unix/sysv/linux/mips/register-dump.h
index f5fb34472f..f5bd3a2735 100644
--- a/sysdeps/unix/sysv/linux/mips/register-dump.h
+++ b/sysdeps/unix/sysv/linux/mips/register-dump.h
@@ -1,5 +1,5 @@
 /* Dump registers.
-   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Andreas Jaeger <aj@suse.de>, 2000.
 
@@ -43,8 +43,8 @@ hexvalue (unsigned long int value, char *buf, size_t len)
 static void
 register_dump (int fd, struct sigcontext *ctx)
 {
-  char regs[32][8];
-  struct iovec iov[38];
+  char regs[38][8];
+  struct iovec iov[38 * 2 + 10];
   size_t nr = 0;
   int i;
 
@@ -58,7 +58,7 @@ register_dump (int fd, struct sigcontext *ctx)
   ++nr
 
   /* Generate strings of register contents.  */
-  for (i = 0; i < 31; i++)
+  for (i = 0; i < 32; i++)
     hexvalue (ctx->sc_regs[i], regs[i], 8);
   hexvalue (ctx->sc_pc, regs[32], 8);
   hexvalue (ctx->sc_cause, regs[33], 8);