aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic/segfault.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-01-06 00:10:15 +0000
committerUlrich Drepper <drepper@redhat.com>2000-01-06 00:10:15 +0000
commit542493f93c68755e0c005309e061d5a5a42142ac (patch)
tree7abc952b75cef5d4c9d31973e9f3826ea5a173b0 /sysdeps/generic/segfault.c
parentf3ac48d0deccc3cab889ac91e4ba9c46b09ae9b3 (diff)
downloadglibc-542493f93c68755e0c005309e061d5a5a42142ac.zip
glibc-542493f93c68755e0c005309e061d5a5a42142ac.tar.gz
glibc-542493f93c68755e0c005309e061d5a5a42142ac.tar.bz2
Update.
2000-01-05 Philip Blundell <philb@gnu.org> * sysdeps/arm/frame.h: New file. * sysdeps/generic/frame.h: Likewise. * sysdeps/generic/segfault.c (struct layout): Delete definition; include the above file instead. * sysdeps/generic/backtrace.c (struct layout): Likewise. (__backtrace): Use ADVANCE_STACK_FRAME. * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h (ADVANCE_STACK_FRAME): New macro. (GET_FRAME): Apply above to returned value. * sysdeps/unix/sysv/linux/arm/bits/armsigctx.h: Add `fault_address'.
Diffstat (limited to 'sysdeps/generic/segfault.c')
-rw-r--r--sysdeps/generic/segfault.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sysdeps/generic/segfault.c b/sysdeps/generic/segfault.c
index b1bb178..41e3aa5 100644
--- a/sysdeps/generic/segfault.c
+++ b/sysdeps/generic/segfault.c
@@ -28,6 +28,9 @@
#include <unistd.h>
#include <stdio-common/_itoa.h>
+/* Get the definition of "struct layout". */
+#include <frame.h>
+
/* This file defines macros to access the content of the sigcontext element
passed up by the signal handler. */
#include <sigcontextinfo.h>
@@ -72,14 +75,6 @@ extern void *__libc_stack_end;
/* We'll use tis a lot. */
#define WRITE_STRING(s) write (fd, s, strlen (s))
-
-struct layout
-{
- void *next;
- void *return_address;
-};
-
-
/* Name of the output file. */
static const char *fname;