Use new OpenOCD messages to determine gdb port.
authorTim Newsome <tim@sifive.com>
Wed, 26 Jul 2017 14:56:35 +0000 (07:56 -0700)
committerTim Newsome <tim@sifive.com>
Wed, 26 Jul 2017 14:56:35 +0000 (07:56 -0700)
commita1609f1fbc6f3cebc9e7626bda9bd888a553662a
tree604df3d4d6ca58370a87449078f6dba1e0f6de0f
parent452f7bc39b33d71e3de12a5f866b3c14cd69501d
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.
debug/testlib.py