aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/mapped-index.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/dwarf2/mapped-index.h')
-rw-r--r--gdb/dwarf2/mapped-index.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/gdb/dwarf2/mapped-index.h b/gdb/dwarf2/mapped-index.h
index 8bc81b4..1690690 100644
--- a/gdb/dwarf2/mapped-index.h
+++ b/gdb/dwarf2/mapped-index.h
@@ -1,6 +1,6 @@
/* Base class for mapped indices
- Copyright (C) 2021-2024 Free Software Foundation, Inc.
+ Copyright (C) 2021-2025 Free Software Foundation, Inc.
This file is part of GDB.
@@ -32,6 +32,11 @@ struct dwarf_scanner_base
virtual ~dwarf_scanner_base () = default;
DISABLE_COPY_AND_ASSIGN (dwarf_scanner_base);
+ /* Start the reading. This is only really relevant to the cooked
+ index; see cooked-index.h. */
+ virtual void start_reading ()
+ { }
+
/* Return a quick_symbol_functions instance that refers back to this
dwarf_scanner_base. */
virtual quick_symbol_functions_up make_quick_functions () const = 0;
@@ -60,8 +65,10 @@ struct dwarf_scanner_base
/* Look up ADDR, and return either the corresponding CU, or nullptr
if the address could not be found. */
- virtual dwarf2_per_cu_data *lookup (unrelocated_addr addr)
+ virtual dwarf2_per_cu *lookup (unrelocated_addr addr)
{ return nullptr; }
};
+using dwarf_scanner_base_up = std::unique_ptr<dwarf_scanner_base>;
+
#endif /* GDB_DWARF2_MAPPED_INDEX_H */