More debugger support.
This wires up method-entry events and fixes a bug in exception events.
Change-Id: Ia7c46786a8073434fbb4546615072622f301ef84
diff --git a/src/stack.h b/src/stack.h
index 3a0903f..382ad24 100644
--- a/src/stack.h
+++ b/src/stack.h
@@ -41,6 +41,8 @@
public:
Frame() : sp_(NULL) {}
+ Frame(Method** sp) : sp_(sp) {}
+
Method* GetMethod() const {
return (sp_ != NULL) ? *sp_ : NULL;
}
@@ -68,8 +70,6 @@
return sp_;
}
- // TODO: this is here for testing, remove when we have exception unit tests
- // that use the real stack
void SetSP(Method** sp) {
sp_ = sp;
}