blob: a1aabc3605a4b97e5b2fe29289de7e9e52d23f82 [file] [log] [blame]
David Srbecky3b9d57a2015-04-10 00:22:14 +01001/*
2 * Copyright (C) 2015 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include "elf_writer_debug.h"
18
David Srbecky626a1662015-04-12 13:12:26 +010019#include <unordered_set>
20
Andreas Gampee3d623e2015-05-01 16:11:04 -070021#include "base/casts.h"
David Srbecky3b9d57a2015-04-10 00:22:14 +010022#include "compiled_method.h"
23#include "driver/compiler_driver.h"
24#include "dex_file-inl.h"
25#include "dwarf/headers.h"
26#include "dwarf/register.h"
27#include "oat_writer.h"
28
29namespace art {
30namespace dwarf {
31
David Srbeckyad5fa8c2015-05-06 18:27:35 +010032static void WriteDebugFrameCIE(InstructionSet isa,
33 ExceptionHeaderValueApplication addr_type,
34 CFIFormat format,
35 std::vector<uint8_t>* eh_frame) {
David Srbecky3b9d57a2015-04-10 00:22:14 +010036 // Scratch registers should be marked as undefined. This tells the
37 // debugger that its value in the previous frame is not recoverable.
38 bool is64bit = Is64BitInstructionSet(isa);
39 switch (isa) {
40 case kArm:
41 case kThumb2: {
42 DebugFrameOpCodeWriter<> opcodes;
43 opcodes.DefCFA(Reg::ArmCore(13), 0); // R13(SP).
44 // core registers.
45 for (int reg = 0; reg < 13; reg++) {
46 if (reg < 4 || reg == 12) {
47 opcodes.Undefined(Reg::ArmCore(reg));
48 } else {
49 opcodes.SameValue(Reg::ArmCore(reg));
50 }
51 }
52 // fp registers.
53 for (int reg = 0; reg < 32; reg++) {
54 if (reg < 16) {
55 opcodes.Undefined(Reg::ArmFp(reg));
56 } else {
57 opcodes.SameValue(Reg::ArmFp(reg));
58 }
59 }
David Srbecky527c9c72015-04-17 21:14:10 +010060 auto return_reg = Reg::ArmCore(14); // R14(LR).
David Srbeckyad5fa8c2015-05-06 18:27:35 +010061 WriteDebugFrameCIE(is64bit, addr_type, return_reg,
62 opcodes, format, eh_frame);
David Srbecky3b9d57a2015-04-10 00:22:14 +010063 return;
64 }
65 case kArm64: {
66 DebugFrameOpCodeWriter<> opcodes;
67 opcodes.DefCFA(Reg::Arm64Core(31), 0); // R31(SP).
68 // core registers.
69 for (int reg = 0; reg < 30; reg++) {
70 if (reg < 8 || reg == 16 || reg == 17) {
71 opcodes.Undefined(Reg::Arm64Core(reg));
72 } else {
73 opcodes.SameValue(Reg::Arm64Core(reg));
74 }
75 }
76 // fp registers.
77 for (int reg = 0; reg < 32; reg++) {
78 if (reg < 8 || reg >= 16) {
79 opcodes.Undefined(Reg::Arm64Fp(reg));
80 } else {
81 opcodes.SameValue(Reg::Arm64Fp(reg));
82 }
83 }
David Srbecky527c9c72015-04-17 21:14:10 +010084 auto return_reg = Reg::Arm64Core(30); // R30(LR).
David Srbeckyad5fa8c2015-05-06 18:27:35 +010085 WriteDebugFrameCIE(is64bit, addr_type, return_reg,
86 opcodes, format, eh_frame);
David Srbecky3b9d57a2015-04-10 00:22:14 +010087 return;
88 }
89 case kMips:
90 case kMips64: {
91 DebugFrameOpCodeWriter<> opcodes;
92 opcodes.DefCFA(Reg::MipsCore(29), 0); // R29(SP).
93 // core registers.
94 for (int reg = 1; reg < 26; reg++) {
95 if (reg < 16 || reg == 24 || reg == 25) { // AT, V*, A*, T*.
96 opcodes.Undefined(Reg::MipsCore(reg));
97 } else {
98 opcodes.SameValue(Reg::MipsCore(reg));
99 }
100 }
David Srbecky527c9c72015-04-17 21:14:10 +0100101 auto return_reg = Reg::MipsCore(31); // R31(RA).
David Srbeckyad5fa8c2015-05-06 18:27:35 +0100102 WriteDebugFrameCIE(is64bit, addr_type, return_reg,
103 opcodes, format, eh_frame);
David Srbecky3b9d57a2015-04-10 00:22:14 +0100104 return;
105 }
106 case kX86: {
David Srbecky8a813f72015-04-20 16:43:52 +0100107 // FIXME: Add fp registers once libunwind adds support for them. Bug: 20491296
108 constexpr bool generate_opcodes_for_x86_fp = false;
David Srbecky3b9d57a2015-04-10 00:22:14 +0100109 DebugFrameOpCodeWriter<> opcodes;
110 opcodes.DefCFA(Reg::X86Core(4), 4); // R4(ESP).
111 opcodes.Offset(Reg::X86Core(8), -4); // R8(EIP).
112 // core registers.
113 for (int reg = 0; reg < 8; reg++) {
114 if (reg <= 3) {
115 opcodes.Undefined(Reg::X86Core(reg));
116 } else if (reg == 4) {
117 // Stack pointer.
118 } else {
119 opcodes.SameValue(Reg::X86Core(reg));
120 }
121 }
122 // fp registers.
David Srbecky8a813f72015-04-20 16:43:52 +0100123 if (generate_opcodes_for_x86_fp) {
124 for (int reg = 0; reg < 8; reg++) {
125 opcodes.Undefined(Reg::X86Fp(reg));
126 }
David Srbecky3b9d57a2015-04-10 00:22:14 +0100127 }
David Srbecky527c9c72015-04-17 21:14:10 +0100128 auto return_reg = Reg::X86Core(8); // R8(EIP).
David Srbeckyad5fa8c2015-05-06 18:27:35 +0100129 WriteDebugFrameCIE(is64bit, addr_type, return_reg,
130 opcodes, format, eh_frame);
David Srbecky3b9d57a2015-04-10 00:22:14 +0100131 return;
132 }
133 case kX86_64: {
134 DebugFrameOpCodeWriter<> opcodes;
135 opcodes.DefCFA(Reg::X86_64Core(4), 8); // R4(RSP).
136 opcodes.Offset(Reg::X86_64Core(16), -8); // R16(RIP).
137 // core registers.
138 for (int reg = 0; reg < 16; reg++) {
139 if (reg == 4) {
140 // Stack pointer.
141 } else if (reg < 12 && reg != 3 && reg != 5) { // except EBX and EBP.
142 opcodes.Undefined(Reg::X86_64Core(reg));
143 } else {
144 opcodes.SameValue(Reg::X86_64Core(reg));
145 }
146 }
147 // fp registers.
148 for (int reg = 0; reg < 16; reg++) {
149 if (reg < 12) {
150 opcodes.Undefined(Reg::X86_64Fp(reg));
151 } else {
152 opcodes.SameValue(Reg::X86_64Fp(reg));
153 }
154 }
David Srbecky527c9c72015-04-17 21:14:10 +0100155 auto return_reg = Reg::X86_64Core(16); // R16(RIP).
David Srbeckyad5fa8c2015-05-06 18:27:35 +0100156 WriteDebugFrameCIE(is64bit, addr_type, return_reg,
157 opcodes, format, eh_frame);
David Srbecky3b9d57a2015-04-10 00:22:14 +0100158 return;
159 }
160 case kNone:
161 break;
162 }
163 LOG(FATAL) << "Can not write CIE frame for ISA " << isa;
164 UNREACHABLE();
165}
166
David Srbeckyad5fa8c2015-05-06 18:27:35 +0100167void WriteCFISection(const CompilerDriver* compiler,
168 const OatWriter* oat_writer,
169 ExceptionHeaderValueApplication address_type,
170 CFIFormat format,
171 std::vector<uint8_t>* debug_frame,
172 std::vector<uintptr_t>* debug_frame_patches,
173 std::vector<uint8_t>* eh_frame_hdr,
174 std::vector<uintptr_t>* eh_frame_hdr_patches) {
David Srbecky8dc73242015-04-12 11:40:39 +0100175 const auto& method_infos = oat_writer->GetMethodDebugInfo();
176 const InstructionSet isa = compiler->GetInstructionSet();
David Srbecky527c9c72015-04-17 21:14:10 +0100177
David Srbeckyad5fa8c2015-05-06 18:27:35 +0100178 // Write .eh_frame/.debug_frame section.
David Srbecky033d7452015-04-30 19:57:35 +0100179 std::map<uint32_t, size_t> address_to_fde_offset_map;
David Srbeckyad5fa8c2015-05-06 18:27:35 +0100180 size_t cie_offset = debug_frame->size();
181 WriteDebugFrameCIE(isa, address_type, format, debug_frame);
David Srbecky8dc73242015-04-12 11:40:39 +0100182 for (const OatWriter::DebugInfo& mi : method_infos) {
David Srbecky6d73c9d2015-05-01 15:00:40 +0100183 if (!mi.deduped_) { // Only one FDE per unique address.
184 const SwapVector<uint8_t>* opcodes = mi.compiled_method_->GetCFIInfo();
185 if (opcodes != nullptr) {
David Srbeckyad5fa8c2015-05-06 18:27:35 +0100186 address_to_fde_offset_map.emplace(mi.low_pc_, debug_frame->size());
187 WriteDebugFrameFDE(Is64BitInstructionSet(isa), cie_offset,
188 mi.low_pc_, mi.high_pc_ - mi.low_pc_,
189 opcodes, format, debug_frame, debug_frame_patches);
David Srbecky6d73c9d2015-05-01 15:00:40 +0100190 }
David Srbecky8dc73242015-04-12 11:40:39 +0100191 }
192 }
David Srbecky527c9c72015-04-17 21:14:10 +0100193
David Srbeckyad5fa8c2015-05-06 18:27:35 +0100194 if (format == DW_EH_FRAME_FORMAT) {
195 // Write .eh_frame_hdr section.
196 Writer<> header(eh_frame_hdr);
197 header.PushUint8(1); // Version.
198 // Encoding of .eh_frame pointer - libunwind does not honor datarel here,
199 // so we have to use pcrel which means relative to the pointer's location.
200 header.PushUint8(DW_EH_PE_pcrel | DW_EH_PE_sdata4);
201 // Encoding of binary search table size.
202 header.PushUint8(DW_EH_PE_udata4);
203 // Encoding of binary search table addresses - libunwind supports only this
204 // specific combination, which means relative to the start of .eh_frame_hdr.
205 header.PushUint8(DW_EH_PE_datarel | DW_EH_PE_sdata4);
206 // .eh_frame pointer - .eh_frame_hdr section is after .eh_frame section
207 const int32_t relative_eh_frame_begin = -static_cast<int32_t>(debug_frame->size());
208 header.PushInt32(relative_eh_frame_begin - 4U);
209 // Binary search table size (number of entries).
210 header.PushUint32(dchecked_integral_cast<uint32_t>(address_to_fde_offset_map.size()));
211 // Binary search table.
212 for (const auto& address_to_fde_offset : address_to_fde_offset_map) {
213 u_int32_t code_address = address_to_fde_offset.first;
214 int32_t fde_address = dchecked_integral_cast<int32_t>(address_to_fde_offset.second);
215 eh_frame_hdr_patches->push_back(header.data()->size());
216 header.PushUint32(code_address);
217 // We know the exact layout (eh_frame is immediately before eh_frame_hdr)
218 // and the data is relative to the start of the eh_frame_hdr,
219 // so patching isn't necessary (in contrast to the code address above).
220 header.PushInt32(relative_eh_frame_begin + fde_address);
221 }
David Srbecky033d7452015-04-30 19:57:35 +0100222 }
David Srbecky8dc73242015-04-12 11:40:39 +0100223}
224
David Srbecky3b9d57a2015-04-10 00:22:14 +0100225/*
226 * @brief Generate the DWARF sections.
227 * @param oat_writer The Oat file Writer.
228 * @param eh_frame Call Frame Information.
229 * @param debug_info Compilation unit information.
David Srbecky527c9c72015-04-17 21:14:10 +0100230 * @param debug_info_patches Address locations to be patched.
David Srbecky3b9d57a2015-04-10 00:22:14 +0100231 * @param debug_abbrev Abbreviations used to generate dbg_info.
232 * @param debug_str Debug strings.
233 * @param debug_line Line number table.
David Srbecky527c9c72015-04-17 21:14:10 +0100234 * @param debug_line_patches Address locations to be patched.
David Srbecky3b9d57a2015-04-10 00:22:14 +0100235 */
236void WriteDebugSections(const CompilerDriver* compiler,
David Srbecky527c9c72015-04-17 21:14:10 +0100237 const OatWriter* oat_writer,
David Srbecky3b9d57a2015-04-10 00:22:14 +0100238 std::vector<uint8_t>* debug_info,
David Srbecky527c9c72015-04-17 21:14:10 +0100239 std::vector<uintptr_t>* debug_info_patches,
David Srbecky3b9d57a2015-04-10 00:22:14 +0100240 std::vector<uint8_t>* debug_abbrev,
241 std::vector<uint8_t>* debug_str,
David Srbecky527c9c72015-04-17 21:14:10 +0100242 std::vector<uint8_t>* debug_line,
243 std::vector<uintptr_t>* debug_line_patches) {
David Srbecky3b9d57a2015-04-10 00:22:14 +0100244 const std::vector<OatWriter::DebugInfo>& method_infos = oat_writer->GetMethodDebugInfo();
245 const InstructionSet isa = compiler->GetInstructionSet();
David Srbecky3b9d57a2015-04-10 00:22:14 +0100246
David Srbecky626a1662015-04-12 13:12:26 +0100247 // Find all addresses (low_pc) which contain deduped methods.
248 // The first instance of method is not marked deduped_, but the rest is.
249 std::unordered_set<uint32_t> deduped_addresses;
250 for (auto it = method_infos.begin(); it != method_infos.end(); ++it) {
251 if (it->deduped_) {
252 deduped_addresses.insert(it->low_pc_);
253 }
254 }
255
David Srbecky799b8c42015-04-14 01:57:43 +0100256 // Group the methods into compilation units based on source file.
257 std::vector<std::vector<const OatWriter::DebugInfo*>> compilation_units;
258 const char* last_source_file = nullptr;
259 for (const auto& mi : method_infos) {
260 // Attribute given instruction range only to single method.
261 // Otherwise the debugger might get really confused.
262 if (!mi.deduped_) {
263 auto& dex_class_def = mi.dex_file_->GetClassDef(mi.class_def_index_);
264 const char* source_file = mi.dex_file_->GetSourceFile(dex_class_def);
265 if (compilation_units.empty() || source_file != last_source_file) {
266 compilation_units.push_back(std::vector<const OatWriter::DebugInfo*>());
267 }
268 compilation_units.back().push_back(&mi);
269 last_source_file = source_file;
270 }
271 }
272
David Srbecky3b9d57a2015-04-10 00:22:14 +0100273 // Write .debug_info section.
David Srbecky799b8c42015-04-14 01:57:43 +0100274 for (const auto& compilation_unit : compilation_units) {
275 uint32_t cunit_low_pc = 0xFFFFFFFFU;
276 uint32_t cunit_high_pc = 0;
277 for (auto method_info : compilation_unit) {
278 cunit_low_pc = std::min(cunit_low_pc, method_info->low_pc_);
279 cunit_high_pc = std::max(cunit_high_pc, method_info->high_pc_);
David Srbecky3b9d57a2015-04-10 00:22:14 +0100280 }
281
David Srbecky799b8c42015-04-14 01:57:43 +0100282 size_t debug_abbrev_offset = debug_abbrev->size();
283 DebugInfoEntryWriter<> info(false /* 32 bit */, debug_abbrev);
284 info.StartTag(DW_TAG_compile_unit, DW_CHILDREN_yes);
285 info.WriteStrp(DW_AT_producer, "Android dex2oat", debug_str);
286 info.WriteData1(DW_AT_language, DW_LANG_Java);
David Srbecky527c9c72015-04-17 21:14:10 +0100287 info.WriteAddr(DW_AT_low_pc, cunit_low_pc);
288 info.WriteAddr(DW_AT_high_pc, cunit_high_pc);
David Srbecky799b8c42015-04-14 01:57:43 +0100289 info.WriteData4(DW_AT_stmt_list, debug_line->size());
290 for (auto method_info : compilation_unit) {
291 std::string method_name = PrettyMethod(method_info->dex_method_index_,
292 *method_info->dex_file_, true);
293 if (deduped_addresses.find(method_info->low_pc_) != deduped_addresses.end()) {
294 method_name += " [DEDUPED]";
David Srbecky3b9d57a2015-04-10 00:22:14 +0100295 }
David Srbecky799b8c42015-04-14 01:57:43 +0100296 info.StartTag(DW_TAG_subprogram, DW_CHILDREN_no);
297 info.WriteStrp(DW_AT_name, method_name.data(), debug_str);
David Srbecky527c9c72015-04-17 21:14:10 +0100298 info.WriteAddr(DW_AT_low_pc, method_info->low_pc_);
299 info.WriteAddr(DW_AT_high_pc, method_info->high_pc_);
David Srbecky799b8c42015-04-14 01:57:43 +0100300 info.EndTag(); // DW_TAG_subprogram
David Srbecky3b9d57a2015-04-10 00:22:14 +0100301 }
David Srbecky799b8c42015-04-14 01:57:43 +0100302 info.EndTag(); // DW_TAG_compile_unit
David Srbecky799b8c42015-04-14 01:57:43 +0100303 WriteDebugInfoCU(debug_abbrev_offset, info, debug_info, debug_info_patches);
David Srbecky3b9d57a2015-04-10 00:22:14 +0100304
David Srbecky799b8c42015-04-14 01:57:43 +0100305 // Write .debug_line section.
306 std::vector<FileEntry> files;
307 std::unordered_map<std::string, size_t> files_map;
308 std::vector<std::string> directories;
309 std::unordered_map<std::string, size_t> directories_map;
310 int code_factor_bits_ = 0;
311 int dwarf_isa = -1;
312 switch (isa) {
313 case kArm: // arm actually means thumb2.
314 case kThumb2:
315 code_factor_bits_ = 1; // 16-bit instuctions
316 dwarf_isa = 1; // DW_ISA_ARM_thumb.
317 break;
318 case kArm64:
319 case kMips:
320 case kMips64:
321 code_factor_bits_ = 2; // 32-bit instructions
322 break;
323 case kNone:
324 case kX86:
325 case kX86_64:
326 break;
327 }
328 DebugLineOpCodeWriter<> opcodes(false /* 32bit */, code_factor_bits_);
David Srbecky527c9c72015-04-17 21:14:10 +0100329 opcodes.SetAddress(cunit_low_pc);
David Srbecky799b8c42015-04-14 01:57:43 +0100330 if (dwarf_isa != -1) {
331 opcodes.SetISA(dwarf_isa);
332 }
333 for (const OatWriter::DebugInfo* mi : compilation_unit) {
334 struct DebugInfoCallbacks {
335 static bool NewPosition(void* ctx, uint32_t address, uint32_t line) {
336 auto* context = reinterpret_cast<DebugInfoCallbacks*>(ctx);
337 context->dex2line_.push_back({address, static_cast<int32_t>(line)});
338 return false;
David Srbecky3b9d57a2015-04-10 00:22:14 +0100339 }
David Srbecky799b8c42015-04-14 01:57:43 +0100340 DefaultSrcMap dex2line_;
341 } debug_info_callbacks;
342
343 const DexFile* dex = mi->dex_file_;
344 if (mi->code_item_ != nullptr) {
345 dex->DecodeDebugInfo(mi->code_item_,
346 (mi->access_flags_ & kAccStatic) != 0,
347 mi->dex_method_index_,
348 DebugInfoCallbacks::NewPosition,
349 nullptr,
350 &debug_info_callbacks);
David Srbecky3b9d57a2015-04-10 00:22:14 +0100351 }
352
David Srbecky799b8c42015-04-14 01:57:43 +0100353 // Get and deduplicate directory and filename.
354 int file_index = 0; // 0 - primary source file of the compilation.
355 auto& dex_class_def = dex->GetClassDef(mi->class_def_index_);
356 const char* source_file = dex->GetSourceFile(dex_class_def);
357 if (source_file != nullptr) {
358 std::string file_name(source_file);
359 size_t file_name_slash = file_name.find_last_of('/');
360 std::string class_name(dex->GetClassDescriptor(dex_class_def));
361 size_t class_name_slash = class_name.find_last_of('/');
362 std::string full_path(file_name);
David Srbecky3b9d57a2015-04-10 00:22:14 +0100363
David Srbecky799b8c42015-04-14 01:57:43 +0100364 // Guess directory from package name.
365 int directory_index = 0; // 0 - current directory of the compilation.
366 if (file_name_slash == std::string::npos && // Just filename.
367 class_name.front() == 'L' && // Type descriptor for a class.
368 class_name_slash != std::string::npos) { // Has package name.
369 std::string package_name = class_name.substr(1, class_name_slash - 1);
370 auto it = directories_map.find(package_name);
371 if (it == directories_map.end()) {
372 directory_index = 1 + directories.size();
373 directories_map.emplace(package_name, directory_index);
374 directories.push_back(package_name);
375 } else {
376 directory_index = it->second;
377 }
378 full_path = package_name + "/" + file_name;
379 }
380
381 // Add file entry.
382 auto it2 = files_map.find(full_path);
383 if (it2 == files_map.end()) {
384 file_index = 1 + files.size();
385 files_map.emplace(full_path, file_index);
386 files.push_back(FileEntry {
387 file_name,
388 directory_index,
389 0, // Modification time - NA.
390 0, // File size - NA.
391 });
392 } else {
393 file_index = it2->second;
394 }
395 }
396 opcodes.SetFile(file_index);
397
398 // Generate mapping opcodes from PC to Java lines.
399 const DefaultSrcMap& dex2line_map = debug_info_callbacks.dex2line_;
David Srbecky799b8c42015-04-14 01:57:43 +0100400 if (file_index != 0 && !dex2line_map.empty()) {
401 bool first = true;
402 for (SrcMapElem pc2dex : mi->compiled_method_->GetSrcMappingTable()) {
403 uint32_t pc = pc2dex.from_;
404 int dex_pc = pc2dex.to_;
405 auto dex2line = dex2line_map.Find(static_cast<uint32_t>(dex_pc));
406 if (dex2line.first) {
407 int line = dex2line.second;
408 if (first) {
409 first = false;
410 if (pc > 0) {
411 // Assume that any preceding code is prologue.
412 int first_line = dex2line_map.front().to_;
413 // Prologue is not a sensible place for a breakpoint.
414 opcodes.NegateStmt();
David Srbecky527c9c72015-04-17 21:14:10 +0100415 opcodes.AddRow(mi->low_pc_, first_line);
David Srbecky799b8c42015-04-14 01:57:43 +0100416 opcodes.NegateStmt();
417 opcodes.SetPrologueEnd();
418 }
David Srbecky527c9c72015-04-17 21:14:10 +0100419 opcodes.AddRow(mi->low_pc_ + pc, line);
David Srbecky799b8c42015-04-14 01:57:43 +0100420 } else if (line != opcodes.CurrentLine()) {
David Srbecky527c9c72015-04-17 21:14:10 +0100421 opcodes.AddRow(mi->low_pc_ + pc, line);
David Srbecky3b9d57a2015-04-10 00:22:14 +0100422 }
David Srbecky3b9d57a2015-04-10 00:22:14 +0100423 }
424 }
David Srbecky799b8c42015-04-14 01:57:43 +0100425 } else {
426 // line 0 - instruction cannot be attributed to any source line.
David Srbecky527c9c72015-04-17 21:14:10 +0100427 opcodes.AddRow(mi->low_pc_, 0);
David Srbecky3b9d57a2015-04-10 00:22:14 +0100428 }
David Srbecky3b9d57a2015-04-10 00:22:14 +0100429 }
David Srbecky527c9c72015-04-17 21:14:10 +0100430 opcodes.AdvancePC(cunit_high_pc);
David Srbecky799b8c42015-04-14 01:57:43 +0100431 opcodes.EndSequence();
David Srbecky799b8c42015-04-14 01:57:43 +0100432 WriteDebugLineTable(directories, files, opcodes, debug_line, debug_line_patches);
David Srbecky3b9d57a2015-04-10 00:22:14 +0100433 }
David Srbecky3b9d57a2015-04-10 00:22:14 +0100434}
435
436} // namespace dwarf
437} // namespace art