code: def run_gdb_command(message):
      
      controller = _state.get_controller_from_client_id(request.sid)
      if controller is not None:
          try:
              # the command (string) or commands (list) to run
              cmd = message["cmd"]
              controller.write(cmd, read_response=False)
  
          except Exception:
              err = traceback.format_exc()
              logger.error(err)
              emit("error_running_gdb_command", {"message": err})
      else:
          emit("error_running_gdb_command", {"message": "gdb is not running"})
docs: Endpoint for a websocket route.
      Runs a gdb command.
      Responds only if an error occurs when trying to write the command to
      gdb