Qt's bootstrapped applications (such as moc and qmake) are built in a way
that is incompatible with the default build of the debugging helpers. To
- work around this, add gdbmacros.cpp to the compiled sources in the
+ work around this, add \c{dumper.cpp} to the compiled sources in the
application Makefile.
Choose \gui {Tools > Options > Debugger > Debugging Helper > Use debugging
#else
-# include "gdbmacros_p.h"
+# include "dumper_p.h"
#endif // QT_BOOTSTRAPPED
CONFIG -= release
CONFIG += debug
}
-SOURCES = gdbmacros.cpp
+SOURCES = dumper.cpp
false {
DEFINES += USE_QT_GUI=0
QT = core
gui
}
exists($$QMAKE_INCDIR_QT/QtCore/private/qobject_p.h):DEFINES += HAS_QOBJECT_P_H
-HEADERS += gdbmacros_p.h
+HEADERS += dumper.h
TEMPLATE = app
SOURCES += main.cpp \
-../gdbmacros.cpp
+../dumper.cpp
exists($$QMAKE_INCDIR_QT/QtCore/private/qobject_p.h) {
DEFINES+=HAS_QOBJECT_P_H
schemes \
styles \
rss \
- gdbmacros \
+ dumper \
qmldesigner \
qmlicons \
qml \
Make sure you use something like
-SOURCES *= .../ide/main/bin/gdbmacros/gdbmacros.cpp
+SOURCES *= .../ide/main/bin/dumper/dumper.cpp
in your .pro file.</source>
<translation type="obsolete">Laděný spustitelný soubor neobsahuje informace potřebné pro hezké zobrazení datových typů Qt.
Ujistěte se, že používáte něco na způsob
-SOURCES *= .../ide/main/bin/gdbmacros/gdbmacros.cpp
+SOURCES *= .../ide/main/bin/dumper/dumper.cpp
ve svém .pro souboru.</translation>
</message>
Make sure you use something like
-SOURCES *= .../ide/main/bin/gdbmacros/gdbmacros.cpp
+SOURCES *= .../ide/main/bin/dumper/dumper.cpp
in your .pro file.</source>
<translation>El binario en depuración no contiene la información necesaria para desplegar tipos de datos de Qt.
Asegúrese de tener una línea como ésta
-SOURCES *= .../ide/main/bin/gdbmacros/gdbmacros.cpp
+SOURCES *= .../ide/main/bin/dumper/dumper.cpp
en su archivo .pro.</translation>
</message>
Make sure you use something like
-SOURCES *= .../ide/main/bin/gdbmacros/gdbmacros.cpp
+SOURCES *= .../ide/main/bin/dumper/dumper.cpp
in your .pro file.</source>
<translation type="obsolete">Le fichier binaire débogué ne contient pas les informations nécessaires pour l'affichage correct des types de données Qt.
Assurez-vous que vous utilisez quelque chose comme
-SOURCES *= .../ide/main/bin/gdbmacros/gdbmacros.cpp
+SOURCES *= .../ide/main/bin/dumper/dumper.cpp
dans votre fichier .pro.</translation>
</message>
Make sure you use something like
-SOURCES *= .../ide/main/bin/gdbmacros/gdbmacros.cpp
+SOURCES *= .../ide/main/bin/dumper/dumper.cpp
in your .pro file.</source>
<translation>A debuggolt bináris fájl nem tartalmazza a szükséges információkat a Qt adattípus megfelelő kijelzéséhez.(new line)
(new line)
Győzödjön meg róla, hogy valami hasonló van a(new line)
(new line)
-SOURCES *= .../ide/main/bin/gdbmacros/gdbmacros.cpp(new line)
+SOURCES *= .../ide/main/bin/dumper/dumper.cpp(new line)
(new line)
.pro fájlban.</translation>
</message>
Make sure you use something like
-SOURCES *= .../ide/main/bin/gdbmacros/gdbmacros.cpp
+SOURCES *= .../ide/main/bin/dumper/dumper.cpp
in your .pro file.</source>
<translation>L'eseguibile di cui si sta facendo il debug non contiene le informazioni necessarie alla visualizzazione dei tipi di dati Qt.
Puoi risolvere inserendo qualcosa tipo
-SOURCES *= .../ide/main/bin/gdbmacros/gdbmacros.cpp
+SOURCES *= .../ide/main/bin/dumper/dumper.cpp
nel tuo file .pro.</translation>
</message>
Make sure you use something like
-SOURCES *= .../ide/main/bin/gdbmacros/gdbmacros.cpp
+SOURCES *= .../ide/main/bin/dumper/dumper.cpp
in your .pro file.</source>
<translation type="obsolete">被调试的程序未包含用于正确显示Qt数据类型的信息。
请确保使用添加类似如下信息
-SOURCES *= .../ide/main/bin/gdbmacros/gdbmacros.cpp
+SOURCES *= .../ide/main/bin/dumper/dumper.cpp
到你的.pro文件中。</translation>
</message>
}
}
- // We pretend that the lastmodified of gdbmacros.cpp is 5 minutes before what the file system says
- // Because afer a installation from the package the modified dates of gdbmacros.cpp
- // and the actual library are close to each other, but not deterministic in one direction
+ // We pretend that the lastmodified of dumper.cpp is 5 minutes before what
+ // the file system says because afer a installation from the package the
+ // modified dates of dumper.cpp and the actual library are close to each
+ // other, but not deterministic in one direction.
if (sourcesModified.isValid())
sourcesModified = sourcesModified.addSecs(-300);
QT = core gui
}
-SOURCES += ../../../share/qtcreator/gdbmacros/gdbmacros.cpp
+SOURCES += ../../../share/qtcreator/dumper/dumper.cpp
QMap<QString, QString> oldShortToFull = m_shortToFullName;
m_shortToFullName.clear();
m_fullToShortName.clear();
- // "^done,files=[{file="../../../../bin/gdbmacros/gdbmacros.cpp",
- // fullname="/data5/dev/ide/main/bin/gdbmacros/gdbmacros.cpp"},
+ // "^done,files=[{file="../../../../bin/dumper/dumper.cpp",
+ // fullname="/data5/dev/ide/main/bin/dumper/dumper.cpp"},
GdbMi files = response.data.findChild("files");
foreach (const GdbMi &item, files.children()) {
GdbMi fullName = item.findChild("fullname");
void GdbEngine::loadPythonDumpers()
{
const QByteArray dumperSourcePath =
- Core::ICore::instance()->resourcePath().toLocal8Bit() + "/gdbmacros/";
+ Core::ICore::instance()->resourcePath().toLocal8Bit() + "/dumper/";
postCommand("python execfile('" + dumperSourcePath + "bridge.py')",
ConsoleCommand|NonCriticalResponse);
QTC_ASSERT(state() == EngineRunRequested, qDebug() << state());
showStatusMessage(tr("Running requested..."), 5000);
const QByteArray dumperSourcePath =
- Core::ICore::instance()->resourcePath().toLocal8Bit() + "/gdbmacros/";
+ Core::ICore::instance()->resourcePath().toLocal8Bit() + "/dumper/";
QString fileName = QFileInfo(startParameters().executable).absoluteFilePath();
postDirectCommand("import sys");
postDirectCommand("sys.argv.append('" + fileName.toLocal8Bit() + "')");
static inline QStringList validBinaryFilenames()
{
return QStringList()
- << QLatin1String("debug/gdbmacros.dll")
- << QLatin1String("libgdbmacros.dylib")
- << QLatin1String("libgdbmacros.so");
+ << QLatin1String("debug/dumper.dll")
+ << QLatin1String("libdumper.dylib")
+ << QLatin1String("libdumper.so");
}
QStringList DebuggingHelperLibrary::debuggingHelperLibraryDirectories(const QString &qtInstallData)
static QString sourcePath()
{
- return Core::ICore::instance()->resourcePath() + QLatin1String("/gdbmacros/");
+ return Core::ICore::instance()->resourcePath() + QLatin1String("/dumper/");
}
static QStringList sourceFileNames()
{
return QStringList()
- << QLatin1String("gdbmacros.cpp") << QLatin1String("gdbmacros_p.h")
- << QLatin1String("gdbmacros.h") << QLatin1String("gdbmacros.pro")
+ << QLatin1String("dumper.cpp") << QLatin1String("dumper_p.h")
+ << QLatin1String("dumper.h") << QLatin1String("dumper.pro")
<< QLatin1String("LICENSE.LGPL") << QLatin1String("LGPL_EXCEPTION.TXT");
}
bool DebuggingHelperLibrary::build(BuildHelperArguments arguments, QString *log, QString *errorMessage)
{
- arguments.proFilename = QLatin1String("gdbmacros.pro");
+ arguments.proFilename = QLatin1String("dumper.pro");
arguments.helperName = QCoreApplication::translate("ProjectExplorer::DebuggingHelperLibrary",
"GDB helper");
return buildHelper(arguments, log, errorMessage);
<< QList<ProjectExplorer::Task>()
<< QString();
QTest::newRow("note")
- << QString::fromLatin1("/home/dev/creator/share/qtcreator/gdbmacros/gdbmacros.cpp:1079: note: initialized from here")
+ << QString::fromLatin1("/home/dev/creator/share/qtcreator/dumper/dumper.cpp:1079: note: initialized from here")
<< OutputParserTester::STDERR
<< QString() << QString()
<< ( QList<ProjectExplorer::Task>()
<< Task(Task::Unknown,
QLatin1String("initialized from here"),
- QString::fromLatin1("/home/dev/creator/share/qtcreator/gdbmacros/gdbmacros.cpp"), 1079,
+ QString::fromLatin1("/home/dev/creator/share/qtcreator/dumper/dumper.cpp"), 1079,
Constants::TASK_CATEGORY_COMPILE))
<< QString();
QTest::newRow("static member function")
<< QStringList();
QTest::newRow("pass-trough note")
<< QStringList()
- << QString::fromLatin1("/home/dev/creator/share/qtcreator/gdbmacros/gdbmacros.cpp:1079: note: initialized from here")
+ << QString::fromLatin1("/home/dev/creator/share/qtcreator/dumper/dumper.cpp:1079: note: initialized from here")
<< OutputParserTester::STDERR
- << QString() << QString::fromLatin1("/home/dev/creator/share/qtcreator/gdbmacros/gdbmacros.cpp:1079: note: initialized from here\n")
+ << QString() << QString::fromLatin1("/home/dev/creator/share/qtcreator/dumper/dumper.cpp:1079: note: initialized from here\n")
<< QList<ProjectExplorer::Task>()
<< QString()
<< QStringList();
DEBUGGERDIR = $$IDE_SOURCE_TREE/src/plugins/debugger
UTILSDIR = $$IDE_SOURCE_TREE/src/libs
-MACROSDIR = $$IDE_SOURCE_TREE/share/qtcreator/gdbmacros
+MACROSDIR = $$IDE_SOURCE_TREE/share/qtcreator/dumper
SOURCES += \
$$DEBUGGERDIR/gdb/gdbmi.cpp \
- $$MACROSDIR/gdbmacros.cpp \
+ $$MACROSDIR/dumper.cpp \
tst_dumpers.cpp \
DEFINES += MACROSDEBUG
#undef private
#include "gdb/gdbmi.h"
-#include "gdbmacros.h"
-#include "gdbmacros_p.h"
+#include "dumper.h"
+#include "dumper_p.h"
#include "json.h"
// Case 2: Composite type.
// Case 1.1: Null pointer.
QSharedPointer<QString> compositePtr;
- // TODO: This case is not handled in gdbmacros.cpp (segfault!)
+ // TODO: This case is not handled in dumper.cpp (segfault!)
//dumpQSharedPointerHelper(compoistePtr);
// Case 1.2: Non-null pointer,
connect(&m_proc, SIGNAL(readyReadStandardError()),
this, SLOT(readStandardError()));
- m_proc.write("python execfile('../../../share/qtcreator/gdbmacros/dumper.py')\n");
- m_proc.write("python execfile('../../../share/qtcreator/gdbmacros/gdbmacros.py')\n");
+ m_proc.write("python execfile('../../../share/qtcreator/dumper/bridge.py')\n");
+ m_proc.write("python execfile('../../../share/qtcreator/dumper/dumper.py')\n");
+ m_proc.write("python execfile('../../../share/qtcreator/dumper/qttypes.py')\n");
m_proc.write("bbsetup\n");
m_proc.write("break breaker\n");
m_proc.write("handle SIGSTOP stop pass\n");
TEMPLATE = app
win32:DEFINES += _CRT_SECURE_NO_WARNINGS
-SOURCES += $$IDE_SOURCE_TREE/share/qtcreator/gdbmacros/gdbmacros.cpp
+SOURCES += $$IDE_SOURCE_TREE/share/qtcreator/dumper/dumper.cpp
SOURCES += main.cpp
void testFunction()
{
- // In order to use this, switch on the 'qDump__Function' in gdbmacros.py
+ // In order to use this, switch on the 'qDump__Function' in dumper.py
Function func("x", "sin(x)", 0, 1);
func.max = 10;
func.f = "cos(x)";