debugger: unify naming of sysroot related variables and function

Change-Id: I77dd74ba7260622d9fec6cfca4a06d0f817495d8
Reviewed-on: http://codereview.qt.nokia.com/212
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-05-30 12:56:26 +02:00
committed by hjk
parent ef19691309
commit 2761e8da5a
8 changed files with 31 additions and 31 deletions

View File

@@ -164,10 +164,10 @@ void CoreGdbAdapter::setupInferior()
QTC_ASSERT(state() == InferiorSetupRequested, qDebug() << state());
// Do that first, otherwise no symbols are loaded.
QFileInfo fi(m_executable);
const QByteArray sysRoot = startParameters().sysRoot.toLocal8Bit();
const QByteArray sysroot = startParameters().sysroot.toLocal8Bit();
QByteArray path = fi.absoluteFilePath().toLocal8Bit();
if (!sysRoot.isEmpty())
m_engine->postCommand("set sysroot " + sysRoot);
if (!sysroot.isEmpty())
m_engine->postCommand("set sysroot " + sysroot);
m_engine->postCommand("-file-exec-and-symbols \"" + path + '"',
CB(handleFileExecAndSymbols));
}