• antirez's avatar
    Fix and refactoring of code used to get registers on crash. · a66a4963
    antirez authored
    This fixes compilation on FreeBSD (and possibly other systems) by
    not using ucontext_t at all if HAVE_BACKTRACE is not defined.
    Also the ifdefs to get the registers are modified to explicitly test for the
    operating system in the first level, and the arch in the second level
    of nesting.
    a66a4963
debug.c 25.7 KB