diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-04-22 14:12:27 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-04-22 14:12:27 +0000 |
commit | e661fdf2677bc45fa845da1c4c708d1ce56110e5 (patch) | |
tree | 801684576b6f33fe6af126c33ce39fc34c94e4ab /sysdeps/unix/sysv/linux/arm/register-dump.h | |
parent | d20f21a2154de2960b13a67a6acfb78cc7cde13e (diff) | |
download | glibc-e661fdf2677bc45fa845da1c4c708d1ce56110e5.tar.gz glibc-e661fdf2677bc45fa845da1c4c708d1ce56110e5.tar.xz glibc-e661fdf2677bc45fa845da1c4c708d1ce56110e5.zip |
Update.
2001-04-22 Philip Blundell <philb@gnu.org> * sysdeps/unix/sysv/linux/arm/sys/user.h (struct user_fpregs): Renamed from struct user_fp. (struct user_regs): New. (struct user): Use struct user_regs rather than struct pt_regs to avoid dependency on asm/ptrace.h. Use struct user_fpregs in place of struct user_fp and struct user_fp_struct. * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Include sys/procfs.h not sys/elf.h. 2001-04-22 Philip Blundell <philb@gnu.org> * sysdeps/unix/sysv/linux/arm/sys/elf.h: Move contents to sys/procfs.h, and tell the user to include that file instead. * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove old cruft surrounded with #if 0. (elf_greg_t, ELF_NGREG, elf_gregset_t, elf_fpregset_t): Moved here from sys/elf.h. (prgregset_t, prfpregset_t): Define in terms of elf_gregset_t and elf_fpregset_t respectively. 2001-04-22 Philip Blundell <philb@gnu.org> * sysdeps/unix/sysv/linux/arm/register-dump.h: Also print the address that faulted.
Diffstat (limited to 'sysdeps/unix/sysv/linux/arm/register-dump.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/arm/register-dump.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/arm/register-dump.h b/sysdeps/unix/sysv/linux/arm/register-dump.h index 4ccd9e2e4c..25036df41d 100644 --- a/sysdeps/unix/sysv/linux/arm/register-dump.h +++ b/sysdeps/unix/sysv/linux/arm/register-dump.h @@ -1,5 +1,5 @@ /* Dump registers. - Copyright (C) 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Philip Blundell <pb@nexus.co.uk>, 1998. @@ -32,6 +32,7 @@ CPSR: XXXXXXXX Trap: XXXXXXXX Error: XXXXXXXX OldMask: XXXXXXXX + Addr: XXXXXXXX */ @@ -46,7 +47,7 @@ hexvalue (unsigned long int value, char *buf, size_t len) static void register_dump (int fd, union k_sigcontext *ctx) { - char regs[20][8]; + char regs[21][8]; struct iovec iov[97]; size_t nr = 0; @@ -105,6 +106,7 @@ register_dump (int fd, union k_sigcontext *ctx) hexvalue (ctx->v21.trap_no, regs[17], 8); hexvalue (ctx->v21.error_code, regs[18], 8); hexvalue (ctx->v21.oldmask, regs[19], 8); + hexvalue (ctx->v21.fault_address, regs[20], 8); } /* Generate the output. */ @@ -148,6 +150,11 @@ register_dump (int fd, union k_sigcontext *ctx) ADD_MEM (regs[18], 8); ADD_STRING (" OldMask: "); ADD_MEM (regs[19], 8); + if (ctx->v20.magic != SIGCONTEXT_2_0_MAGIC) + { + ADD_STRING ("\n Addr: "); + ADD_MEM (regs[20], 8); + } ADD_STRING ("\n"); |