Commit Graph

4400 Commits

Author SHA1 Message Date
hjk
d61cbf1bcb Debugger: Make the QVariant-from-type-and-data universal
Result works with GDB, too.

Change-Id: Idac1d3026054dcb1d5d030cffbe99d1d518c241b
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-23 13:46:02 +02:00
hjk
a083d7368c Debugger: Make boost dumper autotests compilable on Mac
Brew puts the headers under /usr/local/include.

Change-Id: I12ad68574586fdaf463d59b6f4dfb9149a120089
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-23 13:38:35 +02:00
hjk
336644a70d Debugger: Silence IPv6 part in QVariant(QHostAddress) dumper.
Wrong test when putting a IPv4 address in...

Change-Id: I8fcd68574586fdaf463d59b6f4dfb9149a120089
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-23 12:42:17 +02:00
Nikolai Kosjar
1a5c7d8ef5 C++: Safe accessing of elements of TranslationUnit::_tokens
Until now std::vector::at() was used to access the elements. This is
handy for debugging since an exception is thrown for invalid indices,
but it does not stop Qt Creator from crashing because exceptions are not
caught.

This is especially a problem for the parser, which has to look ahead via
LA(n), which accesses TranslationUnit::_tokens.

With this patch, explicit bounds checking is done before accessing the
elements and thus calls to

  std::vector::at() // bounds checking, throwing out_of_range

were replaced by calls to

  std::vector::operator[]() // no bounds checking, not throwing out_of_range

Measuring the parse time for the Qt Creator project shows that there is
no slowdown. In both cases, with and without the patch, about 15s are
needed on the authors machine.

Task-number: QTCREATORBUG-10453

Change-Id: I32b12a526ff7199bcadfc21a3deb5354063a3e3b
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-10-23 10:46:14 +02:00
hjk
4c35310cec Debugger: Adjust QDateTime dumper after Qt 5.2 changes
Task-number: QTCREATORBUG-10232
Change-Id: I10551a258edb9456c4a9f93a3bfb374a8f07fc7d
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-22 19:12:31 +02:00
hjk
6851f019e4 Debugger: Some autotest cosmetics
Change-Id: Ib174e84f97511b28cd7649c219a62fe606186bf2
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-22 19:11:30 +02:00
hjk
3e789de36d Debugger: Fix Qt 5 QHostAddress autotest
Dumper was working, but the default constructor doesn't do
the parsing already nowadays.

Change-Id: I098b0a03ad7d994b5746f3a4a6c39d29133509b0
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-22 17:18:18 +02:00
hjk
e643f3bf74 Debugger: Avoid Gui dependency of dumper autotest
Change-Id: Ie51554216ad7b132839c2779c2f647ad6222db5f
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-10-22 17:13:16 +02:00
hjk
5e9f67bf48 Debugger: Make namedemangler test run without X
Change-Id: Ia04d6b7999eaa2de6471031100fa4143549185d7
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-22 16:12:00 +02:00
Eike Ziller
5686f5fd70 QUrl dumper: use correct string type name and extend test
Change-Id: I7fe88d11b3d52ba31d3e8564b673a35001e31488
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-22 13:20:03 +02:00
hjk
fc52b30450 Debugger: Simplify QVariant{Hash,Map} dumper
Change-Id: I4c5c79f9b2b2d739971d9f50a2b48cfde005e167
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-22 10:11:17 +02:00
hjk
fafc00da4a Debugger: Fix QVariantMap/QVariantHash dumper with Qt 5
Change-Id: I71358adc8c01dd1261627f35d0f35500e8b34989
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-21 15:02:40 +02:00
hjk
bec053528e Debugger: Add a README on how to handle the dumper auto tests
Change-Id: Ic14ab793369fd5fb5649dac6518152bcbfa5ac29
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-21 14:43:01 +02:00
hjk
3eac8daba9 Debugger: Add a few 'unused' to auto tests
Spoils the optimizer's fun a bit.

Change-Id: I3321d6c1fb75a9ecc6e603422116636c3c6cc4c2
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-21 14:42:48 +02:00
hjk
8c02d6e0dd Debugger: Fix QChar dumper with Python 3
Change-Id: I7da412c9bdaf3a8f65484ac99f06fc31a5cdc1c3
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-21 14:15:56 +02:00
Christian Kandeler
ed9752bc0a qbs project files: Fix references to non-existing properties.
Change-Id: I653231939a9495395cbe36de26b67e1535d2169e
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2013-10-17 16:23:28 +02:00
Orgad Shaneh
4835469531 C++: Comment out debug log
Uncommented in e088541c0

Change-Id: Ia9685b815523ab61a8780e9f5686a5d713eec842
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-10-16 16:41:42 +02:00
hjk
ebcd992577 Rename namespace Qt4ProjectManager to QmakeProjectManager
First step towards plugin renaming.

Change-Id: I8ac017660a7aa2bda0d7bb7d72ab0cfceaf6cfd2
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2013-10-16 12:09:59 +02:00
hjk
89791a6fbf CPlusPlus: Compile fix in manual test
Change-Id: If34b564b55ef3e76cb5696ed30220d64b256d607
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-10-16 11:53:33 +02:00
hjk
2b532c73ee CPlusPlus: Make (sub-)languague selection more generic
Change-Id: I4e2df6992b446adec662ab07671acd41715e41fd
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-10-15 16:22:28 +02:00
Christian Kandeler
590e4c8d50 Fix qbs build on Windows.
Disable valgrind autotests for now. The people responsible for the
plugin have to decide which ones can actually be used on Windows and
which ones cannot.

Change-Id: I579de6258c73845a1935a9c220346879251bc478
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2013-10-15 15:40:41 +02:00
Robert Loehning
f7ae3707c3 Squish: Avoid possible timing issue in tst_designer_autocomplete
Change-Id: I6ed30bc623830fdda72ede35922ac70736cb3c68
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-10-14 12:58:13 +02:00
hjk
3b1b851daa Debugger: More stdint autotests
Change-Id: I6b3961cb2ac4e35bce2fee12985f13a6d34d9525
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-10 21:30:18 +02:00
hjk
4f36713716 Debugger: Explicitly handle uint8_t and int8_t
Would be nicer if there was a global way to tell GDB to not produce
"adorned" output...

Task-number: QTCREATORBUG-10344
Change-Id: I5355ebea0570f76415fdacfed34e1311825f57b9
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-10 21:25:36 +02:00
Nikolai Kosjar
b8dbac0b9c Rename "[Mm]ethod(s)" to "[Ff]unction(s)"
Only methods as programming functions are affected. Besides renaming
some actions like "Switch Between Function Declaration/Definition" this
mostly touches (api) code comments.

This is a follow-up patch to commit 872bfb7.

Change-Id: Icb65e8d73b59a022f8885b14df497169543a3b92
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-10 15:56:12 +02:00
Leena Miettinen
2d80699430 Qt Quick Designer: fix UI text capitalization and punctuation
Fix Qt Quick Designer product name. Fix a typo in a test message.

Change-Id: I668af65da835017ebc876810a8d2c7d638290c77
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-10-10 09:34:26 +02:00
Christian Kandeler
f1da03c73b qbs project files: Make use of new qbsSearchPaths property.
Change-Id: I396d970fafea1fd0b4c4d73883796662a1d0064b
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2013-10-09 18:08:56 +02:00
Nikolai Kosjar
0e4deaba23 C++: Parse MEMBER in Q_PROPERTY()
MEMBER was added in Qt5.

Task-number: QTCREATORBUG-10068

Change-Id: Ic6c15a0e5ee8981ab98e4c12fc1521dc281b731f
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-10-09 15:13:31 +02:00
Erik Verbruggen
507452f097 CppTools: honor pre-compiled headers in the code-model.
Task-number: QTCREATORBUG-476

Change-Id: I82ed92acdcda551d2c6a9ca221832ac20117a08f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-10-01 13:02:45 +02:00
Erik Verbruggen
ba2d7a4fa7 C++: Only parse with appropriate defines for open editors.
If two files from different (sub-)projects include the same header file,
and the defined macros differ for both files, the header file will be
parsed with only the appropriate macros for the including file.

Task-number: QTCREATORBUG-9802
Task-number: QTCREATORBUG-1249

Change-Id: I560490afa287b3bb1e863bce1bb4f57af36ad56e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-10-01 10:33:51 +02:00
Orgad Shaneh
eeae50902d qbs project: Do not build valgrind test apps on Windows
Valgrind doesn't work on Windows, and the compiler flags for those test
apps are incompatible with MSVC

Change-Id: I9c17c29759d18434ef4a14cc57bcfde8405d770f
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2013-09-27 16:04:57 +02:00
Robert Loehning
95828d4691 Squish: Handle differences between Qt 4 and Qt 5
Change-Id: I529d5cbd017f7d17fbe2f38fc539583e96d835cf
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-09-27 12:28:23 +02:00
Robert Loehning
017e108724 Squish: Update expected values after fix.
QTCREATORBUG-10045 which tst_openqt_creator found was fixed.

Change-Id: I804427276d37ca97ce4577e40cfa73d515218de5
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-09-27 12:27:25 +02:00
Robert Loehning
532292cbb5 Revert "Squish: Remove failing lines for tst_openqt_creator"
Change-Id: Id876fca6e2b192097fed802eca4fe28533a7d4e9
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-09-27 12:27:08 +02:00
Eike Ziller
63ff745213 Merge remote-tracking branch 'origin/2.8'
Conflicts:
	src/libs/extensionsystem/pluginmanager.cpp
	src/libs/extensionsystem/pluginspec.cpp
	src/plugins/coreplugin/basefilewizard.cpp
	src/plugins/coreplugin/coreplugin.pro
	src/plugins/coreplugin/coreplugin.qbs
	src/plugins/coreplugin/editormanager/ieditor.cpp
	src/plugins/coreplugin/externaltool.cpp
	src/plugins/coreplugin/icore.cpp
	src/plugins/cpptools/cppmodelmanager.cpp
	src/plugins/fakevim/fakevimhandler.cpp
	src/plugins/find/ifindfilter.cpp
	src/plugins/projectexplorer/buildstep.cpp
	src/plugins/projectexplorer/devicesupport/idevice.cpp
	src/plugins/projectexplorer/runconfiguration.cpp
	src/plugins/vcsbase/vcsbaseeditor.cpp
	tests/system/suite_debugger/tst_simple_analyze/test.py

Change-Id: I11dc9e60bfc14bad4f8af747d041fc7678a07c17
2013-09-27 10:44:32 +02:00
hjk
c372f7b601 Rename share/dumper to share/debugger and {l,g}bridge to {lldb,gdb}bridge
Change-Id: I56a09dd89d2ac086ee264432510fd39b5efe69c5
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-09-26 21:50:40 +02:00
Robert Loehning
65f0588196 Squish: Stabilize suite_QMLS
Change-Id: I2194054c9c87eeff3b039b34dc4498f5cb0a19e2
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-09-25 17:04:49 +02:00
Robert Loehning
52921e72c9 Squish: Update tst_HELP06
Change-Id: I4cfadb96ba27a1c95739d07f161e1579df9ce8ba
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-09-25 14:55:25 +02:00
Andre Hartmann
e8a1b8c551 ANSI: More meaningful name for simple tests.
Change-Id: I105e8766b1a19e367337a9be9436cc762b69b8be
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
2013-09-25 07:12:27 +02:00
Andre Hartmann
30ddaad191 ANSI: Test line-overlapping formats.
Until endFormatScope() is called, continuation lines keep the last
format.

Change-Id: Ic68ae6d716519f537189ebae763da4dc2c30978d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
2013-09-25 07:11:46 +02:00
hjk
f55cd63622 Debugger: Fix QList<QStringList> dumper with Qt 5
QStringList is movable in Qt 5.

Task-number: QTCREATORBUG-10211
Change-Id: I6b94acd37bbf8ca165960c50fd3da81408ccbb1b
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-09-24 14:49:03 +02:00
Robert Loehning
fbeac46c60 Squish: Update number of kits
Only one kit in use now. According to dt it's gonna stay this way.

Change-Id: Id52f04db438eda8d9eebf79264c7ddd28a0f497e
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-09-24 13:40:52 +02:00
Christian Stenger
71e9321e49 Tests: Fix compilation of valgrind test apps on Win
Change-Id: I09ecc4b5a44bcc401e970b3da94d628877a49078
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
2013-09-20 17:20:27 +02:00
Robert Loehning
ee1bac2ee6 Squish: Fix verifyBuildAndRun()
"The program has unexpectedly finished." is considered valid output,
see https://bugreports.qt-project.org/browse/QTCREATORBUG-9212

Change-Id: Ia18e2dcfccdf1bdfbbc793a01897a88c4a17eb40
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-09-20 13:47:55 +02:00
Christian Stenger
8b7dff6fdc Squish: Fix tst_debug_empty_main for Mac
Change-Id: I57cd9647d07cfbf823bdff63dd1c2f5c3050cb7c
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-09-20 12:48:03 +02:00
Christian Stenger
5bf5eb17f1 Squish: Fix addBranchWildcardToRoot()
Branch information is now listed in square brackets.

Change-Id: I4f38f2a93b8029ed319fae3a7c32adc0aba50660
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-09-20 12:47:39 +02:00
Robert Loehning
5d1aece721 Squish: Fix tst_default_settings
Change-Id: I2b9e03d77df657b107bc81d3b8f16720c25b4a0e
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-09-20 11:54:56 +02:00
Robert Loehning
0e0d8eb7bb Squish: Update editors
Change-Id: I022d0c5b2e025106860ea330f6b690842bb0558c
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-09-20 11:54:36 +02:00
Robert Loehning
76cfe9e30e Squish: Update expected window title in tst_basic_cpp_support
Change-Id: Ic5d23a899d1b808780f76ef53c855397cc436c2f
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-09-20 10:59:51 +02:00
Christian Kandeler
dcd6a9e9cf qbs project files: Remove workarounds for qbs bug.
The imports work as expected now.

Change-Id: I753483696bd30512451af4b8c39f95e30a513d40
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2013-09-19 13:28:21 +02:00