1 //===-- DWARFDebugRanges.h --------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef SymbolFileDWARF_DWARFDebugRanges_h_
10 #define SymbolFileDWARF_DWARFDebugRanges_h_
12 #include "lldb/Core/dwarf.h"
16 namespace lldb_private {
20 class DWARFDebugRanges {
24 void Extract(lldb_private::DWARFContext &context);
25 bool FindRanges(const DWARFUnit *cu, dw_offset_t debug_ranges_offset,
26 DWARFRangeList &range_list) const;
28 static void Dump(lldb_private::Stream &s,
29 const lldb_private::DWARFDataExtractor &debug_ranges_data,
30 lldb::offset_t *offset_ptr, dw_addr_t cu_base_addr);
33 bool Extract(lldb_private::DWARFContext &context, lldb::offset_t *offset_ptr,
34 DWARFRangeList &range_list);
36 typedef std::map<dw_offset_t, DWARFRangeList> range_map;
37 typedef range_map::iterator range_map_iterator;
38 typedef range_map::const_iterator range_map_const_iterator;
39 range_map m_range_map;
42 #endif // SymbolFileDWARF_DWARFDebugRanges_h_