return true;
}
-static bool couldBePointer(const void *p)
-{
- // we assume valid pointer to be 4-aligned at least.
- // So use this check only when this is guaranteed.
- // FIXME: this breaks e.g. in the QString dumper...
- const quintptr d = quintptr(p);
- //qDebug() << "CHECKING : " << p << ((d & 3) == 0 && (d > 1000 || d == 0));
- //return (d & 3) == 0 && (d > 1000 || d == 0);
- return d > 1000 || d == 0;
-}
-
// Check memory for read access and provoke segfault if nothing else helps.
// On Windows, try to be less crash-prone by checking memory using WinAPI
qProvokeSegFaultHelper = *(char*)d; \
} while (0)
+static bool couldBePointer(const void *p)
+{
+ // we assume valid pointer to be 4-aligned at least.
+ // So use this check only when this is guaranteed.
+ // FIXME: this breaks e.g. in the QString dumper...
+ const quintptr d = quintptr(p);
+ //qDebug() << "CHECKING : " << p << ((d & 3) == 0 && (d > 1000 || d == 0));
+ //return (d & 3) == 0 && (d > 1000 || d == 0);
+ return d > 1000 || d == 0;
+}
+
#endif
#ifdef QT_NAMESPACE
//
///////////////////////////////////////////////////////////////////////
+#ifndef Q_OS_WIN
+
static bool isUnixProcessId(const QString &procname)
{
for (int i = 0; i != procname.size(); ++i)
}
return rc;
}
+#endif // Q_OS_WIN
static QList<ProcData> processList()
{