forked from qt-creator/qt-creator
debugger: remove outdated inactive code
Change-Id: I167a04c3500d0cb4bea1b5390c8920b93fc72ad0 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -1917,7 +1917,6 @@ QString GdbEngine::fullName(const QString &fileName)
|
|||||||
{
|
{
|
||||||
if (fileName.isEmpty())
|
if (fileName.isEmpty())
|
||||||
return QString();
|
return QString();
|
||||||
//QTC_ASSERT(!m_sourcesListOutdated, /* */);
|
|
||||||
QTC_ASSERT(!m_sourcesListUpdating, /* */);
|
QTC_ASSERT(!m_sourcesListUpdating, /* */);
|
||||||
return m_shortToFullName.value(fileName, QString());
|
return m_shortToFullName.value(fileName, QString());
|
||||||
}
|
}
|
||||||
@@ -4726,9 +4725,6 @@ void GdbEngine::startGdb(const QStringList &args)
|
|||||||
// Produces a few messages during symtab loading
|
// Produces a few messages during symtab loading
|
||||||
//postCommand("set verbose on");
|
//postCommand("set verbose on");
|
||||||
|
|
||||||
//postCommand("set substitute-path /var/tmp/qt-x11-src-4.5.0 "
|
|
||||||
// "/home/sandbox/qtsdk-2009.01/qt");
|
|
||||||
|
|
||||||
// one of the following is needed to prevent crashes in gdb on code like:
|
// one of the following is needed to prevent crashes in gdb on code like:
|
||||||
// template <class T> T foo() { return T(0); }
|
// template <class T> T foo() { return T(0); }
|
||||||
// int main() { return foo<int>(); }
|
// int main() { return foo<int>(); }
|
||||||
@@ -4747,9 +4743,6 @@ void GdbEngine::startGdb(const QStringList &args)
|
|||||||
// uninitialized variables).
|
// uninitialized variables).
|
||||||
postCommand("handle SIGSEGV nopass stop print");
|
postCommand("handle SIGSEGV nopass stop print");
|
||||||
|
|
||||||
// This is useful to kill the inferior whenever gdb dies.
|
|
||||||
//postCommand(_("handle SIGTERM pass nostop print"));
|
|
||||||
|
|
||||||
postCommand("set unwindonsignal on");
|
postCommand("set unwindonsignal on");
|
||||||
postCommand("set width 0");
|
postCommand("set width 0");
|
||||||
postCommand("set height 0");
|
postCommand("set height 0");
|
||||||
|
Reference in New Issue
Block a user