diff options
author | mmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2006-10-20 01:46:38 +0000 |
---|---|---|
committer | mmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2006-10-20 01:46:38 +0000 |
commit | 246f4068280b5b191303ff13671e43a0522987de (patch) | |
tree | 9de2b66c7d8f0241de53669de045318d6283da7e /src/processor/source_line_resolver_unittest.cc | |
parent | Improvements for Windows client/tool-side code. r=bryner (diff) | |
download | breakpad-246f4068280b5b191303ff13671e43a0522987de.tar.xz |
Handle frame pointer omission, (#21), part 4 (final part!): FPO stackwalker.
r=bryner
- This change allows Airbag to properly walk win32 stacks produced by code
built with MSVC's frame pointer omission optimization (/Oy). This
optimization is enabled at /O1 and /O2.
- There too many interface and file format changes to list here.
http://groups.google.com/group/airbag-dev/browse_thread/thread/85ce85bfa8457ece
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@42 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/processor/source_line_resolver_unittest.cc')
-rw-r--r-- | src/processor/source_line_resolver_unittest.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/processor/source_line_resolver_unittest.cc b/src/processor/source_line_resolver_unittest.cc index 0b70b43f..5cdfb85b 100644 --- a/src/processor/source_line_resolver_unittest.cc +++ b/src/processor/source_line_resolver_unittest.cc @@ -81,6 +81,7 @@ static bool RunTests() { ASSERT_EQ(frame.function_name, "Function1_1"); ASSERT_EQ(frame.source_file_name, "file1_1.cc"); ASSERT_EQ(frame.source_line, 44); + ASSERT_FALSE(frame_info.allocates_base_pointer); ASSERT_EQ(frame_info.program_string, "$eip 4 + ^ = $esp $ebp 8 + = $ebp $ebp ^ ="); @@ -88,6 +89,7 @@ static bool RunTests() { frame.instruction = 0x800; resolver.FillSourceLineInfo(&frame, &frame_info); ASSERT_TRUE(VerifyEmpty(frame)); + ASSERT_FALSE(frame_info.allocates_base_pointer); ASSERT_TRUE(frame_info.program_string.empty()); frame.instruction = 0x1280; @@ -95,6 +97,7 @@ static bool RunTests() { ASSERT_EQ(frame.function_name, "Function1_3"); ASSERT_TRUE(frame.source_file_name.empty()); ASSERT_EQ(frame.source_line, 0); + ASSERT_FALSE(frame_info.allocates_base_pointer); ASSERT_TRUE(frame_info.program_string.empty()); frame.instruction = 0x1380; @@ -102,6 +105,7 @@ static bool RunTests() { ASSERT_EQ(frame.function_name, "Function1_4"); ASSERT_TRUE(frame.source_file_name.empty()); ASSERT_EQ(frame.source_line, 0); + ASSERT_FALSE(frame_info.allocates_base_pointer); ASSERT_FALSE(frame_info.program_string.empty()); frame.instruction = 0x2180; |