mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2025-12-28 02:05:04 +01:00
The "CPU architecture" field is being filled from the wrong part of
the microdump. The microdump OS/arch line looks like: O A arm 04 armv7l 3.4.0-perf-g4d6e88e #1 SMP PREEMPT Mon Mar 30 19:09:30 2015 and currently the field that says "armv7l" or "aarch64" is being used to fill in the CPU arch field in crash. The problem is that on a 64-bit device this field *always* says "aarch64" even when running in a 32-bit process, and so currently the crash reports for aarch64 are a mix of 32-bit and 64-bit crashes. We should be using the first field instead, which just says "arm" or "arm64" and reflects the actual version of webview (32-bit or 64-bit) which is running. BUG= R=primiano@chromium.org Review URL: https://codereview.chromium.org/1306983003 . git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1498 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
f073540795
commit
3f4d090d70
6 changed files with 106 additions and 25 deletions
|
|
@ -128,7 +128,7 @@ TEST_F(MicrodumpProcessorTest, TestProcess_MissingSymbols) {
|
|||
AnalyzeDump("microdump-arm64.dmp", &state, true /* omit_symbols */);
|
||||
|
||||
ASSERT_EQ(8U, state.modules()->module_count());
|
||||
ASSERT_EQ("aarch64", state.system_info()->cpu);
|
||||
ASSERT_EQ("arm64", state.system_info()->cpu);
|
||||
ASSERT_EQ("OS 64 VERSION INFO", state.system_info()->os_version);
|
||||
ASSERT_EQ(1U, state.threads()->size());
|
||||
ASSERT_EQ(12U, state.threads()->at(0)->frames()->size());
|
||||
|
|
@ -158,7 +158,7 @@ TEST_F(MicrodumpProcessorTest, TestProcessArm) {
|
|||
AnalyzeDump("microdump-arm.dmp", &state, false /* omit_symbols */);
|
||||
|
||||
ASSERT_EQ(6U, state.modules()->module_count());
|
||||
ASSERT_EQ("armv7l", state.system_info()->cpu);
|
||||
ASSERT_EQ("arm", state.system_info()->cpu);
|
||||
ASSERT_EQ("OS VERSION INFO", state.system_info()->os_version);
|
||||
ASSERT_EQ(8U, state.threads()->at(0)->frames()->size());
|
||||
ASSERT_EQ("MicrodumpWriterTest_Setup_Test::TestBody",
|
||||
|
|
@ -176,7 +176,7 @@ TEST_F(MicrodumpProcessorTest, TestProcessArm64) {
|
|||
AnalyzeDump("microdump-arm64.dmp", &state, false /* omit_symbols */);
|
||||
|
||||
ASSERT_EQ(8U, state.modules()->module_count());
|
||||
ASSERT_EQ("aarch64", state.system_info()->cpu);
|
||||
ASSERT_EQ("arm64", state.system_info()->cpu);
|
||||
ASSERT_EQ("OS 64 VERSION INFO", state.system_info()->os_version);
|
||||
ASSERT_EQ(9U, state.threads()->at(0)->frames()->size());
|
||||
ASSERT_EQ("MicrodumpWriterTest_Setup_Test::TestBody",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue