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;
/* 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);
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);
#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])