Commit Graph

179 Commits

Author SHA1 Message Date
hjk
3621e3e392 debugger: implement pretty printing for D arrays (gdc compiled)
Change-Id: If8bf60dcfbb52546bc9c49ba28adddf52163321e
Reviewed-by: hjk <qthjk@ovi.com>
2012-10-21 20:24:34 +02:00
Orgad Shaneh
6aaaacd4e4 Dumper: Remove unused variables
Add a missing call to removeTempFile

Change-Id: Iea21102ed54e372f6c2991ac31fef008962f0638
Reviewed-by: hjk <qthjk@ovi.com>
2012-10-20 14:51:13 +02:00
hjk
9f1d8b66e3 debugger: fix display of gcc's built-in vector types
Change-Id: I293be4f5c207828c64de30236a25f6c0062346b8
Reviewed-by: hjk <qthjk@ovi.com>
2012-10-17 15:25:04 +02:00
Eike Ziller
6fd252b0a5 Merge remote-tracking branch 'origin/2.6'
Conflicts:
	share/qtcreator/qml/qmlpuppet/commands/endpuppetcommand.cpp
	share/qtcreator/qml/qmlpuppet/commands/endpuppetcommand.h
	src/plugins/debugger/qtmessageloghandler.cpp
	src/plugins/debugger/qtmessageloghandler.h
	src/plugins/debugger/qtmessagelogwindow.cpp
	src/plugins/madde/maemodeployconfigurationwidget.cpp
	src/plugins/madde/maemodeployconfigurationwidget.h
	src/plugins/remotelinux/deployablefilesperprofile.cpp
	src/plugins/remotelinux/deployablefilesperprofile.h
	src/plugins/remotelinux/deploymentinfo.cpp
	src/plugins/remotelinux/deploymentinfo.h
	src/plugins/remotelinux/deploymentsettingsassistant.cpp
	src/plugins/remotelinux/profilesupdatedialog.cpp
	src/plugins/remotelinux/remotelinuxdeploymentdatamodel.h
	tests/auto/icheckbuild/ichecklib.cpp
	tests/auto/icheckbuild/ichecklib_global.h
	tests/auto/icheckbuild/parsemanager.cpp
	tests/auto/icheckbuild/parsemanager.h
	tests/manual/ssh/tunnel/tunnel.h

Change-Id: I04d7761df6bd936ad00e0547974284c967d39580
2012-10-05 21:20:50 +02:00
Eike Ziller
68c796e244 Merge origin/2.6
Conflicts:
	src/libs/utils/fileutils.cpp
	src/plugins/cmakeprojectmanager/cmakebuildconfiguration.cpp
	src/plugins/cmakeprojectmanager/cmakeopenprojectwizard.cpp
	src/plugins/cmakeprojectmanager/cmakeopenprojectwizard.h
	src/plugins/cmakeprojectmanager/cmakeproject.cpp
	src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp
	src/plugins/cmakeprojectmanager/makestep.cpp
	src/plugins/qtsupport/baseqtversion.cpp

Change-Id: I153295bad2d97609d96d28945e9f942c5b46b2da
2012-10-05 20:51:31 +02:00
hjk
386ca7c8dd Adjust license headers
Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2012-10-05 17:12:56 +02:00
hjk
ecf8b82cdc debugger: fix QMap dumper/gdb pretty printer for Qt 5
Change-Id: If1b2dcb6d517b837a135fbdb97cde422122464c3
Reviewed-by: hjk <qthjk@ovi.com>
2012-10-05 11:23:46 +02:00
hjk
4265d47c78 debugger: fix display of QObject object names for Qt 5
Change-Id: I58ad709575f4846812de3e2109112be170e8e433
Reviewed-by: hjk <qthjk@ovi.com>
2012-10-05 11:23:20 +02:00
hjk
009c3f1a26 debugger: use symbolic constants for "Display in Seperate Window" modes
Change-Id: Iab2b918e94abddb1fb4132c27e0b5f29810d4598
Reviewed-by: hjk <qthjk@ovi.com>
2012-10-05 08:12:26 +02:00
hjk
b3c6f7be3f debugger: make QByteArray displayable in separate window
Change-Id: I6ec1e880e1c82415361545f57115353d843ee7f3
(cherry picked from commit ce381a81cf03bb122a9ce4102fbbb56825ce05e3)
Reviewed-by: hjk <qthjk@ovi.com>
2012-10-04 15:16:58 +02:00
hjk
4c51cbce0a debugger: use a more robust method to detect function pointers
The previous one was failing on 'this' pointers of instances of
classes templatized on function pointers.

Change-Id: I2be50db5be643974f318fb6999136f5c7a4cfc1c
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2012-10-04 10:29:49 +02:00
Eike Ziller
a55d47544a Merge remote-tracking branch 'origin/2.6'
Conflicts:
	qtcreator.qbp
	src/plugins/qtsupport/baseqtversion.cpp
	src/tools/tools.pro

Change-Id: I43c391328ae747b3dc566f9db2384fedc1a6d0a5
2012-09-26 10:01:04 +02:00
Eike Ziller
804ae90c80 Mac: Fix Qt5 debug helper compilation.
Task-number: QTCREATORBUG-7917

Change-Id: I6e76923e02c9c1ccc411d2f0978fe63e867e6469
Reviewed-by: hjk <qthjk@ovi.com>
2012-09-24 12:01:03 +02:00
Christian Kandeler
3d9e492860 Do not use the fromAscii() and toAscii() functions.
They are deprecated in Qt 5. Use fromLatin1() and toLatin1() instead. In
Qt 5, these always do the same thing as their "Ascii" counterparts. The
same goes for Qt 4, provided QTextCodec::setCodecForCStrings has not
been set, which it hasn't.

Change-Id: I04edeb376762b6671eff8156094f0d5e2cb8e1ea
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
2012-09-21 21:03:48 +02:00
Christian Kandeler
1b3d637c1b Replace qVariantValue() with qvariant_cast().
qVariantvalue() is deprecated in Qt 5. qvariant_cast() does
the same thing and works in Qt 4 and Qt 5.

Change-Id: I922329d3a47fe394669f5d97a25f0825d3d2dea5
Reviewed-by: hjk <qthjk@ovi.com>
2012-09-20 09:41:37 +02:00
Eike Ziller
5ac721dd58 Merge remote-tracking branch 'origin/2.6'
Conflicts:
	qtcreator.pri
	qtcreator.qbp
	src/libs/utils/utils.pro

Change-Id: I6f0aba746f915d8c51dcf9372f7d9f593562fc2b
2012-09-11 14:02:03 +02:00
hjk
d34f44f460 debugger: fix display of signed data in arrays
This was a regression introduced with the block dumping for arrays.

Change-Id: I9684fafeb27a9268a2558557f76d1092136975a4
Reviewed-by: hjk <qthjk@ovi.com>
2012-09-11 00:33:46 +02:00
hjk
19a7f66df3 debugger: add gnuplot based display for QVector
Change-Id: Ic24a0d77906a59bc2c216ef0d6dd655695e2033e
(cherry picked from commit 41ac231ddfbabec6c09101345cf4d1370646f027)
Reviewed-by: hjk <qthjk@ovi.com>
2012-09-10 12:16:46 +02:00
hjk
0af79be114 debugger: add dumper for Utils::FileName
Change-Id: I2b9736d0c0cb3ef0e981d57c31ad84fcb72719d1
Reviewed-by: hjk <qthjk@ovi.com>
2012-09-09 00:51:25 +02:00
Orgad Shaneh
3518934e24 Dumper: Use Latin1 as default for char array
Change-Id: Ia3e2fc737c4d40e9b8bce0fbb147fe3d8a523351
Reviewed-by: hjk <qthjk@ovi.com>
2012-08-30 09:09:17 +02:00
hjk
69059fef8a debugger: handle type code "Method"
Seems to be new use in mingw 4.6.

Change-Id: I7331e3be3c14fed86d4eebf333ab4b01d1b237bf
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-08-28 12:23:29 +02:00
hjk
09d173b188 debugger: add dumper for some internal classes
CPlusPlus::{Literal,Identifier,IntegerType,NamedType,TemplateNameId}

Change-Id: I1c71be1e284c69c09d8257696feda2974f083c33
Reviewed-by: hjk <qthjk@ovi.com>
2012-08-27 16:56:36 +02:00
hjk
c8b180a55b debugger: also report sizes of anonymous structs
Change-Id: Ibd7397ddf9b70db599befe8cc99fcf7147b959e6
Reviewed-by: hjk <qthjk@ovi.com>
2012-08-24 17:03:23 +02:00
Alessandro Portale
ae23d50576 Removal of Symbian support
Qt Creator's support for Symbian was at its peak in version
2.4.x. Nobody really verified it in Qt Creator 2.5 or 2.6.
It is most likely rotten. Let's remove it!

Also, the Symbian support code was spread throughout the whole
Qt Creator code base. The plugin interfaces evolved in the
meantime and target platforms like Android or QNX have 99% of
their code in separate plugins.

In case anyone wants to revive Symbian support in Qt Creator,
please create a plugin for it.

Change-Id: I56a758a3e2fd5b8c64d9aeb8f63d8e916c4883be
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
2012-08-22 13:42:42 +02:00
hjk
7e884db7fb debugger: fix reporting of type size from python dumpers
Change-Id: I46ed81d3c0bf06e8c7b6a80266ea1b833120e90e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-08-21 16:11:18 +02:00
Orgad Shaneh
1d209b9c3e Dumper: Respect dynamic type option for locals and references
Task-number: QTCREATORBUG-7504

Change-Id: Ib49b4189e84cd4d3539ec9bbbada373f306ca68d
Reviewed-by: hjk <qthjk@ovi.com>
2012-08-20 15:14:31 +02:00
hjk
894e75aaf0 debugger: fix QStringList dumper
Did not take into account a non-zero 'begin' after a takeFirst().

Change-Id: Icaa1f87c18b1dec7778c4322fd971c9becedcce1
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: hjk <qthjk@ovi.com>
2012-08-15 18:15:11 +02:00
Orgad Shaneh
e2a50ef71d Dumper: Always respect Use Dynamic Type option
Task-number: QTCREATORBUG-7504

Change-Id: Ifdc3f541eb67c36ea0cb5e61a7e5954c39cd75c4
Reviewed-by: hjk <qthjk@ovi.com>
2012-07-31 18:17:00 +02:00
Orgad Shaneh
99629d1059 Dumper: Missed upcast -> downcast rename
Change-Id: Ib16cf6356a94e652f09eadaf46c8579a801cc580
Reviewed-by: hjk <qthjk@ovi.com>
2012-07-26 14:12:45 +02:00
Orgad Shaneh
78d59afa8d Dumper: Rename upcast -> downcast
Change-Id: I776373da348a961e3daf2c45bbbb84ca4736512a
Reviewed-by: hjk <qthjk@ovi.com>
2012-07-26 13:47:13 +02:00
hjk
d92df40125 debugger: fix display of member function pointers
Change-Id: I957e805aad45bf62b6fb8318accd29f54b474b11
Reviewed-by: hjk <qthjk@ovi.com>
2012-07-19 15:01:26 +02:00
Eike Ziller
e0e8cf3ada Contact -> qt-project.org
Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
2012-07-19 13:23:21 +02:00
hjk
7ba0a4de9c debugger: add dumper for Core::Id
Change-Id: Ibcc5b0e80acf037ed87b79ae4f52a1b0677388eb
Reviewed-by: hjk <qthjk@ovi.com>
2012-07-18 12:39:54 +02:00
Orgad Shaneh
19fa243ef7 Dumper: Fix Qt namespace resolution
qqNs should not be called directly

Change-Id: I845b5c1b9af3fbf79bac7a5ab85dc054678e3e53
Reviewed-by: hjk <qthjk@ovi.com>
2012-07-16 15:01:29 +02:00
Marc Mutz
7eaaab6e73 Add spaces between macros and string literals
Commit fa66a540 fixed string literal and macro concatenation
some time ago, but while it changed "literal1"M1"literal2" to
"literal1" M1 "literal2" it didn't touch M"literal". This patch
changes this to M "literal" for consistency.

This patch is the remnant of a cherry-pick of a C++11 compilation
fix equivalent to fa66a540 from KDAB's branch of QtC 2.4.0.

Change-Id: I87644e888a7e74b18d4b1ca10786cdc3fa798453
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
Reviewed-by: hjk <qthjk@ovi.com>
2012-06-19 12:47:27 +02:00
hjk
78c8ed5bb9 debugger: add dumper for QFiniteStack
Change-Id: I5c90eaaf5d43d03118470b0247511e65b7336ea6
Reviewed-by: hjk <qthjk@ovi.com>
2012-06-12 17:33:29 +02:00
hjk
2d466528c9 debugger: rework core adapter
The name of the binary is now read using the elfreader instead
of attaching gdb twice.

Change-Id: I7a75bc64278c4f43e7085d2e479b53173602c966
Reviewed-by: hjk <qthjk@ovi.com>
2012-06-06 09:41:08 +02:00
Jędrzej Nowacki
f4ea50b527 QDumper build fix after QVector change.
Internal type QVectorData was removed, current implementation of
QVector is based on common QArrayData interface.

Change-Id: I016efa1013f0fdf809600eee4f38098d8ea3ab8f
Reviewed-by: hjk <qthjk@ovi.com>
2012-06-05 14:45:33 +02:00
hjk
a7f8c3c827 debugger: reshuffle sections in module data
Keep track of elf section headers, add a dumper for
Utils::ElfSection etc.

Change-Id: I06d01c0de01ffc6b827a4a79bdc91fdb3e761d75
Reviewed-by: hjk <qthjk@ovi.com>
2012-06-05 11:23:57 +02:00
hjk
0576fa01fa debugger: do not offer expansion for inaccessible items
Change-Id: Ib8607377e36dbf51aa38b32a18491ec3437a2387
Reviewed-by: hjk <qthjk@ovi.com>
2012-05-31 14:33:26 +02:00
hjk
fa41d2faad debugger: add dumper for QHash::{const_}iterator
Change-Id: I05eaa1f3defdcb00102288737bd7686fa0281953
Reviewed-by: hjk <qthjk@ovi.com>
2012-05-31 14:32:44 +02:00
hjk
d982b216ff debugger: rework dumping arrays of plain data
Simple array data can be fetched in one go.
The "normal" way gdb asks the server for contents is one item
at a time, at ~3ms per round trip. Now we get 2000 in 200ms.

This also introduces a re-usable readRawMemory function and
removes a few checkAccess calls which will be triggered anyways.

Change-Id: Ic07a3d6593fd2ea45f7a8058509118fe22a845bb
Reviewed-by: hjk <qthjk@ovi.com>
2012-05-30 11:31:29 +02:00
Robert Loehning
7d96a3218e debugger: Fixed syntax error
Found by Squish test suite_debugger/tst_cli_output_console

Change-Id: I3d4bf97f9971e44ac39bc262d17da0641a99af19
Reviewed-by: hjk <qthjk@ovi.com>
2012-05-30 10:02:01 +02:00
hjk
093363ef21 debugger: use 'None' instead of -1 for default parameter
Change-Id: I865ecaa73bee5880d746fed019ac879b563367e7
Reviewed-by: hjk <qthjk@ovi.com>
2012-05-29 13:05:27 +02:00
hjk
1ba684ad39 debugger: make max string size more configurable
Change-Id: I4fd3c854eb2bb752c5338e96f2e19884bdcf71a8
Reviewed-by: hjk <qthjk@ovi.com>
2012-05-29 12:24:41 +02:00
hjk
bc9326abb7 debugger: move type info cache population to lookupType
This way we miss some data from types we never lookup (like 'int')
but having it out of the performance path in SubItem.__exit__ is
more important.

Change-Id: I9ff86a7d9bf0d66e5781581d04942f29ca0e520b
Reviewed-by: hjk <qthjk@ovi.com>
2012-05-25 16:00:12 +02:00
hjk
e11a3a7697 debugger: rework WatchModel
It's one model for all locals, watch, return, tooltip and inspector
data. This allows more streamlined code paths and better isolation
of the model data from the WatchHandler. WatchItems are now registered
in a hash indexed by iname, so inames can be used as the primary
handle to watch data in the WatchHandler interface.

Change-Id: Idac0a808b5d785307496d1de4198a1f2e9ce3880
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
2012-05-24 14:33:34 +02:00
hjk
77fd3ef796 debugger: use 0 as childnumchild value for QStringLists
Change-Id: I7ac2b4e1c60e120973adeb7db93e74711d940613
Reviewed-by: hjk <qthjk@ovi.com>
2012-05-18 15:57:50 +02:00
hjk
d5fdc08bd0 debugger: check typedefs for specialized dumpers first
A __m128 showed up as float[4] unconditionally.

Change-Id: Ie01a0a329953a5e4bf4cd9c964a562ce49e14e81
Reviewed-by: hjk <qthjk@ovi.com>
2012-05-17 19:09:34 +02:00
hjk
de2a88c0f3 debugger: take advantage of simple contents in array-like containers
Change-Id: I79e8fc7cf083d5c6c135cce5e0a42e41475a7b44
Reviewed-by: hjk <qthjk@ovi.com>
2012-05-17 19:08:33 +02:00