mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-24 10:45:47 +01:00
Make StackWalkerAddressList use FRAME_TRUST_PREWALKED trust level.
Review URL: https://breakpad.appspot.com/624002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1209 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
16a880e135
commit
b097e31d92
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user