aboutsummaryrefslogtreecommitdiff
path: root/src/common/dwarf/cfi_assembler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/dwarf/cfi_assembler.h')
-rw-r--r--src/common/dwarf/cfi_assembler.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/common/dwarf/cfi_assembler.h b/src/common/dwarf/cfi_assembler.h
index 4c9f57de..3f305030 100644
--- a/src/common/dwarf/cfi_assembler.h
+++ b/src/common/dwarf/cfi_assembler.h
@@ -31,7 +31,7 @@
// Original author: Jim Blandy <jimb@mozilla.com> <jimb@red-bean.com>
-// cfi-assembler.h: Define CFISection, a class for creating properly
+// cfi_assembler.h: Define CFISection, a class for creating properly
// (and improperly) formatted DWARF CFI data for unit tests.
#ifndef PROCESSOR_CFI_ASSEMBLER_H_
@@ -219,6 +219,19 @@ class CFISection: public Section {
Label start;
};
+ // Constants used in CFI/.eh_frame data:
+
+ // If the first four bytes of an "initial length" are this constant, then
+ // the data uses the 64-bit DWARF format, and the length itself is the
+ // subsequent eight bytes.
+ static const u_int32_t kDwarf64InitialLengthMarker = 0xffffffffU;
+
+ // The CIE identifier for 32- and 64-bit DWARF CFI and .eh_frame data.
+ static const u_int32_t kDwarf32CIEIdentifier = ~(u_int32_t)0;
+ static const u_int64_t kDwarf64CIEIdentifier = ~(u_int64_t)0;
+ static const u_int32_t kEHFrame32CIEIdentifier = 0;
+ static const u_int64_t kEHFrame64CIEIdentifier = 0;
+
// The size of a machine address for the data in this section.
size_t address_size_;