From 32681b482a3a38e240100ddd00280a3db5716874 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 16 Apr 2022 10:19:41 -0600 Subject: Remove psymtab_addrmap While working on addrmaps, I noticed that psymtab_addrmap is no longer needed now. It was introduced in ancient times as an optimization for DWARF, but no other symbol reader was ever updated to use it. Now that DWARF does not use psymtabs, it can be deleted. --- gdb/psymtab.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'gdb/psymtab.h') diff --git a/gdb/psymtab.h b/gdb/psymtab.h index 70eb3e2..68ef99e 100644 --- a/gdb/psymtab.h +++ b/gdb/psymtab.h @@ -121,17 +121,6 @@ public: struct partial_symtab *psymtabs = nullptr; - /* Map addresses to the entries of PSYMTABS. It would be more efficient to - have a map per the whole process but ADDRMAP cannot selectively remove - its items during FREE_OBJFILE. This mapping is already present even for - PARTIAL_SYMTABs which still have no corresponding full SYMTABs read. - - The DWARF parser reuses this addrmap to store things other than - psymtabs in the cases where debug information is being read from, for - example, the .debug-names section. */ - - struct addrmap *psymtabs_addrmap = nullptr; - /* A byte cache where we can stash arbitrary "chunks" of bytes that will not change. */ -- cgit v1.1