summaryrefslogtreecommitdiffstats
path: root/src/debugger.cc
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-02-23 13:33:29 -0800
committerElliott Hughes <enh@google.com>2012-02-23 13:33:29 -0800
commit229feb7a09317919ee51c06d1c3e715cea25da75 (patch)
tree2e09c9af03d0f505391f1803404c887873f1654f /src/debugger.cc
parent753d7ff905bd1d397ba6b8cb4336096535021e40 (diff)
downloadart-229feb7a09317919ee51c06d1c3e715cea25da75.zip
art-229feb7a09317919ee51c06d1c3e715cea25da75.tar.gz
art-229feb7a09317919ee51c06d1c3e715cea25da75.tar.bz2
Consistently use hex for dex PC values in the debugger.
dexdump uses hex, so there's less need for translation if the runtime does too. Change-Id: Ie44790d0b277a12d45ec6fdf11fcc20e75459b5a
Diffstat (limited to 'src/debugger.cc')
-rw-r--r--src/debugger.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debugger.cc b/src/debugger.cc
index 530ffba..8e0d5a9 100644
--- a/src/debugger.cc
+++ b/src/debugger.cc
@@ -127,7 +127,7 @@ struct Breakpoint {
};
static std::ostream& operator<<(std::ostream& os, const Breakpoint& rhs) {
- os << "Breakpoint[" << PrettyMethod(rhs.method) << " @" << rhs.dex_pc << "]";
+ os << StringPrintf("Breakpoint[%s @%#x]", PrettyMethod(rhs.method).c_str(), rhs.dex_pc);
return os;
}
@@ -1979,7 +1979,7 @@ JDWP::JdwpError Dbg::ConfigureStep(JDWP::ObjectId threadId, JDWP::JdwpStepSize s
VLOG(jdwp) << "Single-step current stack depth: " << gSingleStepControl.stack_depth;
VLOG(jdwp) << "Single-step dex_pc values:";
for (std::set<uint32_t>::iterator it = gSingleStepControl.dex_pcs.begin() ; it != gSingleStepControl.dex_pcs.end(); ++it) {
- VLOG(jdwp) << " " << *it;
+ VLOG(jdwp) << StringPrintf(" %#x", *it);
}
}