From a03ad5ae9119275661974f654eea242e8b19e8cb Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Wed, 8 Apr 2009 16:27:15 +0200 Subject: [PATCH] debugger: start work on new stand-alone test for debugging helpers --- tests/manual/gdbdebugger/helper/helper.pro | 5 +++++ tests/manual/gdbdebugger/helper/main.cpp | 19 +++++++++++++++++++ tests/manual/gdbdebugger/simple/app.cpp | 4 ++-- tests/manual/gdbdebugger/simple/app/app.pro | 1 + 4 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 tests/manual/gdbdebugger/helper/helper.pro create mode 100644 tests/manual/gdbdebugger/helper/main.cpp diff --git a/tests/manual/gdbdebugger/helper/helper.pro b/tests/manual/gdbdebugger/helper/helper.pro new file mode 100644 index 00000000000..57e1272b655 --- /dev/null +++ b/tests/manual/gdbdebugger/helper/helper.pro @@ -0,0 +1,5 @@ + +TEMPLATE = app + +SOURCES += ../../../../share/qtcreator/gdbmacros/gdbmacros.cpp +SOURCES += main.cpp diff --git a/tests/manual/gdbdebugger/helper/main.cpp b/tests/manual/gdbdebugger/helper/main.cpp new file mode 100644 index 00000000000..2c00c127803 --- /dev/null +++ b/tests/manual/gdbdebugger/helper/main.cpp @@ -0,0 +1,19 @@ + +#include <QApplication> + +extern "C" +void qDumpObjectData440( + int protocolVersion, + int token, + void *data, + bool dumpChildren, + int extraInt0, + int extraInt1, + int extraInt2, + int extraInt3); + +int main(int argc, char *argv[]) +{ + QApplication app(argc, argv); + return 0; +} diff --git a/tests/manual/gdbdebugger/simple/app.cpp b/tests/manual/gdbdebugger/simple/app.cpp index 3cdc0518db6..427cbf452fe 100644 --- a/tests/manual/gdbdebugger/simple/app.cpp +++ b/tests/manual/gdbdebugger/simple/app.cpp @@ -419,7 +419,7 @@ void testQObject(int &argc, char *argv[]) t += "y"; t += "y"; -/* +#if 1 QObject ob(&app); ob.setObjectName("An Object"); QObject ob1; @@ -434,7 +434,7 @@ void testQObject(int &argc, char *argv[]) obs.append(0); obs.append(&app); ob1.setObjectName("A Subobject"); -*/ +#endif QString str = QString::fromUtf8("XXXXXXXXXXXXXXyyXXX ö"); QLabel l(str); l.show(); diff --git a/tests/manual/gdbdebugger/simple/app/app.pro b/tests/manual/gdbdebugger/simple/app/app.pro index 2210857b6a2..4de736cad4f 100644 --- a/tests/manual/gdbdebugger/simple/app/app.pro +++ b/tests/manual/gdbdebugger/simple/app/app.pro @@ -6,6 +6,7 @@ DESTDIR = .. # Input SOURCES += ../app.cpp +#SOURCES += ../../../../../share/qtcreator/gdbmacros/gdbmacros.cpp QT += network message("this says <foo & bar>") -- GitLab