Commit Graph

123 Commits

Author SHA1 Message Date
hjk
e2cfc0958e debugger: mark 'Null' QStrings() in pretty-printers 2009-11-20 10:11:21 +01:00
hjk
80a112f677 debugger: make QVariant dumper compile with QT_NO_SHORTCUT 2009-11-12 09:25:42 +01:00
hjk
5eadf2bef7 debugger: simplify QList dumper 2009-11-06 10:15:19 +01:00
hjk
c91aca64e6 debugger: fix item count for QLists with more than 1000 elements
Reviewed-by: Oswald Buddenhagen
2009-11-04 18:31:27 +01:00
Oswald Buddenhagen
36a4fddaf0 less confusing: use the data type which was meant 2009-10-30 17:47:51 +01:00
Oswald Buddenhagen
2eade14143 remove superfluous casts 2009-10-30 17:47:51 +01:00
Friedemann Kleint
0b37be6e22 Debugger: Completely replace C99 uintptr_t type by quintptr. 2009-10-30 09:16:27 +01:00
Friedemann Kleint
09f77930bc Debugger: Do not use C99 types for pointers in sprintf() formats.
Pointer fit into long or long long (Win64).
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
2009-10-29 15:13:49 +01:00
hjk
9d4b70053a debugger: allow NULL pointers in QList<Foo*> 2009-10-28 11:50:39 +01:00
Friedemann Kleint
6d9288118f Debugger: Add missing include for intptr-types. 2009-10-28 09:51:19 +01:00
hjk
695201b02d debugger: allow NULL pointers in QVector<Foo*> and QStack<Foo*> dumpers 2009-10-27 16:35:39 +01:00
Friedemann Kleint
65e13b7034 Debugger: Fix autotests on Windows
Format pointers consistently using 0x%[l]x in printf/scanf.
Remove %p formatting as the existence of the prefix 0x
is platform-dependent (missing with MSVC), which caused
a scanf error and thus dumper crash for QAbstractItem.
Reviewed-by: ck <qt-info@nokia.com>
2009-10-27 12:25:11 +01:00
Friedemann Kleint
3fd1e5b23f Debugger: Fix exit crash, dump QVariantList with gdb
Handle QVariantList within dumpers, as gdb does not resolve
typedefs. Disconnect the gdb process on exit, one more round
of event loop when quitting.
2009-10-27 09:51:14 +01:00
hjk
a06b3c15c8 debugger: remove two unused variables 2009-10-21 16:41:28 +02:00
Friedemann Kleint
82f47372c3 CDB: Add consistency checks to dumpers that avoid iterator asserts.
_HAS_ITERATOR_DEBUGGING asserts can cause the debugger to be in an
inconsistent state and should thus be avoided. Add checks on the
underlying red/black tree structures using friend helper classes.
2009-10-20 16:34:37 +02:00
Friedemann Kleint
9e10e11c9c CDB: Add further checking to avoid invalid set asserts.
Clear a failed call. _HAS_ITERATOR_DEBUGGING can unfortunately
not be turned off as it is not binary compatible with other code.
2009-10-19 16:44:07 +02:00
hjk
c79476e72f debbugger: fix item counts > 1000 in QVector dumper 2009-10-16 14:40:44 +02:00
ck
4ead5b7202 Debugger: Dumper fix.
- If NSX and NSY have quotes for the QT_NAMESPACE case, they need them
  for the non-namespace case too.
- Dumper autotest: Replace hard-coded namespace with compile-time
  dynamic one.
2009-10-14 12:59:39 +02:00
Friedemann Kleint
744febe01a Debugger/Dumpers: Perform checks on QList/QVector<RawPointer>.
Reviewed-by: hjk <qtc-committer@nokia.com>
2009-10-13 12:35:47 +02:00
Friedemann Kleint
8266c366a3 CDB: Make use of the improved debugger expression syntax
CDB can now handle sizeof(Class) and even expressions that
determine the offset of map node values (to some extent), may still
fail with templates). Format expressions accordingly, adapt
cached expressions.
Use gdbQuoteType depending on debugger type only.
Most important, do not evaluate each expression separately before
issuing the call, as ".call" can now do it on its own. Check for syntax
errors there and cache failing types as before.
2009-10-09 14:11:05 +02:00
Friedemann Kleint
1fad39c923 CDB: Fix dumper regression
- Do not deref d-ptr when checking on QVariants of PODS
- Make type/value fixing of dumper results more fine-grained
- Allow children in expandPtrToDumpage (QWidget-Pointers)
- Fix broken size cache (queuePrefix was empty)
- Compile
2009-10-02 15:17:50 +02:00
Sergey Belyashov
f0a30f4a9b Next try to fix pointer aliasing issue
Merge-request: 1562
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
2009-09-29 19:07:45 +02:00
Friedemann Kleint
caa164a4ab CDB: Use GdbMi parser for everything.
..preparing recursive dumpers. Add recursive parser to
watchutils.cpp Use insertBulkData() within CDB, add sizeof()
information for some Qt containers in order to be able to
dump QList<QList<KnownType> > .
2009-09-21 14:55:39 +02:00
Friedemann Kleint
603630fad6 Debugger: Use Gdbmi parser in CDB for parsing of protocol 1
Change dumper protocol 1 output not to contain type names as
hash keys (might contain blanks), use lists instead.
Start fixing autotests for 4.6.
2009-09-18 16:55:17 +02:00
Oswald Buddenhagen
1500914f5b fix pointer aliasing issue 2009-09-18 11:31:00 +02:00
hjk
80847e5551 debugger: disable not very useful QImage dumper for 1.3 2009-09-03 13:32:26 +02:00
hjk
b69fad927a debugger: fix child count in QAbstractItem dumpers 2009-09-03 13:26:38 +02:00
hjk
452f108ac7 debugger: fixes and improvements related to the Locals display
Split the concepts 'enabled' and 'editable' in the dumper output
Disable "<not in scope>" entries, also fix their type.
Fix glitch in type beautification for display
Find reason for failing bulk updates.
2009-08-31 16:05:55 +02:00
hjk
c7a48c67c0 debugger: revert accidentally commited changes in the dumpers 2009-08-28 17:37:48 +02:00
hjk
da76dcc32f debugger: the new pointer checks had been to aggressive. disable for now 2009-08-28 17:32:04 +02:00
hjk
27382f753c debuger: fix insertion of nested WatchData 2009-08-28 15:56:58 +02:00
hjk
75ade29466 debugger: allow dumpers to return children in more than one nesting level 2009-08-28 14:34:56 +02:00
hjk
9a5908bf8c debugger: small improvements to dumpers
Add a dumper for QStack. Also don't crash when accessing an uninitialized
pointer when the pointer looks bad to begin with.
2009-08-28 10:42:55 +02:00
hjk
b901b5013d debugger: fix type field in QHash dumper 2009-08-27 18:21:22 +02:00
hjk
1011450ca3 debugger: make list access in dumpers a bit more robust 2009-08-27 18:12:03 +02:00
hjk
786a0deb77 debugger: constify the address parameter passed to qDumpObjectData 2009-08-27 17:07:37 +02:00
hjk
9b34946f85 debugger: cosmetics of the dumper output 2009-08-27 16:52:14 +02:00
hjk
e195159f16 debugger: fix dumpers for QSharedPointer and QWeakPointer for the isNull() case 2009-08-26 16:49:05 +02:00
hjk
d79e8dc342 debugger: small fixes in the QObject dumper and autotest 2009-08-21 08:13:54 +02:00
hjk
a43bda6035 debugger: add dumpers for QPoint, QPointF, and QRectF 2009-08-21 08:13:50 +02:00
hjk
6a20960cad add dumper for QRect 2009-08-20 10:24:22 +02:00
hjk
93cbef8724 long live the king 2009-08-14 09:30:56 +02:00
hjk
71302eab8f debugger: re-enable all dumpers that are usable in bootstrapped applications 2009-08-13 13:18:32 +02:00
hjk
864dec490f debugger: make helpers compilable with QT_BOOTSTRAPPED 2009-08-12 17:34:40 +02:00
ck
49066c709a Debugger: Added auto test for QModelIndex dumper.
Also fixed a bug uncovered by the auto test.
2009-08-11 11:44:23 +02:00
ck
d5d53c746a Debugger: Fixed QMapNode dumper. 2009-08-10 16:59:15 +02:00
ck
0ab8f1ed46 Debugger: More dumper auto tests.
Added auto tests for QFileInfo, QHashNode and QLocale dumpers.
2009-08-07 15:28:54 +02:00
ck
99d4c0b2a9 Debugger: More dumper auto tests.
Added test for "QAbstractItem" and fixed bug uncovered by that.
2009-08-05 16:01:33 +02:00
ck
2721eb2371 Debugger: Added auto test to stay in sync with QObjectPrivate.
The compile-time solution introduced by 3a084ae8a2
was felt by some to be too intrusive, so I've integrated the check for
changes to QObjectPrivate into the auto test.
2009-08-04 15:38:31 +02:00
ck
3a084ae8a2 Dumper updates.
- Added auto test for QMap.
- Qt::UniqueConnection is not actually a connection type, so we
  don't treat it as one.
- The definition of QObjectPrivate keeps getting out of sync, so
  there now is a "static assertion" that causes a compile error
  when QObjectPrivate's size changes.
2009-08-04 12:23:26 +02:00