hjk
46a707fd8d
debugger: Fix address output for watchers
...
There is no address for on-the-fly expressions
Change-Id: Id8c1c2e4d727732196386928a9eddc7c81073415
Reviewed-on: http://codereview.qt.nokia.com/73
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com >
Reviewed-by: hjk
2011-05-23 17:40:30 +02:00
hjk
7347587d69
debugger: take a few string comparisons off the critical path
2011-05-16 17:22:05 +02:00
hjk
2f009a301b
debugger: remove custom 'select' function from dumpers
2011-05-16 17:22:05 +02:00
hjk
185aaa7e26
debugger: use python's built-in min()
2011-05-16 17:22:05 +02:00
hjk
0747859006
debugger: make QVector and std::vector writable
2011-05-11 10:38:04 +02:00
hjk
587a2c3a2a
debugger: enable modification of std::string and QString
2011-05-10 19:01:49 +02:00
hjk
6331b68943
debugger: (gdb, non-Mac) also print numeric values for enums
2011-05-10 15:58:11 +02:00
hjk
725fb153b7
debugger: speed up python dumper
...
build up list of string chunks instead of big string
2011-05-10 15:58:11 +02:00
hjk
da44415ebe
debugger: more direct number conversion in putAddress
2011-05-10 15:58:11 +02:00
con
e92988261e
Merge remote branch 'origin/2.2'
2011-04-20 11:07:25 +02:00
hjk
501f4bba34
debugger: prevent endless loop in resolution of some types
...
Reviewed-by: Friedemann Kleint
2011-04-19 12:42:38 +02:00
hjk
fea6bcd944
debugger: enable latin1 or utf8 char[] display
2011-04-18 16:15:39 +02:00
Friedemann Kleint
67d391019b
Debugger: Have Python dumper print type size information.
...
For memory views. In the dumper, create a cache of TypeInfo
structs to contain type information and print the new entries
in each call of bb().
Collect the information in the gdb engine.
Replace WatchData::origAddress by WatchData::ReferencingAddress
to be able to correctly handle automatically dereferenced
pointers of the gdb engine. Whereas 'address' of a automatically
dereferenced used to be that of the pointer, it is now that
of the dereferenced item matching the size reported, enabling
memory views. Referencing address is now the address of the pointer.
Reviewed-by: hjk
2011-04-12 15:56:03 +02:00
hjk
9dc3e3ed44
debugger: fix quoting of watched expressions with funny chars inside
...
Base 64 to the rescue.
Reviewed-by: con
2011-04-08 14:46:35 +02:00
hjk
2074ec8a35
debugger: fix quoting of watched expressions with funny chars inside
...
Base 64 to the rescue.
2011-04-08 13:22:00 +02:00
hjk
cd9aec6df9
debugger: make original value of automatically dereferenced pointer accessible
2011-04-06 18:40:32 +02:00
hjk
b0b8a452c1
debugger: dump integers and floats based on the typedef stripped type
2011-03-01 19:17:03 +01:00
hjk
3d7a145803
debugger: add address display for floats and bools
2011-03-01 16:50:02 +01:00
hjk
55de258156
debugger: output bitfield sizes
2011-03-01 16:30:51 +01:00
hjk
fe03946df9
debugger: Switch off address printing for generated items
2011-03-01 15:44:22 +01:00
hjk
fa919345fc
debugger: remove unused dumper code
2011-03-01 14:23:35 +01:00
hjk
5977545423
debugger: write more object addresses in dumpers
2011-02-28 17:35:52 +01:00
hjk
cdfbf4bbcb
debugger: don't try to extract address of temporary expressions
...
They don't "live" in the inferior, so there is no real address.
2011-02-04 09:32:35 +01:00
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