Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: src/processor/stackwalker_arm64_unittest.cc

Issue 1379433005: Increasing the Breakpad stack walker max scan limit from 30 to 40. (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Updating a comment in a test file. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/processor/stackwalker.cc ('k') | src/processor/stackwalker_arm_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010, Google Inc. 1 // Copyright (c) 2010, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 .Append(96, 0) // more space 342 .Append(96, 0) // more space
343 343
344 .D64(return_address1) // actual return address 344 .D64(return_address1) // actual return address
345 // frame 1 345 // frame 1
346 .Mark(&frame1_sp) 346 .Mark(&frame1_sp)
347 .Append(32, 0) // space 347 .Append(32, 0) // space
348 348
349 .D64(0xF0000000) // more junk 349 .D64(0xF0000000) // more junk
350 .D64(0x0000000D) 350 .D64(0x0000000D)
351 351
352 .Append(256, 0) // more space 352 .Append(336, 0) // more space
353 353
354 .D64(return_address2) // actual return address 354 .D64(return_address2) // actual return address
355 // (won't be found) 355 // (won't be found)
356 // frame 2 356 // frame 2
357 .Mark(&frame2_sp) 357 .Mark(&frame2_sp)
358 .Append(64, 0); // end of stack 358 .Append(64, 0); // end of stack
359 RegionFromSection(); 359 RegionFromSection();
360 360
361 raw_context.iregs[MD_CONTEXT_ARM64_REG_PC] = 0x40005510; 361 raw_context.iregs[MD_CONTEXT_ARM64_REG_PC] = 0x40005510;
362 raw_context.iregs[MD_CONTEXT_ARM64_REG_SP] = stack_section.start().Value(); 362 raw_context.iregs[MD_CONTEXT_ARM64_REG_SP] = stack_section.start().Value();
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 &frame_symbolizer); 871 &frame_symbolizer);
872 vector<const CodeModule*> modules_without_symbols; 872 vector<const CodeModule*> modules_without_symbols;
873 vector<const CodeModule*> modules_with_corrupt_symbols; 873 vector<const CodeModule*> modules_with_corrupt_symbols;
874 ASSERT_TRUE(walker.Walk(&call_stack, &modules_without_symbols, 874 ASSERT_TRUE(walker.Walk(&call_stack, &modules_without_symbols,
875 &modules_with_corrupt_symbols)); 875 &modules_with_corrupt_symbols));
876 ASSERT_EQ(0U, modules_without_symbols.size()); 876 ASSERT_EQ(0U, modules_without_symbols.size());
877 ASSERT_EQ(0U, modules_with_corrupt_symbols.size()); 877 ASSERT_EQ(0U, modules_with_corrupt_symbols.size());
878 frames = call_stack.frames(); 878 frames = call_stack.frames();
879 ASSERT_EQ(1U, frames->size()); 879 ASSERT_EQ(1U, frames->size());
880 } 880 }
OLDNEW
« no previous file with comments | « src/processor/stackwalker.cc ('k') | src/processor/stackwalker_arm_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698