debugger: use breakpoint always-inserted in trk adapter

This commit is contained in:
hjk
2010-01-18 17:36:05 +01:00
parent 9f173acefe
commit b55259e2bd

View File

@@ -1103,9 +1103,9 @@ void TrkGdbAdapter::handleTrkResult(const TrkResult &result)
// target->host OS notification // target->host OS notification
case 0xa0: { // Notify Created case 0xa0: { // Notify Created
debugMessage(_("RESET SNAPSHOT (NOTIFY CREATED)"));
// Sending this ACK does not seem to make a difference. Why? // Sending this ACK does not seem to make a difference. Why?
//sendTrkAck(result.token); //sendTrkAck(result.token);
debugMessage(_("RESET SNAPSHOT (NOTIFY CREATED)"));
m_snapshot.reset(); m_snapshot.reset();
const char *data = result.data.data(); const char *data = result.data.data();
const byte error = result.data.at(0); const byte error = result.data.at(0);
@@ -1772,6 +1772,7 @@ void TrkGdbAdapter::handleCreateProcess(const TrkResult &result)
// + QByteArray::number(m_session.codeseg)); // + QByteArray::number(m_session.codeseg));
m_engine->postCommand("symbol-file \"" + symbolFile + "\""); m_engine->postCommand("symbol-file \"" + symbolFile + "\"");
} }
m_engine->postCommand("set breakpoint always-inserted on");
m_engine->postCommand("set trust-readonly-sections"); // No difference? m_engine->postCommand("set trust-readonly-sections"); // No difference?
m_engine->postCommand("set displaced-stepping on"); // No difference? m_engine->postCommand("set displaced-stepping on"); // No difference?
m_engine->postCommand("mem 0x00400000 0x00800000 cache"); m_engine->postCommand("mem 0x00400000 0x00800000 cache");