Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Native/libunwind/src/libunwind.cpp')
-rw-r--r--src/Native/libunwind/src/libunwind.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Native/libunwind/src/libunwind.cpp b/src/Native/libunwind/src/libunwind.cpp
index c9e3ba15a..00c0fc377 100644
--- a/src/Native/libunwind/src/libunwind.cpp
+++ b/src/Native/libunwind/src/libunwind.cpp
@@ -171,14 +171,14 @@ _LIBUNWIND_EXPORT int unw_get_reg(unw_cursor_t *cursor, unw_regnum_t regNum,
/// Set value of specified register at cursor position in stack frame.
_LIBUNWIND_EXPORT int unw_set_reg(unw_cursor_t *cursor, unw_regnum_t regNum,
- unw_word_t value) {
+ unw_word_t value, unw_word_t *pos) {
_LIBUNWIND_TRACE_API("unw_set_reg(cursor=%p, regNum=%d, value=0x%llX)",
static_cast<void *>(cursor), regNum, (long long)value);
typedef LocalAddressSpace::pint_t pint_t;
AbstractUnwindCursor *co = (AbstractUnwindCursor *)cursor;
if (co->validReg(regNum)) {
- co->setReg(regNum, (pint_t)value, 0);
- // specical case altering IP to re-find info (being called by personality
+ co->setReg(regNum, (pint_t)value, (pint_t)pos);
+ // special case altering IP to re-find info (being called by personality
// function)
if (regNum == UNW_REG_IP)
co->setInfoBasedOnIPRegister(false);