debugger: add option to search debug info in well-known locations

Change-Id: I16e32f0e44fc628c7dca5270083a9bb1050769c1
Reviewed-on: http://codereview.qt-project.org/5371
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-09-22 09:30:50 +02:00
committed by hjk
parent 3a110439e9
commit 85a1841f2c
6 changed files with 61 additions and 19 deletions

View File

@@ -4759,6 +4759,12 @@ void GdbEngine::setupInferior()
{
QTC_ASSERT(state() == InferiorSetupRequested, qDebug() << state());
showStatusMessage(tr("Setting up inferior..."));
const DebuggerStartParameters &sp = startParameters();
const QByteArray debugInfoLocation = sp.debugInfoLocation.toLocal8Bit();
if (!debugInfoLocation.isEmpty())
postCommand("set debug-file-directory " + debugInfoLocation);
foreach (const QString &src, sp.debugSourceLocation)
postCommand("directory " + src.toLocal8Bit());
m_gdbAdapter->setupInferior();
}