mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2025-12-27 17:55:29 +01:00
arm: Allow the first function to use linked register as return pc
For a crash at the function entry with corrupted PC, the caller's PC could be lying in the link register. Using the PC from link register would be more effective than blindly scanning the stack immediately. Change-Id: I51673b7298e70faeeab2bfa97075e3c4793f94bc Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/2678992 Reviewed-by: Mike Frysinger <vapier@chromium.org> Reviewed-by: Joshua Peraza <jperaza@chromium.org>
This commit is contained in:
parent
2d3e030fdb
commit
f2b3ab5e0a
3 changed files with 33 additions and 1 deletions
|
|
@ -232,7 +232,7 @@ TEST_F(MicrodumpProcessorTest, TestProcessMultiple) {
|
|||
ASSERT_EQ("arm", state.system_info()->cpu);
|
||||
ASSERT_EQ("lge/p1_tmo_us/p1:6.0/MRA58K/1603210524c8d:user/release-keys",
|
||||
state.system_info()->os_version);
|
||||
ASSERT_EQ(5U, state.threads()->at(0)->frames()->size());
|
||||
ASSERT_EQ(6U, state.threads()->at(0)->frames()->size());
|
||||
}
|
||||
|
||||
TEST_F(MicrodumpProcessorTest, TestProcessMips) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue