Fix and refactoring of code used to get registers on crash.
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.

fanxu/redis,powerumc/MyRedis_old,Jonavin/redis,DeNA/redis,erwin00776/redis-2.8-optimize,jaambee/redis,janeasystems/redis,richmonkey/netleveldb,hanmichael/redis,laurencee/redis,crask/redis-cutter,upsoft/redis,jaambee/redis,erwin00776/redis-2.8-optimize,upsoft/redis,laurencee/redis,ideaar/redis,adamweixuan/redis,alpha8/redis,janeasystems/redis,oaastest/redis,nandhanurrevanth/redis,hanmichael/redis,ScottKaiGu/redis,alpha8/redis,kolonse/redis,jqk6/redis,kts12345/redis,kolonse/redis,grisha/thredis,jqk6/redis,fanxu/redis,sidsen/redis,quangnguyen90/redis,ScottKaiGu/redis,LittlePeng/redis,jacklee0810/redis,adamweixuan/redis,damy/redis,Jonavin/redis,powerumc/MyRedis,kts12345/redis,Jonavin/redis,enginekit/redis,crask/redis-cutter,kolonse/redis,oaastest/redis,upsoft/redis,nandhanurrevanth/redis,Cybermaxs/redis,kts12345/redis,Cybermaxs/redis,grisha/thredis,jacklee0810/redis,adamweixuan/redis,nandhanurrevanth/redis,jacklee0810/redis,StartTheShift/redis-shift,daogangtang/redis_luajit2.6,liqiang199105/redis,damy/redis,ScottKaiGu/redis,StartTheShift/redis-shift,Jonavin/redis,sidsen/redis,miminus/redis,crask/redis-cutter,adamweixuan/redis,adamweixuan/redis,jacklee0810/redis,enginekit/redis,nandhanurrevanth/redis,oaastest/redis,hanmichael/redis,powerumc/MyRedis,quangnguyen90/redis,daogangtang/redis_luajit2.6,sidsen/redis,liqiang199105/redis,kts12345/redis,miminus/redis,shanegxxiao/redis,DeNA/redis,ideaar/redis,miminus/redis,jqk6/redis,laurencee/redis,upsoft/redis,erwin00776/redis-2.8-optimize,erwin00776/redis-2.8-optimize,richmonkey/netleveldb,shanegxxiao/redis,quangnguyen90/redis,janeasystems/redis,powerumc/MyRedis_old,janeasystems/redis,jacklee0810/redis,jaambee/redis,kolonse/redis,ideaar/redis,LittlePeng/redis,shanegxxiao/redis,richmonkey/netleveldb,kts12345/redis,alpha8/redis,hanmichael/redis,Jonavin/redis,janeasystems/redis,quangnguyen90/redis,jqk6/redis,richmonkey/netleveldb,oaastest/redis,enginekit/redis,Cybermaxs/redis,grisha/thredis,sidsen/redis,upsoft/redis,ScottKaiGu/redis,miminus/redis,fanxu/redis,alpha8/redis,sidsen/redis,powerumc/MyRedis_old,oaastest/redis,shanegxxiao/redis,powerumc/MyRedis,sidsen/redis,laurencee/redis,shanegxxiao/redis,miminus/redis,grisha/thredis,hanmichael/redis,damy/redis,jaambee/redis,daogangtang/redis_luajit2.6,Cybermaxs/redis,nandhanurrevanth/redis,liqiang199105/redis,damy/redis,liqiang199105/redis,enginekit/redis,kolonse/redis,laurencee/redis,jaambee/redis,jqk6/redis,ideaar/redis,alpha8/redis,liqiang199105/redis,Cybermaxs/redis,damy/redis,DeNA/redis,quangnguyen90/redis,powerumc/MyRedis_old,ideaar/redis,enginekit/redis,StartTheShift/redis-shift,daogangtang/redis_luajit2.6,fanxu/redis,ScottKaiGu/redis,LittlePeng/redis