]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(ADVANCE_STACK_FRAME): Avoid using reg_window, so that asm/ptrace.h is not
authorUlrich Drepper <drepper@redhat.com>
Mon, 24 Jan 2000 12:13:39 +0000 (12:13 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 24 Jan 2000 12:13:39 +0000 (12:13 +0000)
necessary.

sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h

index 4e8fcd7871d72deb6b33119a5dc53c7f8608831b..d808b8c49e83f0fb6fb66d33a08f1fec2b38e3e5 100644 (file)
@@ -1,6 +1,6 @@
-/* Copyright (C) 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Jakub Jelinek <jj@ultra.linux.cz>, 1999.
+   Contributed by Jakub Jelinek <jakub@redhat.com>, 1999.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
@@ -21,6 +21,7 @@
 #define SIGCONTEXT_EXTRA_ARGS
 #define GET_PC(__ctx)  ((void *) ((__ctx)->si_regs.pc))
 #define ADVANCE_STACK_FRAME(__next) \
-       ((void *)&(((struct reg_window *) (__next))->ins[6]))
+       ((void *) (((unsigned *)(__next))+14))
+
 #define GET_STACK(__ctx)       ((void *) (__ctx)->si_regs.u_regs[14])
 #define GET_FRAME(__ctx)       ADVANCE_STACK_FRAME (GET_STACK(__ctx))