]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Include gdbsupport/gdb_vecs.h in gdb/s390-linux-nat.c
authorMark Wielaard <mark@klomp.org>
Sat, 7 Dec 2024 00:37:53 +0000 (01:37 +0100)
committerMark Wielaard <mark@klomp.org>
Mon, 9 Dec 2024 14:14:33 +0000 (15:14 +0100)
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.

gdb/s390-linux-nat.c

index 6b2b6f1bf31500bbbfd37ca38480196781001cc0..0726536dda1ad2511d6ec2dccd42841196daa7dc 100644 (file)
@@ -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"