def METHOD_NAME(self, cmd=()):
    gdb_call = [self.gdb_binary, '-q',]
    for x in cmd:
        gdb_call.append('-ex')
        gdb_call.append(x)
    gdb_call.extend(['-ex', 'q'])
    return subprocess.run(gdb_call, capture_output=True, timeout=10,
                          text=True)