]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: include gdbsupport/gdb_obstack.h in addrmap.h
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 29 Aug 2024 16:07:32 +0000 (12:07 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 29 Aug 2024 16:07:32 +0000 (12:07 -0400)
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

index 5378b753760a6a93ce02552b39c6c3cce057744d..abd1ee3d95f64f9290dc5f8b0ae371aa58d23c49 100644 (file)
@@ -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.