From: Mark Wielaard Date: Sat, 7 Dec 2024 00:37:53 +0000 (+0100) Subject: Include gdbsupport/gdb_vecs.h in gdb/s390-linux-nat.c X-Git-Tag: gdb-16-branchpoint~158 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fea53b8bb575871eaf258f5c3a407daf2d61e797;p=thirdparty%2Fbinutils-gdb.git 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. --- diff --git a/gdb/s390-linux-nat.c b/gdb/s390-linux-nat.c index 6b2b6f1bf31..0726536dda1 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 . */ +#include "gdbsupport/gdb_vecs.h" #include "extract-store-integer.h" #include "regcache.h" #include "inferior.h"