]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - source/Plugins/SymbolFile/DWARF/DWARFDebugRanges.h
Vendor import of stripped lldb trunk r256633:
[FreeBSD/FreeBSD.git] / source / Plugins / SymbolFile / DWARF / DWARFDebugRanges.h
1 //===-- DWARFDebugRanges.h --------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef SymbolFileDWARF_DWARFDebugRanges_h_
11 #define SymbolFileDWARF_DWARFDebugRanges_h_
12
13 #include "SymbolFileDWARF.h"
14 #include "DWARFDIE.h"
15
16 #include <map>
17
18 class DWARFDebugRanges
19 {
20 public:
21
22     DWARFDebugRanges();
23     ~DWARFDebugRanges();
24     void Extract(SymbolFileDWARF* dwarf2Data);
25     static void Dump(lldb_private::Stream &s, const lldb_private::DWARFDataExtractor& debug_ranges_data, lldb::offset_t *offset_ptr, dw_addr_t cu_base_addr);
26     bool FindRanges(dw_offset_t debug_ranges_offset, DWARFRangeList& range_list) const;
27
28 protected:
29
30     bool
31     Extract (SymbolFileDWARF* dwarf2Data, 
32              lldb::offset_t *offset_ptr, 
33              DWARFRangeList &range_list);
34
35     typedef std::map<dw_offset_t, DWARFRangeList>   range_map;
36     typedef range_map::iterator                     range_map_iterator;
37     typedef range_map::const_iterator               range_map_const_iterator;
38     range_map m_range_map;
39 };
40
41
42 #endif  // SymbolFileDWARF_DWARFDebugRanges_h_