Commit 914f978d authored by David Schulz's avatar David Schulz Committed by Christian Stenger
Browse files

Debugger: Fix dumper test when inferior runs under wow64.



When the inferior runs under wow64, DebugBreak throws a wow64 breakpoint.
These has to be ignored because they are also thrown on every 32 bit library
load. To make sure the debugger breaks DebugBreak is replaced by a null
pointer dereference.

Change-Id: I0c0985558da1c355c1fc62a2fc5f736e54e843ce
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent 73ec0c5d
......@@ -974,7 +974,7 @@ void tst_Dumpers::dumper()
"\n\n#if defined(_MSC_VER)" + (data.useQt ?
"\n#include <qt_windows.h>" :
"\n#include <Windows.h>") +
"\n#define BREAK do { DebugBreak(); } while (0)"
"\n#define BREAK int *nullPtr = 0; *nullPtr = 0;"
"\n#else"
"\n#define BREAK do { asm(\"int $3\"); } while (0)"
"\n#endif"
......@@ -1098,7 +1098,6 @@ void tst_Dumpers::dumper()
"l+s\n"
"sxi 0x4000001f\n"
"g\n"
"gu\n"
"!qtcreatorcdbext.expandlocals -t 0 -c 0 " + expanded + "\n";
int token = 0;
QStringList sortediNames;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment