aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2008-05-20 19:23:00 +0000
committerJakub Jelinek <jakub@redhat.com>2008-05-20 19:23:00 +0000
commited8f38ba440fcad087ce7fa0f06e05a1e4b39bbd (patch)
treeff65917095744eb97b0230872233179cb41ff2cc /sysdeps/unix
parentc1b8190a1d648ebda8211a6a44e2c7d32ecff484 (diff)
downloadglibc-ed8f38ba440fcad087ce7fa0f06e05a1e4b39bbd.zip
glibc-ed8f38ba440fcad087ce7fa0f06e05a1e4b39bbd.tar.gz
glibc-ed8f38ba440fcad087ce7fa0f06e05a1e4b39bbd.tar.bz2
* sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h cvs/fedora-glibc-20080520T1924
(FIRST_FRAME_POINTER): Define. * sysdeps/sparc/sparc64/backtrace.c: New file. 2008-05-20 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h (FIRST_FRAME_POINTER): Define. 2008-05-09 David S. Miller <davem@davemloft.net> * sysdeps/sparc/sparc64/backtrace.c: New file.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h b/sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
index 2c2770d..5965697 100644
--- a/sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
+++ b/sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
@@ -20,6 +20,9 @@
#define SIGCONTEXT struct sigcontext *
#define SIGCONTEXT_EXTRA_ARGS
#define GET_PC(__ctx) ((void *) ((__ctx)->si_regs.pc))
+#define FIRST_FRAME_POINTER \
+ ({ void *ret; \
+ asm volatile ("ta 3; add %%fp, 56, %0" : "=r" (ret)); ret; })
#define ADVANCE_STACK_FRAME(__next) \
((void *) (((unsigned *)(__next))+14))