Changeset 60803be in mainline


Ignore:
Timestamp:
2009-12-28T20:32:50Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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.