Fix the size of the _Unwind_Exception struct

On OSX 32-bit, the private fields are 5 words long, not 2. I found this
segfaulting before this change, and after this change it no longer segfaulted.
This commit is contained in:
Alex Crichton 2014-01-30 20:58:04 -08:00
parent b3003e1e1a
commit 51b90004d9

View File

@ -122,7 +122,10 @@ pub enum _Unwind_Reason_Code {
pub type _Unwind_Word = uintptr_t;
#[cfg(not(target_arch = "arm"))]
#[cfg(target_arch = "x86")]
pub static unwinder_private_data_size: int = 5;
#[cfg(target_arch = "x86_64")]
pub static unwinder_private_data_size: int = 2;
#[cfg(target_arch = "arm")]