riscv: drop unused variable
[fw/openocd] / src / target / smp.h
index 3543bf5b4c9afae0d9917c7762a6808b86dfb8e1..f024b402352629d06adbda2cda03aa599bfa58ff 100644 (file)
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
+#ifndef OPENOCD_TARGET_SMP_H
+#define OPENOCD_TARGET_SMP_H
+
 #include "server/server.h"
 
+#define foreach_smp_target(pos, head) \
+       for (pos = head; (pos != NULL); pos = pos->next)
+
+extern const struct command_registration smp_command_handlers[];
+
 int gdb_read_smp_packet(struct connection *connection,
                char const *packet, int packet_size);
 int gdb_write_smp_packet(struct connection *connection,
                char const *packet, int packet_size);
 
+#endif /* OPENOCD_TARGET_SMP_H */