summaryrefslogtreecommitdiffstats
path: root/src/dex_file.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-11-18 17:05:22 -0800
committerElliott Hughes <enh@google.com>2011-11-18 17:47:00 -0800
commitdbb4079eb1e7d7738c81a97c8dd2550885c1093a (patch)
tree733d5c08027ae65fb89132609d2aec9e6e2d747d /src/dex_file.h
parent25e79a5e9ecd4bf30e0ea90a7dd4313f7f44bc3c (diff)
downloadart-dbb4079eb1e7d7738c81a97c8dd2550885c1093a.zip
art-dbb4079eb1e7d7738c81a97c8dd2550885c1093a.tar.gz
art-dbb4079eb1e7d7738c81a97c8dd2550885c1093a.tar.bz2
Start implementing jdb "locals".
This lets us show the names and types of the locals, but all the values will show up as 0/null. We're going to have to walk the whole stack and take callee-save frames into account to do that right. Change-Id: Ic6e115513b6e65ae7ed4b7274e70bc514e83190a
Diffstat (limited to 'src/dex_file.h')
-rw-r--r--src/dex_file.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dex_file.h b/src/dex_file.h
index 8e07dde..92aa794 100644
--- a/src/dex_file.h
+++ b/src/dex_file.h
@@ -577,8 +577,8 @@ class DexFile {
LocalInfo* local_in_reg, DexDebugNewLocalCb local_cb) const {
if (local_cb != NULL && local_in_reg[reg].is_live_) {
local_cb(cnxt, reg, local_in_reg[reg].start_address_, end_address,
- local_in_reg[reg].name_, local_in_reg[reg].descriptor_,
- local_in_reg[reg].signature_);
+ local_in_reg[reg].name_, local_in_reg[reg].descriptor_,
+ local_in_reg[reg].signature_ != NULL ? local_in_reg[reg].signature_ : "");
}
}