aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2024-08-29 12:07:32 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2024-08-29 12:07:32 -0400
commitf70987f0b99ac81c458c26d41cb3c27a583a7061 (patch)
treecbd0d2e998a33daee50f6a5eec344d241c90f1d0
parentae60acec423849c2cb088034fa107e309abecf8b (diff)
downloadbinutils-f70987f0b99ac81c458c26d41cb3c27a583a7061.zip
binutils-f70987f0b99ac81c458c26d41cb3c27a583a7061.tar.gz
binutils-f70987f0b99ac81c458c26d41cb3c27a583a7061.tar.bz2
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
-rw-r--r--gdb/addrmap.h3
1 files changed, 2 insertions, 1 deletions
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.