aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2024-12-07 01:37:53 +0100
committerMark Wielaard <mark@klomp.org>2024-12-09 15:14:33 +0100
commitfea53b8bb575871eaf258f5c3a407daf2d61e797 (patch)
tree8401cb57d64bf04e070326dee48cffd6f1c204fa /gdb
parent038590b067bafb19ceec62f73fe0b41ec37e8236 (diff)
downloadbinutils-fea53b8bb575871eaf258f5c3a407daf2d61e797.zip
binutils-fea53b8bb575871eaf258f5c3a407daf2d61e797.tar.gz
binutils-fea53b8bb575871eaf258f5c3a407daf2d61e797.tar.bz2
Include gdbsupport/gdb_vecs.h in gdb/s390-linux-nat.c
Commit c8889b913175 ("gdb, gdbserver, gdbsupport: remove some unused gdb_vecs.h includes") removed gdbsupport/gdb_vecs.h from various header files. This caused an compile issue for gdb/s390-linux-nat.c ../../binutils-gdb/gdb/s390-linux-nat.c: In member function ‘virtual int s390_linux_nat_target::remove_watchpoint(CORE_ADDR, int, target_hw_bp_type, expression*)’: ../../binutils-gdb/gdb/s390-linux-nat.c:875:11: error: ‘unordered_remove’ was not declared in this scope 875 | unordered_remove (state->watch_areas, ix); | ^~~~~~~~~~~~~~~~ ../../binutils-gdb/gdb/s390-linux-nat.c: In member function ‘virtual int s390_linux_nat_target::remove_hw_breakpoint(gdbarch*, bp_target_info*)’: ../../binutils-gdb/gdb/s390-linux-nat.c:928:11: error: ‘unordered_remove’ was not declared in this scope 928 | unordered_remove (state->break_areas, ix); | ^~~~~~~~~~~~~~~~ Fix this by including gdbsupport/gdb_vecs.h in gdb/s390-linux-nat.c.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/s390-linux-nat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/s390-linux-nat.c b/gdb/s390-linux-nat.c
index 6b2b6f1..0726536 100644
--- a/gdb/s390-linux-nat.c
+++ b/gdb/s390-linux-nat.c
@@ -19,6 +19,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#include "gdbsupport/gdb_vecs.h"
#include "extract-store-integer.h"
#include "regcache.h"
#include "inferior.h"