diff options
-rw-r--r-- | src/processor/stackwalker_address_list.cc | 2 | ||||
-rw-r--r-- | src/processor/stackwalker_address_list_unittest.cc | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/processor/stackwalker_address_list.cc b/src/processor/stackwalker_address_list.cc index 55656032..e81fec28 100644 --- a/src/processor/stackwalker_address_list.cc +++ b/src/processor/stackwalker_address_list.cc @@ -64,7 +64,7 @@ StackFrame* StackwalkerAddressList::GetContextFrame() { StackFrame* frame = new StackFrame(); frame->instruction = frames_[0]; - frame->trust = StackFrame::FRAME_TRUST_CONTEXT; + frame->trust = StackFrame::FRAME_TRUST_PREWALKED; return frame; } diff --git a/src/processor/stackwalker_address_list_unittest.cc b/src/processor/stackwalker_address_list_unittest.cc index 2eb36cd7..ab4e9c08 100644 --- a/src/processor/stackwalker_address_list_unittest.cc +++ b/src/processor/stackwalker_address_list_unittest.cc @@ -108,11 +108,7 @@ class StackwalkerAddressListTest : public testing::Test { ASSERT_EQ(arraysize(kDummyFrames), frames->size()); for (size_t i = 0; i < arraysize(kDummyFrames); ++i) { ASSERT_EQ(kDummyFrames[i], frames->at(i)->instruction); - if (i == 0) { - ASSERT_EQ(StackFrame::FRAME_TRUST_CONTEXT, frames->at(i)->trust); - } else { - ASSERT_EQ(StackFrame::FRAME_TRUST_PREWALKED, frames->at(i)->trust); - } + ASSERT_EQ(StackFrame::FRAME_TRUST_PREWALKED, frames->at(i)->trust); } ASSERT_EQ(static_cast<const CodeModule*>(&module2), frames->at(0)->module); ASSERT_EQ(static_cast<const CodeModule*>(&module2), frames->at(1)->module); |