set pagination off set logging file gdb.txt set logging redirect on set logging on target extended-remote /dev/ttyACM0 attach 1 b main load r detach q y