forked from qt-creator/qt-creator
debugger: make list access in dumpers a bit more robust
This commit is contained in:
@@ -839,7 +839,7 @@ void QDumper::putHash(const char *name, QChar value)
|
||||
endHash();
|
||||
}
|
||||
|
||||
#define DUMPUNKNOWN_MESSAGE "<internal error>"
|
||||
#define DUMPUNKNOWN_MESSAGE "<not in scope>"
|
||||
static void qDumpUnknown(QDumper &d, const char *why = 0)
|
||||
{
|
||||
//d.putItem("iname", d.iname);
|
||||
@@ -1570,6 +1570,10 @@ static void qDumpQList(QDumper &d)
|
||||
qCheckAccess(ldata.d->array);
|
||||
//qCheckAccess(ldata.d->array[0]);
|
||||
//qCheckAccess(ldata.d->array[nn - 1]);
|
||||
if (ldata.d->begin < 0)
|
||||
return;
|
||||
if (ldata.d->begin > ldata.d->end)
|
||||
return;
|
||||
#if QT_VERSION >= 0x040400
|
||||
if (ldata.d->ref._q_value <= 0)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user