From f70987f0b99ac81c458c26d41cb3c27a583a7061 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 29 Aug 2024 12:07:32 -0400 Subject: gdb: include gdbsupport/gdb_obstack.h in addrmap.h This header file uses auto_obstack, found in gdbsupport/gdb_obstack.h. This fixes an error shown when editing addrmap.h with clangd, and makes it so addrmap.h includes what it uses. Change-Id: I0b0c8d26638e2150fcb65c601098ed9df5a8945a --- gdb/addrmap.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdb/addrmap.h b/gdb/addrmap.h index 5378b75..abd1ee3 100644 --- a/gdb/addrmap.h +++ b/gdb/addrmap.h @@ -20,8 +20,9 @@ #ifndef ADDRMAP_H #define ADDRMAP_H -#include "splay-tree.h" #include "gdbsupport/function-view.h" +#include "gdbsupport/gdb_obstack.h" +#include "splay-tree.h" /* An address map is essentially a table mapping CORE_ADDRs onto GDB data structures, like blocks, symtabs, partial symtabs, and so on. -- cgit v1.1