Commit Graph

216 Commits

Author SHA1 Message Date
hjk
fa304b45e5 debugger: make qt namespace retrieval more robust 2011-01-17 15:24:14 +01:00
hjk
5268b0c865 debugger: move global qqNs definition to a saner location 2011-01-12 14:14:57 +01:00
hjk
eb701fc7a8 debugger: start on integrated combined c++/qml debugging 2011-01-12 12:17:25 +01:00
con
f46a87a6f5 Merge remote branch 'origin/2.1'
Conflicts:
	src/plugins/qt4projectmanager/qt-maemo/maemotemplatesmanager.cpp
2011-01-12 10:20:46 +01:00
hjk
346080c2ae debugger: disable "threadnames"
This works around the problem that the threadnames deduction switches
the current thread and thereby invalidates the assumption that the
thread mentioned in the *stopped response is the "current" thread.

There's already a proper fix in master including some performance
enhancements.

Reviewed-by: con
2011-01-06 14:09:11 +01:00
hjk
31f18491ce debugger: fix thread switching in ThreadNamesCommand 2010-12-20 16:57:17 +01:00
hjk
bbba0f58a9 debugger: cache results of finding out the current Qt namespace 2010-12-20 14:47:52 +01:00
hjk
a23a45da88 debugger: fix previous commit 2010-12-17 18:02:02 +01:00
hjk
d55499f58a debugger: use to_string attribute to gdb.execute if available 2010-12-17 17:42:16 +01:00
hjk
8062222e0f debugger: fix display of C style 'typedef struct X { ... } X;' types. 2010-12-16 13:35:41 +01:00
hjk
e3886aaf4e debugger: display array base address as default value 2010-12-14 15:12:14 +01:00
hjk
bb654838cf debugger: fix gdb 7.2's template argument hickup also for more then one arg 2010-12-01 10:12:18 +01:00
hjk
5f5dbc62fd debugger: remove unneeded argument from templateArgument() 2010-11-30 17:30:06 +01:00
hjk
d3290c3231 debugger: replace a few 'template_argument(0)' by the templateArgument wrapper
Makes QSharedPointer & Co. work with gdb 7.2
2010-11-30 17:14:44 +01:00
hjk
f03138aa53 debugger: work around gdb 7.2 bug
python print gdb.parse_and_eval("ob.d_ptr.d.children\").type.template_argument(0)
creates consistent "RuntimeError: No type named myns::QObject." with stock 7.2
2010-11-30 16:52:46 +01:00
hjk
e13794d0dc debugger: make gdbmacros.py more generic
Mostly move parts of the gdb related quoting to dumper.py, also split
function calls in strings into separate arguments.
2010-11-19 15:02:47 +01:00
hjk
0d54cab7b0 debugger: improve python dumper profiling support 2010-11-19 15:02:47 +01:00
hjk
4a08c9a302 debugger: adjust format of item count after f9eea7e1 2010-11-19 11:50:22 +01:00
hjk
718c08a009 debugger: make more python dumpers more robust when debug info is missing 2010-11-19 11:50:22 +01:00
hjk
bffeae9b42 debugger: better handling of dynamic arrays 2010-11-18 20:45:00 +01:00
hjk
de3bf34e85 debugger: show len/ptr pair encoded strings for sources ending in .d 2010-11-18 19:17:55 +01:00
hjk
f9c585281e debugger: fix display of '"' chars
Task-number: QTCREATORBUG-3084
2010-11-16 17:09:56 +01:00
hjk
a66c8d35d6 debugger: fix display of shadowed variables again 2010-11-15 12:12:24 +01:00
Oswald Buddenhagen
dd45277a19 Merge remote branch 'origin/2.1'
Conflicts:
	share/qtcreator/templates/qmlapp/app.pro
	src/plugins/plugins.pro
	src/plugins/qt4projectmanager/qt4project.h
	src/plugins/qt4projectmanager/qt4projectmanager_dependencies.pri
2010-11-04 19:18:45 +01:00
hjk
3388e88ae4 debugger: catch python exception
Iterating through gdb.Frame.blocks() also yields function-local struct
definitions that cause later errors when attempting to use them as
local variable. This is arguably a gdb issue as it is inconsistent with
the result of plain old "info locals" output.

Reviewed-by: Friedemann Kleint
2010-11-04 10:50:13 +01:00
con
dbb1c5ef77 Merge remote branch 'origin/2.1' 2010-11-02 11:14:03 +01:00
hjk
8df0f12eca debugger: fix dumping of reference targets
Reviewed-by: Alessandro Portale
2010-11-02 11:00:31 +01:00
hjk
c5f8623b41 debugger: rename Dumper.putItem -> putSubItem, putItemHelper -> putItem 2010-10-26 15:14:06 +02:00
hjk
26339061e3 debugger: add python dumpers for __m128 2010-10-26 10:41:11 +02:00
Friedemann Kleint
4456f02d07 Debugger: Suppress Auto-Dereferencing of pointers for char* types.
Sequence of processing changed since 2.0.1.

Reviewed-by: hjk
Task-number: QTCREATORBUG-2664
2010-10-22 12:06:30 +02:00
Friedemann Kleint
35fe835d02 Debugger: Catch exception if thread name cannot be determined.
As reported on mailing list.

Reviewed-by: hjk
Reviewed-by: Arvid Ephraim Picciani <arvid.picciani@nokia.com>
2010-10-21 16:31:04 +02:00
Friedemann Kleint
213f2930ee Debugger: Fix expanding objects for Symbian (gdb 6.8).
Handle older Python bindings as well.

Reviewed-by: hjk
Task-number: QTCREATORBUG-2801
2010-10-20 11:03:20 +02:00
hjk
403364018a debugger: fix typos in complex watcher handling
Reviewed-by: Friedemann Kleint
2010-10-12 10:57:13 +02:00
Friedemann Kleint
561cad378e Debugger: Fix dumping anonymous structs.
Reviewed-by: hjk
2010-10-08 14:57:39 +02:00
Friedemann Kleint
44d87bf85d Debugger [gdb/win]: Use calloc instead of malloc for QObject-properties
Avoid symbol clash with QVector::malloc.
Display at least property count.

Reviewed-by: hjk
2010-09-30 12:16:41 +02:00
hjk
45b269b2d4 debugger: python dumpers for QTextCursor and QTextDocument
(cherry picked from commit 34e0621552)

Reviewed-by: Friedemann Kleint
2010-09-28 09:37:56 +02:00
hjk
b33b5e52f4 debugger: escape backslashs properly
Reviewed-by: Friedemann Kleint
2010-09-27 17:59:17 +02:00
hjk
0674271fab debugger: make watchers more robust in the presence of \ in the expression 2010-09-27 14:02:24 +02:00
hjk
f0c9f87bf6 debugger: remove unused parameter in putFields 2010-09-17 09:05:08 +02:00
hjk
a1b2325bb3 debugger: use gdb.Field.is_base_class that seems to work nowadays 2010-09-17 09:01:21 +02:00
hjk
063309a311 debugger: make thread-naming feature work with namespaced Qt 2010-09-14 18:43:32 +02:00
hjk
26417ff48e debugger: speed up QByteArray and QString dumpers by using the new gdb.read_memory 2010-09-14 17:18:43 +02:00
Arvid Ephraim Picciani
0e8c3875ef Debugger: test gdb threeadlist capability
Reviewed-by: hjk
2010-09-14 14:01:57 +02:00
Arvid Ephraim Picciani
98736d256b Display thread names
extract thread names from QThread object name

Task-Number: QTCREATORBUG-382
Reviewed-by: hjk
2010-09-13 13:42:14 +02:00
hjk
7457083bab debugger: only update variables that are operated on 2010-09-13 08:32:37 +02:00
hjk
ce917a31ab debugger: make dumpers more robust for accidentally passed literals as tooltips 2010-09-08 08:16:44 +02:00
hjk
52478c95ed debugger: fix dumper for function pointers 2010-09-08 08:16:44 +02:00
hjk
5085f0fb7e debugger: fix some potentially infinite recursion on bad debug info
Task-number: QTCREATORBUG-2248
2010-09-03 11:00:11 +02:00
hjk
be4342b70e debugger: use dynamic type in locals & watchers
only available with gdb newer than Aug 31, 2010
2010-09-01 14:35:06 +02:00
hjk
e3cc2104af debugger: add a few comments describing caches used in dumper.py 2010-08-30 16:14:41 +02:00