debugger: cosmetics

This commit is contained in:
hjk
2010-11-04 18:19:33 +01:00
parent 91ba3949d5
commit 702e9f3fb9
2 changed files with 6 additions and 7 deletions
-6
View File
@@ -79,12 +79,6 @@ const char * const DOCKWIDGET_QML_SCRIPTCONSOLE = "Debugger.Docks.ScriptConsole"
namespace Internal {
enum { debug = 0 };
#ifdef Q_OS_MAC
const char * const LD_PRELOAD_ENV_VAR = "DYLD_INSERT_LIBRARIES";
#else
const char * const LD_PRELOAD_ENV_VAR = "LD_PRELOAD";
#endif
} // namespace Internal
const char * const OPENED_BY_DEBUGGER = "OpenedByDebugger";
+6 -1
View File
@@ -1548,8 +1548,13 @@ void GdbEngine::pythonDumpersFailed()
if (m_gdbAdapter->dumperHandling()
== AbstractGdbAdapter::DumperLoadedByGdbPreload
&& checkDebuggingHelpersClassic()) {
#ifdef Q_OS_MAC
const char * const LD_PRELOAD_ENV_VAR = "DYLD_INSERT_LIBRARIES";
#else
const char * const LD_PRELOAD_ENV_VAR = "LD_PRELOAD";
#endif
QByteArray cmd = "set environment ";
cmd += Debugger::Constants::Internal::LD_PRELOAD_ENV_VAR;
cmd += LD_PRELOAD_ENV_VAR;
cmd += ' ';
cmd += startParameters().startMode == StartRemoteGdb
? startParameters().remoteDumperLib