dbghelp: Fix mapping of DWARF register numbers on x86 OS X.
commit83c1255f660e13ee07d1529a7ef0dde7820ad808
authorKen Thomases <ken@codeweavers.com>
Mon, 29 Jun 2015 01:45:09 +0000 (28 20:45 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 29 Jun 2015 10:07:51 +0000 (29 19:07 +0900)
treeed8643b21fd3c7d3c0a819b1a671518e261f753b
parentd0ae2b0d3d9689b682a76821bf3737eb934ec131
dbghelp: Fix mapping of DWARF register numbers on x86 OS X.

For backward compatibility with old, buggy GCC, Apple uses a different register
numbering scheme for the eh_frame section.

See, for reference, the comments near the top of this file from LLDB's source:
https://github.com/llvm-mirror/lldb/blob/release_36/source/Plugins/Process/Utility/RegisterContext_x86.h
dlls/dbghelp/cpu_arm.c
dlls/dbghelp/cpu_arm64.c
dlls/dbghelp/cpu_i386.c
dlls/dbghelp/cpu_ppc.c
dlls/dbghelp/cpu_x86_64.c
dlls/dbghelp/dbghelp_private.h
dlls/dbghelp/dwarf.c