summaryrefslogtreecommitdiff
path: root/src/stack.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/stack.cc')
-rw-r--r--src/stack.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/stack.cc b/src/stack.cc
index 2b2530bb99..c13aaf4d5e 100644
--- a/src/stack.cc
+++ b/src/stack.cc
@@ -68,12 +68,18 @@ uint32_t StackVisitor::GetDexPc() const {
if (cur_shadow_frame_ != NULL) {
return cur_shadow_frame_->GetDexPC();
} else if (cur_quick_frame_ != NULL) {
- return GetMethod()->ToDexPC(cur_quick_frame_pc_);
+ return GetMethod()->ToDexPc(cur_quick_frame_pc_);
} else {
return 0;
}
}
+size_t StackVisitor::GetNativePcOffset() const {
+ DCHECK(!IsShadowFrame());
+ return GetMethod()->NativePcOffset(cur_quick_frame_pc_);
+}
+
+
uint32_t StackVisitor::GetVReg(Method* m, int vreg) const {
if (cur_quick_frame_ != NULL) {
DCHECK(context_ != NULL); // You can't reliably read registers without a context.