Fix intermittent failures of Lrs-race test case
Fix intermittent failures of Lrs-race test case

After the following change the Lrs-race test case starts to intermittently
fails:

eac65dc Add basic support for the QNX operating system

When we include "config.h" into the "libunwind_i.h" we undefine
the HAVE___THREAD macro in a few lines below in #include "config.h"
pragma. The change eac65dc includes "config.h" into the "dwarf.h"
but forgets to undefine HAVE___THREAD. So now this macro has inconsistent
state among the code. Somewhere it is defined, somewhere not. In particular
it becomes defined in the mi/Gset_caching_policy.c and we do not replace
UNW_CACHE_PER_THREAD caching policy by the UNW_CACHE_GLOBAL.

The fix is rather dirty. It adds the code to undefine HAVE___THREAD in
the "dwarf.h" like we do that in the "libunwind_i.h". Probably the ideal
solution should fix per-thread caching implementation or turned it off
at all on platforms where it is not completely and correctly supported.

Signed-off-by: Simon Atanasyan <088e16a1019277b15d58faf0541e11910eb756f6@atanasyan.com>

tony/libunwind,tkelman/libunwind,libunwind/libunwind,tkelman/libunwind,dagar/libunwind,joyent/libunwind,vegard/libunwind,unkadoug/libunwind,rntz/libunwind,yuyichao/libunwind,pathscale/libunwind,atanasyan/libunwind,atanasyan/libunwind,dagar/libunwind,project-zerus/libunwind,krytarowski/libunwind,bo-on-software/libunwind,bo-on-software/libunwind,rantala/libunwind,vtjnash/libunwind,pathscale/libunwind,martyone/libunwind,fdoray/libunwind,tony/libunwind,dropbox/libunwind,dagar/libunwind,pathscale/libunwind,vegard/libunwind,evaautomation/libunwind,rntz/libunwind,djwatson/libunwind,joyent/libunwind,frida/libunwind,frida/libunwind,fdoray/libunwind,wdv4758h/libunwind,yuyichao/libunwind,libunwind/libunwind,wdv4758h/libunwind,Chilledheart/libunwind,rantala/libunwind,tkelman/libunwind,dropbox/libunwind,igprof/libunwind,atanasyan/libunwind,djwatson/libunwind,igprof/libunwind,Chilledheart/libunwind,Chilledheart/libunwind,fdoray/libunwind,martyone/libunwind,vegard/libunwind,martyone/libunwind,djwatson/libunwind,dropbox/libunwind,joyent/libunwind,krytarowski/libunwind,vtjnash/libunwind,unkadoug/libunwind,krytarowski/libunwind,vtjnash/libunwind,rantala/libunwind,igprof/libunwind,yuyichao/libunwind,evaautomation/libunwind,evaautomation/libunwind,frida/libunwind,wdv4758h/libunwind,rntz/libunwind,project-zerus/libunwind,bo-on-software/libunwind,project-zerus/libunwind,unkadoug/libunwind,tony/libunwind,libunwind/libunwind