debugger: compile fix for manual tests

Change-Id: I7e192f62623e7fe4bcbf0163a1e7440acf9c01b5
Reviewed-on: http://codereview.qt.nokia.com/3578
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-08-25 10:56:00 +02:00
committed by hjk
parent bbe4cb24a5
commit 716ab646de

View File

@@ -194,9 +194,8 @@ namespace multibp {
: m_size(size), m_data(new T[size])
{
BREAK_HERE;
int i = a // <== Set a manual breakpoint here.
// Check there are multiple entries in the Breakpoint vie.
dummyStatement(&this);
dummyStatement(this);
}
~Vector() { delete [] m_data; }
int size() const { return m_size; }
@@ -205,7 +204,6 @@ namespace multibp {
T *m_data;
};
void testMultiBp()
{
Vector<int> vi(10);
@@ -324,7 +322,7 @@ namespace peekandpoke {
pain.drawEllipse(120, 70, 15, 15);
BREAK_HERE;
pain.end();
dummyStatement(&s);
dummyStatement(&pain);
}
void testPeekAndPoke3()
@@ -2794,10 +2792,12 @@ namespace basic {
dummyStatement(&ba);
}
void testFunctionPointerHelper() {}
void testFunctionPointer()
{
typedef void (*func_t)();
func_t f2 = testPeekAndPoke3;
func_t f2 = testFunctionPointerHelper;
BREAK_HERE;
// Check there's a valid display for f2.
dummyStatement(&f2);