Commit 4118d701 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Debugger[TRK]: Handle trace point requests of gdb 7.2+

Task-number: QTCREATORBUG-2315
parent 08ccda58
......@@ -520,7 +520,8 @@ const char *gdbQSupported =
"QStartNoAckMode+;"
"qXfer:libraries:read+;"
// "qXfer:auxv:read+;"
"qXfer:features:read+";
"qXfer:features:read+;"
"qRelocInsn-"; // Relocate instructions for trace (gdb 7.2+): Not supported.
// Answer to gdb "qXfer:features:read:target.xml:" request
// "l<target><architecture>symbianelf</architecture></target>"
......
......@@ -734,6 +734,17 @@ void TcfTrkGdbAdapter::handleGdbServerCommand(const QByteArray &cmd)
sendGdbServerMessage(Symbian::gdbQSupported);
}
// Tracepoint handling as of gdb 7.2 onwards
else if (cmd == "qTStatus") { // Tracepoints
sendGdbServerAck();
sendGdbServerMessage("T0;tnotrun:0", QByteArray("No trace experiment running"));
}
// Trace variables as of gdb 7.2 onwards
else if (cmd == "qTfV" || cmd == "qTsP" || cmd == "qTfP") {
sendGdbServerAck();
sendGdbServerMessage("l", QByteArray("No trace points"));
}
else if (cmd.startsWith("qThreadExtraInfo")) {
// $qThreadExtraInfo,1f9#55
sendGdbServerAck();
......
......@@ -630,6 +630,17 @@ void TrkGdbAdapter::handleGdbServerCommand(const QByteArray &cmd)
sendGdbServerMessage(Symbian::gdbQSupported);
}
// Tracepoint handling as of gdb 7.2 onwards
else if (cmd == "qTStatus") { // Tracepoints
sendGdbServerAck();
sendGdbServerMessage("T0;tnotrun:0", QByteArray("No trace experiment running"));
}
// Trace variables as of gdb 7.2 onwards
else if (cmd == "qTfV" || cmd == "qTsP" || cmd == "qTfP") {
sendGdbServerAck();
sendGdbServerMessage("l", QByteArray("No trace points"));
}
else if (cmd.startsWith("qThreadExtraInfo")) {
// $qThreadExtraInfo,1f9#55
sendGdbServerAck();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment