]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(ADVANCE_STACK_FRAME): New macro.
authorUlrich Drepper <drepper@redhat.com>
Thu, 6 Jan 2000 00:06:34 +0000 (00:06 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 6 Jan 2000 00:06:34 +0000 (00:06 +0000)
(GET_FRAME): Apply above to returned value.

sysdeps/unix/sysv/linux/arm/sigcontextinfo.h

index 7f6ecbdee1bf7dc98b2298896a6dd084fbe2a6fb..1aaca1e155c22b669013d52366b631608e77e567 100644 (file)
 
 #define GET_PC(ctx)    ((void *)((ctx.v20.magic == SIGCONTEXT_2_0_MAGIC) ? \
                         ctx.v20.reg.ARM_pc : ctx.v21.arm_pc))
-#define GET_FRAME(ctx) ((void *)((ctx.v20.magic == SIGCONTEXT_2_0_MAGIC) ? \
+#define GET_FRAME(ctx) \
+       ADVANCE_STACK_FRAME((void *)((ctx.v20.magic == SIGCONTEXT_2_0_MAGIC) ? \
                         ctx.v20.reg.ARM_fp : ctx.v21.arm_fp))
 #define GET_STACK(ctx) ((void *)((ctx.v20.magic == SIGCONTEXT_2_0_MAGIC) ? \
                         ctx.v20.reg.ARM_sp : ctx.v21.arm_sp))
+#define ADVANCE_STACK_FRAME(frm)       \
+                       ((struct layout *)frm - 1)