forked from qt-creator/qt-creator
		
	fix initial breakpoint setting
as it turns out, it is not possible to set pending breakpoints until gdb has loaded as image. so add some hooks to enable adapters to trigger the initial breakpoint syncing at the right time. do not add additional states (say, InferiorPreparing), as it would just complicate things.
This commit is contained in:
		| @@ -199,7 +199,7 @@ void RemoteGdbAdapter::handleTargetRemote(const GdbResponse &record) | ||||
|         // gdb server will stop the remote application itself. | ||||
|         debugMessage(_("INFERIOR STARTED")); | ||||
|         showStatusMessage(msgAttachedToStoppedInferior()); | ||||
|         m_engine->continueInferior(); | ||||
|         emit inferiorPrepared(); | ||||
|     } else { | ||||
|         // 16^error,msg="hd:5555: Connection timed out." | ||||
|         QString msg = msgConnectRemoteServerFailed(__(record.data.findChild("msg").data())); | ||||
| @@ -207,6 +207,11 @@ void RemoteGdbAdapter::handleTargetRemote(const GdbResponse &record) | ||||
|     } | ||||
| } | ||||
|  | ||||
| void RemoteGdbAdapter::startInferiorPhase2() | ||||
| { | ||||
|     m_engine->continueInferior(); | ||||
| } | ||||
|  | ||||
| void RemoteGdbAdapter::interruptInferior() | ||||
| { | ||||
|     m_engine->postCommand(_("-exec-interrupt")); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user