Commit Graph

121 Commits

Author SHA1 Message Date
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
hjk
f911d714fd debugger: make profiling the python dumpers optional 2010-06-10 15:36:13 +02:00
hjk
6d6c8e468f debugger: cache results of gdb.lookup_type 2010-06-10 15:11:38 +02:00
hjk
1cf7fbb6e6 debugger: refactor python dumper initialization 2010-06-10 15:11:38 +02:00
hjk
594d968662 debugger: prepare profiling of python dumpers 2010-06-10 14:45:31 +02:00
hjk
5806009d29 Merge remote branch 'origin/2.0'
Conflicts:
	doc/qtcreator.qdoc
	src/plugins/debugger/debuggermanager.cpp
	src/plugins/texteditor/basetexteditor.cpp
2010-06-02 09:57:23 +02:00
hjk
896907f78c debugger: be nicer in the presence of missing debug information 2010-06-01 14:33:26 +02:00
hjk
5805788290 Merge remote branch 'origin/2.0'
Conflicts:
	src/plugins/projectexplorer/miniprojecttargetselector.cpp
	src/plugins/qmldesigner/designercore/model/modeltotextmerger.cpp
	src/plugins/qmldesigner/designercore/model/rewriteactioncompressor.cpp
	src/plugins/qt4projectmanager/qt-maemo/maemosshthread.cpp
	src/plugins/qt4projectmanager/qt-maemo/maemosshthread.h
	tests/manual/gdbdebugger/simple/app.cpp
2010-05-27 11:11:53 +02:00
hjk
a45bfdc4e6 debugger: improve QVariant(QString) dumper
(partially cherry picked from commit dd714e9ccb)
2010-05-26 17:41:09 +02:00
hjk
b61e32371f debugger: fix display of children of objects passed by reference.
The value was adjusted to the referenced value but it was not used
when dumping the members, basically leading to an empty child list
in such cases.
2010-05-26 13:34:54 +02:00
hjk
dd714e9ccb debugger: improve QVariant(QString) dumper 2010-05-20 13:14:44 +02:00
hjk
58cbf845fa debugger: add address of pointees of generic pointers 2010-05-19 14:19:33 +02:00
hjk
c50dd85088 debugger: show return value of last function call in Locals and Watchers view
Works only with gdb/Python so far.
2010-05-19 12:00:56 +02:00
hjk
8cd3b67a74 debugger: some refactoring of the python dumpers
Now it's easy to suppress "uninformative" intermediate levels in the
Locals & Watchers by using the new  Dumper.putFields() function.
Used in qdump__QUrl
2010-04-23 10:39:44 +02:00
hjk
c4dbe9530e debugger: fix python version of QModelIndex etc dumpers. 2010-04-21 14:48:43 +02:00
hjk
8bbe26c35c debugger: fix for QTCREATORBUG-1180 2010-04-16 14:08:37 +02:00
hjk
543826cb12 debugger: potential fix for QTCREATORBUG-1183 2010-04-16 13:26:46 +02:00
hjk
cfe771cc37 debugger: fix for "Can not step into functions on Symbian" QTCREATORBUG-1185 2010-04-16 11:50:00 +02:00
hjk
76fed505ac debugger: fix QString dumper
Doh! In contrast to the C++ version we are operating on ushort* here.
2010-04-12 15:45:36 +02:00
Friedemann Kleint
614d09da88 Debugger[gdb/MingW]: Add import statements for Python 2.5 2010-04-09 10:52:01 +02:00
hjk
0ac8388847 debugger: fix some encoding issues, modify manual tests 2010-04-08 14:39:21 +02:00
hjk
b70c0978d1 debugger: rework error handling in python dumpers 2010-04-08 14:08:40 +02:00
hjk
66a7cc2830 debugger: show contents of pointer instead of its address in the python dumpers 2010-04-07 18:18:45 +02:00
Friedemann Kleint
17884141da Debugger/gdb: Fix Python temporary file creation Windows.
Reviewed-by: hjk
2010-03-30 16:44:26 +02:00
hjk
89ae26419c debugger: use tempfile.NamedTemporaryFile instead of tempfile.mkstemp 2010-03-25 12:29:51 +01:00
hjk
59af793953 debugger: polish address display. also remove the mostly unused 'stored' address 2010-03-23 14:48:32 +01:00
hjk
337f3eef2e debugger: remove accidentally committed debug output 2010-03-23 11:49:36 +01:00
hjk
4d9900a1b9 debugger: more robust parsing of gdb cli output in the presence of spurious
warnings
2010-03-22 13:12:53 +01:00
hjk
ef44cb24d2 debugger: fix expanding pointers inside anonymous namepaces 2010-03-18 18:10:28 +01:00
hjk
72d90fd5ee debugger: merge multiple fancy views of the same object 2010-03-17 13:25:29 +01:00
hjk
d80d68b73b debugger: base individual formats on object addresses, not on inames 2010-03-17 12:38:37 +01:00
hjk
ba17fb205a debugger: update peek&poke 3 example 2010-03-17 11:44:29 +01:00
hjk
c2b77a2274 debugger: fix evaluation of complex watchers 2010-03-16 18:45:34 +01:00