From: Simon Marchi Date: Thu, 29 Aug 2024 16:07:32 +0000 (-0400) Subject: gdb: include gdbsupport/gdb_obstack.h in addrmap.h X-Git-Tag: gdb-16-branchpoint~1037 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f70987f0b99ac81c458c26d41cb3c27a583a7061;p=thirdparty%2Fbinutils-gdb.git 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 --- diff --git a/gdb/addrmap.h b/gdb/addrmap.h index 5378b753760..abd1ee3d95f 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.