Debugger: Fix QThread autotest with LLDB

Change-Id: I90e93a15b8280a55c31db6be28fe6eb39c7babb0
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2014-01-16 17:25:29 +01:00
parent 2e33624b80
commit 59a45ffa77
2 changed files with 10 additions and 3 deletions
+5 -1
View File
@@ -1543,11 +1543,15 @@ def testit():
db.process = db.target.Launch(listener, None, None, None, None,
None, None, 0, False, error)
stoppedThread = db.firstStoppedThread()
if stoppedThread:
db.process.SetSelectedThread(stoppedThread)
db.report = savedReport
ns = db.qtNamespace()
db.reportVariables()
db.report("@NS@%s@" % ns)
#db.report("DUMPER=%s" % qqDumpers)
#db.report("DUMPER=%s" % db.qqDumpers)
if __name__ == "__main__":
if len(sys.argv) > 2:
+5 -2
View File
@@ -976,9 +976,9 @@ void tst_Dumpers::dumper()
"\n\n#if defined(_MSC_VER)" + (data.useQt ?
"\n#include <qt_windows.h>" :
"\n#include <Windows.h>") +
"\n#define BREAK DebugBreak();"
"\n#define BREAK do { DebugBreak(); } while (0)"
"\n#else"
"\n#define BREAK asm(\"int $3\");"
"\n#define BREAK do { asm(\"int $3\"); } while (0)"
"\n#endif"
"\n"
"\n\n" + data.includes +
@@ -3680,6 +3680,9 @@ void tst_Dumpers::dumper_data()
" thread[i].m_id = i;\n"
" thread[i].setObjectName(\"This is thread #\" + QString::number(i));\n"
" thread[i].start();\n"
"}\n"
"for (int i = 0; i != N; ++i) {\n"
" thread[i].wait();\n"
"}\n")
% CoreProfile()
% CheckType("this", "Thread")