Changeset View
Changeset View
Standalone View
Standalone View
src/libunwind.cpp
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
#elif defined(__or1k__) | #elif defined(__or1k__) | ||||
# define REGISTER_KIND Registers_or1k | # define REGISTER_KIND Registers_or1k | ||||
#elif defined(__mips__) && defined(_ABIO32) && _MIPS_SIM == _ABIO32 | #elif defined(__mips__) && defined(_ABIO32) && _MIPS_SIM == _ABIO32 | ||||
# define REGISTER_KIND Registers_mips_o32 | # define REGISTER_KIND Registers_mips_o32 | ||||
#elif defined(__mips64) | #elif defined(__mips64) | ||||
# define REGISTER_KIND Registers_mips_newabi | # define REGISTER_KIND Registers_mips_newabi | ||||
#elif defined(__mips__) | #elif defined(__mips__) | ||||
# warning The MIPS architecture is not supported with this ABI and environment! | # warning The MIPS architecture is not supported with this ABI and environment! | ||||
#elif defined(__sparc__) | |||||
# define REGISTER_KIND Registers_sparc | |||||
#else | #else | ||||
# error Architecture not supported | # error Architecture not supported | ||||
#endif | #endif | ||||
// Use "placement new" to allocate UnwindCursor in the cursor buffer. | // Use "placement new" to allocate UnwindCursor in the cursor buffer. | ||||
new ((void *)cursor) UnwindCursor<LocalAddressSpace, REGISTER_KIND>( | new ((void *)cursor) UnwindCursor<LocalAddressSpace, REGISTER_KIND>( | ||||
context, LocalAddressSpace::sThisAddressSpace); | context, LocalAddressSpace::sThisAddressSpace); | ||||
#undef REGISTER_KIND | #undef REGISTER_KIND | ||||
AbstractUnwindCursor *co = (AbstractUnwindCursor *)cursor; | AbstractUnwindCursor *co = (AbstractUnwindCursor *)cursor; | ||||
▲ Show 20 Lines • Show All 331 Lines • Show Last 20 Lines |