From 04b0526d60de4e9979fc486d2ba655247d211d0b Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Mon, 9 Nov 2015 18:05:48 +0000 Subject: Encode function signatures properly in DWARF. The signatures were previously stored as plain string. The proper way in DWARF is to store them as structured tree of tags. (for example, DW_TAG_subprogram containing DW_TAG_formal_parameter) Note that this makes the debug sections smaller since DWARF signatures are actually more efficient than just plain strings. Change-Id: I6afbce28340570666d8674d07c0e324aad561dd5 --- compiler/dwarf/headers.h | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/dwarf/headers.h') diff --git a/compiler/dwarf/headers.h b/compiler/dwarf/headers.h index 633e2f7d88..c75aeacabd 100644 --- a/compiler/dwarf/headers.h +++ b/compiler/dwarf/headers.h @@ -138,6 +138,7 @@ void WriteDebugInfoCU(uint32_t debug_abbrev_offset, writer.PushUint32(debug_abbrev_offset); writer.PushUint8(entries.Is64bit() ? 8 : 4); size_t entries_offset = writer.data()->size(); + DCHECK_EQ(entries_offset, DebugInfoEntryWriter::kCompilationUnitHeaderSize); writer.PushData(*entries.data()); writer.UpdateUint32(start, writer.data()->size() - start - 4); // Copy patch locations and make them relative to .debug_info section. -- cgit v1.2.3-59-g8ed1b