Commit Graph

203 Commits

Author SHA1 Message Date
hjk
7aa677c4e5 debugger: fix QObject property dumper by using workaround
As suggested by Tom T. in http://sourceware.org/bugzilla/show_bug.cgi?id=11912
(cherry picked from commit f52a88a074)

Conflicts:

	share/qtcreator/gdbmacros/dumper.py
2010-08-17 16:32:59 +02:00
hjk
7788e95ee9 debugger: fix display of arrays of types that gdb forgot about
(cherry picked from commit a1f2638c5f)

Conflicts:

	share/qtcreator/gdbmacros/dumper.py
2010-08-17 15:52:01 +02:00
hjk
a1f2638c5f debugger: fix display of arrays of types that gdb forgot about 2010-08-17 15:33:28 +02:00
hjk
e8eea80c3f debugger: next attempt at robustly recognizing QObjects 2010-08-17 14:14:47 +02:00
hjk
0e3ac0beb7 debugger: improved workaround for http://sourceware.org/bugzilla/show_bug.cgi?id=11912 2010-08-17 11:59:59 +02:00
hjk
f52a88a074 debugger: fix QObject property dumper by using workaround
As suggested by Tom T. in http://sourceware.org/bugzilla/show_bug.cgi?id=11912
2010-08-17 11:24:59 +02:00
Friedemann Kleint
faa38be87c Debugger[Python]: Deactivate QObject-Properties temporarily
due to it causing Windows gdb to crash.
Reviewed-by: hjk
2010-08-13 14:50:39 +02:00
hjk
497c5191e7 debugger: make dumper work with references to QObject derived classes. 2010-08-13 13:46:38 +02:00
hjk
b1e1692e23 debugger: remove dead code 2010-08-13 13:18:02 +02:00
hjk
b5579bbaf4 debugger: make QObject dumper more robust when QtCore has no debug info 2010-08-13 13:18:02 +02:00
hjk
64e4a8f7ae Merge remote branch 'origin/2.0'
Conflicts:
	share/qtcreator/gdbmacros/dumper.py
	share/qtcreator/gdbmacros/gdbmacros.py
	src/plugins/projectexplorer/customwizard/customwizardparameters.cpp
2010-08-13 11:19:44 +02:00
hjk
ada42e7ee8 debugger: merge 'enum' handling with that of simple types if appropriate 2010-08-13 11:00:24 +02:00
hjk
e38dc51691 debugger: speedup dumper by using integer comparisons for simple types 2010-08-13 11:00:21 +02:00
hjk
ae55b43c37 debugger: fix display of QObject properties
This is a backport of 5d645bfdfe
2010-08-13 09:57:35 +02:00
hjk
5d645bfdfe debugger: fix display of QObject properties 2010-08-13 09:31:07 +02:00
hjk
aeb6479d73 debugger: try long(p) == 0 as null-check for pointers as suggested by Tom T. 2010-08-12 15:27:31 +02:00
hjk
3f36dbd81a debugger: simplify code for inserting new watchitems 2010-07-23 18:20:13 +02:00
hjk
cc0130373d debugger: try to give more error details from the python dumpers in the debugger log 2010-07-21 08:44:54 +02:00
hjk
67e263deff debugger: re-enable repeated extraction of current namespace
More stable. Needs deeper investigation for a proper solution.
2010-07-20 18:59:51 +02:00
hjk
9f8b5af3b2 debugger: make parsing of cli-style commands in python more robust 2010-07-15 14:54:43 +02:00
hjk
87fc54faca debugger: code cosmetics 2010-07-14 17:49:17 +02:00
hjk
47fee37832 debugger: extract the Qt namespace even if the inferior is not runnable
That enables the python dumpers for namespaced Qt even for core files.
2010-07-14 17:49:17 +02:00
hjk
574862ac9f debugger: disable some debug messages 2010-07-14 17:49:17 +02:00
hjk
3fcafefa9e debugger: work around failing gdb.lookup_type for arrays.
see http://sourceware.org/bugzilla/show_bug.cgi?id=11797
2010-07-14 17:49:16 +02:00
con
d24d01f49c Merge commit '52b9fcca2ddd5d5e95c6e13cbded018699c7dd68' (origin/2.0)
Conflicts:
	src/plugins/debugger/debuggeragents.cpp
	src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationstep.cpp
	src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationstep.h
	src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationwidget.cpp
	src/plugins/qt4projectmanager/qt-maemo/maemosshthread.cpp
	src/plugins/qt4projectmanager/qt-maemo/maemosshthread.h
2010-07-13 11:31:05 +02:00
hjk
ff6736fade debugger: work aroung gdb/python type lookup for arrays 2010-07-12 17:14:46 +02:00
hjk
7eedfb72bc debugger: improve robustness in the presence of outdated debug information 2010-07-09 10:59:52 +02:00
con
1a2a4f6387 Merge remote branch 'origin/2.0'
Conflicts:
	share/qtcreator/gdbmacros/dumper.py
	src/libs/qmljs/qmljs-lib.pri
	src/plugins/fakevim/fakevimhandler.cpp
2010-07-06 15:34:50 +02:00
hjk
5cd3afcd84 debugger: remove some debug output 2010-07-06 14:24:54 +02:00
hjk
bcdcbc2f70 debugger: backport small fixes and synchronized code layout with master 2010-07-06 12:44:32 +02:00
hjk
1ce66f8d7a debugger: fix list of members in case gdb reports '_class_ SomeClass' 2010-07-06 10:51:50 +02:00
hjk
9aa75a7f1e debugger: cache results of gdb.lookup_type 2010-07-06 10:47:41 +02:00
hjk
d0c2e11a95 debugger: also strip 'enum' before looking up types 2010-07-05 17:08:55 +02:00
hjk
bb8aed629f debugger: make type lookup more robust
... by stripping out 'const', 'volatile', 'struct' and 'class'.
2010-07-02 11:18:39 +02:00
hjk
f01980e6c6 debugger: work around gdb bug http://sourceware.org/bugzilla/show_bug.cgi?id=11777 2010-07-01 09:37:28 +02:00
hjk
982ada02d0 debugger: don't try to deref void pointers in dumpers 2010-07-01 08:56:33 +02:00
con
ede2a7c975 Merge remote branch 'origin/2.0'
Conflicts:
	doc/qtcreator.qdoc
	share/qtcreator/gdbmacros/dumper.py
	src/libs/qmljs/qmljs-lib.pri
	src/plugins/debugger/breakhandler.cpp
	src/plugins/projectexplorer/projectexplorer.h
	src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationstep.cpp
	src/plugins/qt4projectmanager/qt-maemo/maemopackagecreationstep.h
2010-06-30 14:25:09 +02:00
hjk
5adefac634 debuggger: fix dumping of array of string types 2010-06-29 12:02:02 +02:00
hjk
d69a12a10c debugger: fix array dumpers 2010-06-29 10:58:29 +02:00
hjk
fdc5ac7f4d debugger: fix array dumper 2010-06-29 10:10:08 +02:00
hjk
060385b41c debugger: make QVector dumper show address of elements.
Also speed up dumping a bit by using 'put' instead of 'putField' when
appropriate.
2010-06-28 14:07:16 +02:00
hjk
0ae5286a4a debugger: fix display of typedefs-of-typedefs, such as qulonglong 2010-06-28 11:45:08 +02:00
hjk
d059459d9f debugger: make qulonglong visible in Local&Watchers
Only one level of typedef was stripped, but qulonglong has two.
2010-06-28 10:30:18 +02:00
hjk
6493b4853d debugger: adjust loading/saving of watched expressions to recent changes 2010-06-25 10:21:39 +02:00
hjk
eb75f40a98 debugger: allow per item selection of display method in Locals&Watchers 2010-06-25 09:16:55 +02:00
hjk
658a22766d debugger: remove special case for char * python dumpers.
This is handled by the generic pointer case nowadays and was (now) wrong
as it was impossible to see the 'bald pointer' version of it.
2010-06-23 16:30:42 +02:00
hjk
6a6cba5518 debugger: The DebuggerEngine refactoring.
This replaces the (de facto) singleton engines and data handlers by classes
that are instantiated per run. The DebuggerRunControl will now create an
object of (a class derived from) DebuggerEngine that contains all the relevant
"dynamic" data.

DebuggerManager is no more. The "singleton" bits are merged into DebuggerPlugin,
whereas the data bits went to DebuggerEngine.

There is no formal notion of a "current" DebuggerEngine. However, as there's
only one DebuggerEngine at a time that has its data models connected to the
view, there's still some "de facto" notion of a "current" engine. Calling
SomeModel::setData(int role, QVariant data) with custom role is used as the
primary dispatch mechanism from the views to the "current" data models
(and the engine, as all data models know their engine).
2010-06-22 10:59:57 +02:00
hjk
628cf52f94 debugger: add an option to filter out locals for easier debugger debugging 2010-06-14 10:45:10 +02:00
hjk
6982f8b157 debugger: "compile fix" for watchers part of python dumping after recent
refactoring
2010-06-11 12:23:03 +02:00
hjk
c4d8d17b61 debugger: make profiling the python dumpers _really_ optional 2010-06-10 15:39:39 +02:00