aboutsummaryrefslogtreecommitdiff
path: root/src/processor/stackwalker_ppc64.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/processor/stackwalker_ppc64.cc')
-rw-r--r--src/processor/stackwalker_ppc64.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/processor/stackwalker_ppc64.cc b/src/processor/stackwalker_ppc64.cc
index fb2bac3c..9ac8e45b 100644
--- a/src/processor/stackwalker_ppc64.cc
+++ b/src/processor/stackwalker_ppc64.cc
@@ -1,5 +1,4 @@
-// Copyright (c) 2013 Google Inc.
-// All rights reserved.
+// Copyright 2013 Google LLC
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
@@ -11,7 +10,7 @@
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
-// * Neither the name of Google Inc. nor the names of its
+// * Neither the name of Google LLC nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
@@ -123,10 +122,9 @@ StackFrame* StackwalkerPPC64::GetCallerFrame(const CallStack* stack,
frame->trust = StackFrame::FRAME_TRUST_FP;
// Should we terminate the stack walk? (end-of-stack or broken invariant)
- if (TerminateWalk(instruction,
- stack_pointer,
- last_frame->context.gpr[1],
- stack->frames()->size() == 1)) {
+ if (TerminateWalk(instruction, stack_pointer, last_frame->context.gpr[1],
+ /*is_context_frame=*/last_frame->trust ==
+ StackFrame::FRAME_TRUST_CONTEXT)) {
return NULL;
}