Debugging with OpenOCD
Make sure the following line is present in the .cfg file for your target:
Edit the port number if necessary. Specify that port in the process options and use the Debugger, Attach command.
GDB command line
to send commands directly to OpenOCD interperter.
Remote GDB Debugger