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