Use new OpenOCD messages to determine gdb port.
This is simpler and more reliable than playing around with lsof. Specifically, it works if the OpenOCD command is "strace openocd" while the previous code did not.
parent
452f7bc3
Please register or sign in to comment