/* Filename-seen cache for the GNU debugger, GDB.
- Copyright (C) 1986-2017 Free Software Foundation, Inc.
+ Copyright (C) 1986-2021 Free Software Foundation, Inc.
This file is part of GDB.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#ifndef FILENAME_SEEN_CACHE_H
+#define FILENAME_SEEN_CACHE_H
+
#include "defs.h"
-#include "common/function-view.h"
+#include "gdbsupport/function-view.h"
/* Cache to watch for file names already seen. */
{
public:
filename_seen_cache ();
- ~filename_seen_cache ();
DISABLE_COPY_AND_ASSIGN (filename_seen_cache);
return 1;
};
- htab_traverse_noresize (m_tab, erased_cb, &callback);
+ htab_traverse_noresize (m_tab.get (), erased_cb, &callback);
}
private:
/* Table of files seen so far. */
- htab_t m_tab;
+ htab_up m_tab;
};
+
+#endif /* FILENAME_SEEN_CACHE_H */