summaryrefslogtreecommitdiff
path: root/compiler/oat_writer.cc
diff options
context:
space:
mode:
author Mark Mendell <mark.p.mendell@intel.com> 2014-03-21 08:00:18 -0700
committer Mark Mendell <mark.p.mendell@intel.com> 2014-03-21 08:00:18 -0700
commit1180d77671a6e7f71702a681eb2a18fa4a9a47d0 (patch)
treeeedd0f58b8e40a828042e34fe3e08d9162641e78 /compiler/oat_writer.cc
parent77bef430373a56f7dd9ba99ab8471bf5f571253a (diff)
Fix method index for GDB information
This was pointed out to me by Vladimir Marko. Just use the correct value. Change-Id: Ia0948ef9fb313acdd714fc23420328b2e21569eb Signed-off-by: Mark Mendell <mark.p.mendell@intel.com>
Diffstat (limited to 'compiler/oat_writer.cc')
-rw-r--r--compiler/oat_writer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/oat_writer.cc b/compiler/oat_writer.cc
index c5219a6f16..a07aebce5b 100644
--- a/compiler/oat_writer.cc
+++ b/compiler/oat_writer.cc
@@ -398,7 +398,7 @@ size_t OatWriter::InitOatCodeMethod(size_t offset, size_t oat_class_index,
(*cfi_info)[offset_to_update+1] = new_value >> 8;
(*cfi_info)[offset_to_update+2] = new_value >> 16;
(*cfi_info)[offset_to_update+3] = new_value >> 24;
- method_info_.push_back(DebugInfo(PrettyMethod(class_def_method_index, dex_file, false),
+ method_info_.push_back(DebugInfo(PrettyMethod(method_idx, dex_file, false),
new_value, new_value + code_size));
}
}