Rename JdwpLocation.idx to the more intention-revealing dex_pc.
Change-Id: Ie111b1e715b701da528b0e6de87560b1eea793d1
diff --git a/src/jdwp/jdwp_main.cc b/src/jdwp/jdwp_main.cc
index 0fad510..74d392b 100644
--- a/src/jdwp/jdwp_main.cc
+++ b/src/jdwp/jdwp_main.cc
@@ -453,12 +453,12 @@
std::ostream& operator<<(std::ostream& os, const JdwpLocation& rhs) {
os << "JdwpLocation["
<< Dbg::GetClassName(rhs.classId) << "." << Dbg::GetMethodName(rhs.classId, rhs.methodId)
- << "@" << rhs.idx << " " << rhs.typeTag << "]";
+ << "@" << rhs.dex_pc << " " << rhs.typeTag << "]";
return os;
}
bool operator==(const JdwpLocation& lhs, const JdwpLocation& rhs) {
- return lhs.idx == rhs.idx && lhs.methodId == rhs.methodId &&
+ return lhs.dex_pc == rhs.dex_pc && lhs.methodId == rhs.methodId &&
lhs.classId == rhs.classId && lhs.typeTag == rhs.typeTag;
}