Lines 194-200
Link Here
|
194 |
// Try to detect if we have been attach via "target remote localhost:port" |
194 |
// Try to detect if we have been attach via "target remote localhost:port" |
195 |
// and set the state to be suspended. |
195 |
// and set the state to be suspended. |
196 |
try { |
196 |
try { |
197 |
CLICommand cmd = new CLICommand("info remote-process"); //$NON-NLS-1$ |
197 |
// In lieu of a specific query to find out the state of the target |
|
|
198 |
// we assume that we are in the suspended state if "info registers" |
199 |
// succeeds |
200 |
CLICommand cmd = new CLICommand("info registers"); //$NON-NLS-1$ |
198 |
session.postCommand(cmd); |
201 |
session.postCommand(cmd); |
199 |
MIInfo info = cmd.getMIInfo(); |
202 |
MIInfo info = cmd.getMIInfo(); |
200 |
if (info == null) { |
203 |
if (info == null) { |