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.
Tips: Use the GDB command line to send commands directly to OpenOCD interpreter. Back to Remote GDB Debugger