Index: runtime/vm/debugger_x64.cc |
diff --git a/runtime/vm/debugger_x64.cc b/runtime/vm/debugger_x64.cc |
index 2928ee9edfb88d68116adb6434c6bb20dee6db9c..6e64d859a644f289a43695b38b884de68fa6b553 100644 |
--- a/runtime/vm/debugger_x64.cc |
+++ b/runtime/vm/debugger_x64.cc |
@@ -12,10 +12,11 @@ |
namespace dart { |
-// TODO(hausner): Implement this. For now just return null instead |
-// of hitting UNIMPLEMENTED. |
+// TODO(hausner): Handle captured variables. |
RawInstance* ActivationFrame::GetLocalVarValue(intptr_t slot_index) { |
- return Instance::null(); |
+ uword var_address = fp() + slot_index * kWordSize; |
+ return reinterpret_cast<RawInstance*>( |
+ *reinterpret_cast<uword*>(var_address)); |
} |