#!/usr/bin/env python3
import os
import subprocess

def main():
    run(['gdb', '--batch', '-ex=set print thread-events off', '-ex=run', '-ex=bt', '-ex=quit', '--args', './bin/client.exe' ])

def run(cmd):
    print(f"run: {cmd}")
    return subprocess.run(cmd, check=True)

if __name__ == "__main__":
    main()
