]> git.saurik.com Git - redis.git/commit
Fix and refactoring of code used to get registers on crash.
authorantirez <antirez@gmail.com>
Tue, 24 Apr 2012 09:07:15 +0000 (11:07 +0200)
committerantirez <antirez@gmail.com>
Tue, 24 Apr 2012 17:34:15 +0000 (19:34 +0200)
commit38b60dea54009e909e3ce1be6751693516233e1b
tree482da307c26ab01c780ed012f4dbcff20b30c5c9
parent69b30cfcb6cdaee4a9e12eec2fb3a8a2aa093e7f
Fix and refactoring of code used to get registers on crash.

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.
src/debug.c