]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdbserver/server.cc
Do not cast away const in agent_run_command
[thirdparty/binutils-gdb.git] / gdbserver / server.cc
index 21fb51a45d1644cc7f01c67a4b09025c0b019474..46dfe70838b906ca93424e9920ff71db52218dac 100644 (file)
 #include "gdbsupport/scoped_restore.h"
 #include "gdbsupport/search.h"
 
+/* PBUFSIZ must also be at least as big as IPA_CMD_BUF_SIZE, because
+   the client state data is passed directly to some agent
+   functions.  */
+gdb_static_assert (PBUFSIZ >= IPA_CMD_BUF_SIZE);
+
 #define require_running_or_return(BUF)         \
   if (!target_running ())                      \
     {                                          \