aboutsummaryrefslogtreecommitdiff
path: root/src/common/dwarf/bytereader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/dwarf/bytereader.h')
-rw-r--r--src/common/dwarf/bytereader.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/common/dwarf/bytereader.h b/src/common/dwarf/bytereader.h
index 72dbb4cf..881f20b4 100644
--- a/src/common/dwarf/bytereader.h
+++ b/src/common/dwarf/bytereader.h
@@ -1,4 +1,6 @@
-// Copyright 2006 Google Inc. All Rights Reserved.
+// -*- mode: C++ -*-
+
+// Copyright 2010 Google Inc. All Rights Reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
@@ -104,6 +106,12 @@ class ByteReader {
// and will CHECK on anything else.
uint64 ReadAddress(const char* buffer) const;
+ // Read a DWARF2/3 initial length field from START, and report the
+ // length of the length field in LEN. Return the value of the length
+ // field. Set this reader's offset size as indicated by the length
+ // field's encoding.
+ uint64 ReadInitialLength(const char* start, size_t* len);
+
private:
// Function pointer type for our address and offset readers.