diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-05-06 17:51:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-07 15:13:03 -0400 |
commit | 63843c265fd0e0c7894f713e0db5777560e756ae (patch) | |
tree | 020eb5c523857f2485fd1ca4968245f7264a4cba /arch/um/os-Linux/util.c | |
parent | 990c55871b655156ffd7787af791be977d946ef6 (diff) |
uml: dump core on panic
Dump core after a panic. This will provide better debugging information than
is currently available.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/os-Linux/util.c')
-rw-r--r-- | arch/um/os-Linux/util.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/um/os-Linux/util.c b/arch/um/os-Linux/util.c index 48bc4927b996..c307a89ed259 100644 --- a/arch/um/os-Linux/util.c +++ b/arch/um/os-Linux/util.c | |||
@@ -119,3 +119,9 @@ int setjmp_wrapper(void (*proc)(void *, void *), ...) | |||
119 | va_end(args); | 119 | va_end(args); |
120 | return n; | 120 | return n; |
121 | } | 121 | } |
122 | |||
123 | void os_dump_core(void) | ||
124 | { | ||
125 | signal(SIGSEGV, SIG_DFL); | ||
126 | abort(); | ||
127 | } | ||