code: def _process_commands(self, commands):
          
          if commands is None:
              return
          for cmd_list in commands:
              try:
                  cmd_list = split_command_line(cmd_list)
                  cmd = cmd_list[0]
                  if cmd == 'gdb_port':
                      if len(cmd_list) < 2:
                          LOG.error("Missing port argument")
                      else:
                          self._args.port_number = int(cmd_list[1], base=0)
                  elif cmd == 'telnet_port':
                      if len(cmd_list) < 2:
                          LOG.error("Missing port argument")
                      else:
                          self._args.telnet_port = int(cmd_list[1], base=0)
                  elif cmd == 'echo':
                      self.echo_msg = ' '.join(cmd_list[1:])
                  else:
                      LOG.error("Unsupported command: %s" % ' '.join(cmd_list))
              except IndexError:
                  pass
docs: ! @brief Handle OpenOCD commands for compatibility.