forked from qt-creator/qt-creator
Valgrind: Support vgdb
Change-Id: Id9f653a81d329494017653b8fc7ec9960e20dbcd Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -116,6 +116,7 @@ bool ValgrindPlugin::initialize(const QStringList &, QString *)
|
||||
addAutoReleasedObject(new ValgrindOptionsPage());
|
||||
|
||||
m_memcheckTool = new MemcheckTool(this);
|
||||
m_memcheckWithGdbTool = new MemcheckWithGdbTool(this);
|
||||
m_callgrindTool = new CallgrindTool(this);
|
||||
|
||||
ValgrindAction *action = 0;
|
||||
@@ -126,6 +127,10 @@ bool ValgrindPlugin::initialize(const QStringList &, QString *)
|
||||
QString memcheckToolTip = tr("Valgrind Analyze Memory uses the "
|
||||
"\"memcheck\" tool to find memory leaks.");
|
||||
|
||||
QString memcheckWithGdbToolTip = tr(
|
||||
"Valgrind Analyze Memory with GDB uses the \"memcheck\" tool to find memory leaks.\n"
|
||||
"When a problem is detected, the application is interrupted and can be debugged");
|
||||
|
||||
if (!Utils::HostOsInfo::isWindowsHost()) {
|
||||
action = new ValgrindAction(this);
|
||||
action->setId("Memcheck.Local");
|
||||
@@ -137,6 +142,16 @@ bool ValgrindPlugin::initialize(const QStringList &, QString *)
|
||||
action->setEnabled(false);
|
||||
AnalyzerManager::addAction(action);
|
||||
|
||||
action = new ValgrindAction(this);
|
||||
action->setId("MemcheckWithGdb.Local");
|
||||
action->setTool(m_memcheckWithGdbTool);
|
||||
action->setText(tr("Valgrind Memory Analyzer with GDB"));
|
||||
action->setToolTip(memcheckWithGdbToolTip);
|
||||
action->setMenuGroup(Constants::G_ANALYZER_TOOLS);
|
||||
action->setStartMode(StartLocal);
|
||||
action->setEnabled(false);
|
||||
AnalyzerManager::addAction(action);
|
||||
|
||||
action = new ValgrindAction(this);
|
||||
action->setId("Callgrind.Local");
|
||||
action->setTool(m_callgrindTool);
|
||||
|
||||
Reference in New Issue
Block a user