Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 60803be in mainline


Ignore:
Timestamp:
2009-12-28T20:32:50Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
d91a20c
Parents:
2c34be8
Message:

Print a stack trace on abort().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/stdlib.h

    r2c34be8 r60803be  
    3838#include <unistd.h>
    3939#include <malloc.h>
     40#include <stacktrace.h>
    4041
    41 #define abort()       _exit(1)
     42#define abort() \
     43        do { \
     44                stack_trace(); \
     45                _exit(1); \
     46        } while (0)
     47
    4248#define exit(status)  _exit((status))
    4349
Note: See TracChangeset for help on using the changeset viewer.