forked from qt-creator/qt-creator
debugger: hack to specify sysroot in generic remote linux
Change-Id: I9657f71246df4742329a0b4f27bf08f146e9632a Reviewed-on: http://codereview.qt-project.org/5534 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -4763,8 +4763,11 @@ void GdbEngine::setupInferior()
|
||||
const QByteArray debugInfoLocation = sp.debugInfoLocation.toLocal8Bit();
|
||||
if (!debugInfoLocation.isEmpty())
|
||||
postCommand("set debug-file-directory " + debugInfoLocation);
|
||||
// Spaces just will not work.
|
||||
foreach (const QString &src, sp.debugSourceLocation)
|
||||
postCommand("directory " + src.toLocal8Bit());
|
||||
postCommand("directory " + src.toLocal8Bit());
|
||||
if (!sp.solibSearchPath.isEmpty())
|
||||
postCommand("set solib-search-path " + sp.solibSearchPath.toLocal8Bit());
|
||||
m_gdbAdapter->setupInferior();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user