Commit Graph

4987 Commits

Author SHA1 Message Date
hjk
cbcc556614 Debugger: Make the 'use last value for short display' trick permanent
Change-Id: I4c8b50751ed4ad605bbd02287147a904d8aec58b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-28 08:48:43 +00:00
hjk
a2c83874d3 Debugger: Some dumper improvements for QV4 types
Start displaying QV4::Value again for numeric values
and QJSValue for ints, doubles and strings.

Change-Id: I18ce226c21168087ce280cb05aa0e250bd3187d9
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2016-09-27 15:20:25 +00:00
hjk
5efa84830b Debugger: Remove use of native values in dumper.py
Lowers the barrier for other debugger backends.

Change-Id: I09e0ad09548b6b4220175245cc0d845ac5aa29d0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2016-09-26 14:07:00 +00:00
hjk
bf5f96e423 Debugger: Fix passing working directory with LLDB
It's not the one of the lldb process anymore, so set it explicitly.

Change-Id: Ibcc2b63631c4096f860996ad6ccfc12415d8aefd
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2016-09-26 11:57:36 +00:00
hjk
c7305abf26 Debugger: Simplify qtHookData access in dumper
Change-Id: I14b7ecb5fbe1e6b2a2c587aa7dcb5ef18e3cb9f3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-26 09:14:06 +00:00
Eike Ziller
2cd307a7b0 Welcome: Fix width of session labels
Set the width, so long labels are elided.

Change-Id: I9121f56e11de6098414f8fa2b92c4b4b8d541909
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-09-23 11:25:47 +00:00
Thomas Hartmann
324aa339a0 Adding ini file for styles to Qt Quick Controls 2 wizard
Change-Id: Ie3dd0c4422d402f811830d9d24382550ba560df0
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-09-23 10:47:14 +00:00
hjk
cc8414ff1f Debugger: Add a few dumpers for OpenCV related structures
Mainly as test ground to show of matrix display later.

Change-Id: I49e6d06bf7203532e384cc3215483512089bfcf5
Reviewed-by: hjk <hjk@qt.io>
2016-09-23 10:20:42 +00:00
hjk
e08b1a070b Debugger: Add a dumper of QStaticStringData
Change-Id: I5e4ebc31eaf7cce76b8cfd1a5c9635441eccc797
Reviewed-by: hjk <hjk@qt.io>
2016-09-22 13:39:12 +00:00
hjk
e4a5f5fa34 Debugger: Make map item display more compact
This adds more information to the top-level item
in map and hash entries.

Change-Id: Id43689fd0b968142ff2e9d06c58687a92b5b17c7
Reviewed-by: David Schulz <david.schulz@qt.io>
2016-09-22 10:34:05 +00:00
Orgad Shaneh
c01d7a7540 Merge remote-tracking branch 'origin/4.1'
Change-Id: Ieaddc6093d10c08a54acb9b57cbbfe022bc3c038
2016-09-22 11:01:16 +03:00
hjk
4d47a68425 Debugger: Fix native type field lookups for typedefed structures
Change-Id: Ibd120ce43771c35b23b51bfc598ee5f32ee7af75
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-21 13:05:56 +00:00
hjk
67cf72e377 Debugger: Consolidate some almost common code
The remaining differences were not relevant anymore.

Change-Id: I4db80e8dde4c394267527828a2265aee619acec2
Reviewed-by: hjk <hjk@qt.io>
2016-09-21 10:21:50 +00:00
hjk
6ac8a445e5 Debugger: Remove some now-unused code
Change-Id: I389b827030ab241ecc0b1875d9743faac517bd49
Reviewed-by: hjk <hjk@qt.io>
2016-09-21 10:15:15 +00:00
hjk
b4251d6d24 Debugger: Consolidate code to enumerate shadowed variables
... in {ll,g}dbbridge.py and fix expansion of shadowed items.

Change-Id: Ide0c426416f2df85470fe851f265cf4835395680
Reviewed-by: hjk <hjk@qt.io>
2016-09-21 10:13:12 +00:00
Eike Ziller
29dffc75ab Welcome: Fix ugly session and project numbers
Get rid of colons, don't show numbers > 9, and separate them from
session/project name.

Also tries to unify the painting of project and session items a bit
(project items were actually painted a bit higher than session items
here)

Change-Id: Ibc850a9db273357f2799c0558f6ee78e320f45ff
Reviewed-by: Serhii Moroz <frost.asm@gmail.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-09-21 07:51:56 +00:00
hjk
01e2226a70 Debugger: Fix Core::Id dumper
Change-Id: I90db638bfd84bef0d14d804862771e2c10dbbf6c
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-09-20 15:34:25 +00:00
Thomas Hartmann
d7a23f9716 QmlDesigner: Allow to edit when condition in states editor
The when condition for each state can now be edited.

Change-Id: If569e3f22e2eee34b9333b3e139da59768649811
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-20 10:31:16 +00:00
hjk
e2c45012d6 Debugger: Streamline type code handling
GDB and LLDB share some ideas but are not identical. Map them
both to what we need in the end. This also reduces the size
of the Type class interface as a step towards more type info
caching.

Change-Id: I43e60c4e5736ac15a5c776832ffb8e6939f45e45
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-20 09:22:34 +00:00
Thomas Hartmann
648a909918 QmlDesigner: Allow to toggle alias exporting in property editor
Change-Id: I8d293eb5a5fa7d6f7092f2fc857e19e9c4014c60
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-19 15:46:52 +00:00
Ulf Hermann
7dab165c3b QmlPuppet: Don't crash when failing to lock shared memory
Obviously, you cannot set m_sharedMemory to 0 and then write the error
and errorString to it.

Change-Id: Ifcacfd7adcb4ff2fd88ebda21aa81094337233f6
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-19 14:07:18 +00:00
hjk
f1a85e1441 Debugger: Reduce reliance on implicit conversions
Easier maintenance if code is typesafe. Whatever that means in Python.

Change-Id: I450e5d42bcfdb30d607dd878353d037ba18fe6d9
Reviewed-by: hjk <hjk@qt.io>
2016-09-19 07:34:47 +00:00
hjk
080d2dad65 Debugger: Show enum symbolic names also with GDB 7.4
gdb.Type.name is not available there, but str() works.

Change-Id: I61c3018e728e634509d4028f624dc1213c62a290
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-16 12:44:23 +00:00
hjk
397b4144d4 Debugger: Fix some uses of callItem()
The (unused) return type was missing.

Change-Id: Iffaa4bf9e27853c481ef77d3827f338d69affa8e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-16 12:41:19 +00:00
hjk
1a9919a208 Debugger: Reduce number of function calls in QLocale display
Change-Id: Ib186dafbee148b9c4aaf69124a3642404e16c002
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-16 11:22:17 +00:00
hjk
0761f32938 Debugger: Remove indexing by array index in dumpers
Parents know what to do nowadays.

Change-Id: I28c6e8577ef478f9c94b0793704536b5c6c6e036
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-16 06:52:03 +00:00
Christian Stenger
c022399322 Debugger: Fix support for lldb from Xcode 5
Change-Id: Icb0e0349a0d6d88bb871b538bac858b2b252ef2f
Reviewed-by: hjk <hjk@qt.io>
2016-09-15 08:37:28 +00:00
hjk
845feec543 Debugger: Fix QFixed dumper and add an auto test
Change-Id: I9895d1dec4a6db9fa93e6ca0d6d30bdd92a4c3c6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-15 06:33:32 +00:00
Takumi ASAKI
aaf073d874 Update Japanese translation
Change-Id: I87dcecabbcdc4c40aa48783152277bf758903f6a
Reviewed-by: Naoki Matsumoto <nekomatu@gmail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2016-09-15 01:50:06 +00:00
Vikas Pachdha
1787d00e6e Continue process after lldb attach
lldb stops the process after attaching and the event loop is not yet started.
This makes the debugger wait for events while process is in stopped state

Task-number: QTCREATORBUG-15705
Change-Id: Iae6fe94fc483d963b377582c4cbbb443be5e6cba
Reviewed-by: hjk <hjk@qt.io>
2016-09-14 14:17:40 +00:00
hjk
53f6e6b8a9 Debugger: Add display of captures to QRegExp dumper
Change-Id: I345c72091002fad16af4549332bb7d8a1fb88155
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-14 13:53:07 +00:00
Christian Stenger
ba176316aa Dumper: Re-enable bundle related information on OSX
Change-Id: I8fbfeed09720379b01af7ae59fe8543c898b3883
Reviewed-by: hjk <hjk@qt.io>
2016-09-14 13:28:22 +00:00
hjk
e1ff0a1823 Debugger: Remove last traces of Dumper.is32bit()
Change-Id: Icb3b3bd472361816965b60b9f3cd0771aa4b99fe
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-14 12:59:30 +00:00
hjk
2244e2b26c Debugger: Use direct memory instead of member access
This introduces a dumper types abstraction layer with classes
Dumper.{Value,Type,Field} wrapping either gdb.{Value,Type,Field}
or lldb.{SBValue,SBType,SBField} and uses it to move
to more direct memory accesses in the dumper implementation.

This way we can use duck typing for artificial intermediate
objects eliminating the need for {gdb.Value,lldb.SBValue}.cast()
in some case which are flaky in general and typically not
available in release builds.

As consequence QRegion and QVariant dumper work without debug
info now.

Change-Id: Iea2411175ef67f2bf651ee7eaade9879ed5ceba1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-14 12:38:45 +00:00
Eike Ziller
c635c6b50a Merge remote-tracking branch 'origin/4.1'
Conflicts:
	share/qtcreator/qmldesigner/propertyEditorQmlSources/HelperWidgets/ExtendedFunctionButton.qml
	src/plugins/android/androidrunner.cpp
	src/plugins/debugger/debuggerruncontrol.cpp
	src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp
	src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.h
	tests/system/suite_WELP/tst_WELP03/test.py

Change-Id: Ibac4d71d4f4dbe1e4f05052d2f8a2dcfd82edd4c
2016-09-13 12:15:09 +02:00
hjk
7efa4e8c9d Debugger: Add a comment to dumper README
... on the minimally needed interface for additional backends to
be used with the dumper infrastructure.

Change-Id: I4afb5b5bb16a0499311e70499a6d58e374fce3b1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2016-09-07 13:46:46 +00:00
Thomas Hartmann
76263a71fa QmlDesigner: Move expression editor to component
Change-Id: If569e3f22e2eee34b9033b3e139da597686498aa
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-05 14:41:53 +00:00
Thomas Hartmann
1a8e5f5387 QmlDesigner: Implementing code completion for expression editor
Change-Id: If569e3f22e2eee34b9033b2e139da597686497ee
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-05 14:41:47 +00:00
Tim Jenssen
cf6c4c71a4 Sessions: call method at the model
Change-Id: Id10f0910e2408a579f6bb92719c93967afcc9bd9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2016-09-05 13:06:13 +00:00
Thomas Hartmann
9a0a2a7d27 QmlDesigner: Some improve expression editor
* Double clickling outside of the editor does close the editor.
* Forcing active focus on TextField

Change-Id: If556eff22e2ee934b9043b2e139da597686497ff
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-05 12:55:45 +00:00
Konstantin Shtepa
a3739fb14b Dark theme: fix selection color in help mode
Change selectedBackground color to color from flat-dark theme. Now
selected text in help mode is visible.

Task-number: QTCREATORBUG-16375
Change-Id: Ifed68617784f1303bc168e783e4a73bb9da55c8c
Reviewed-by: Konstantin Shtepa
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-09-05 07:44:25 +00:00
Jarek Kobus
484c9853c0 Update Polish translations
Change-Id: I574d0790f27e31888c178223824fdc21171082c0
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2016-09-05 07:37:53 +00:00
Konstantin Shtepa
590971e898 Dark theme: fix selection color in help mode
Change selectedBackground color to color from flat-dark theme. Now
selected text in help mode is visible.

Task-number: QTCREATORBUG-16375
Change-Id: Ifed68617784f1303bc168e783e4a73bb9da55c8c
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-09-03 20:50:07 +00:00
Gabriel de Dietrich
8fecf8dc97 Welcome Screen: Improve link color in both dark themes
This is mostly tweaking the shades of green to provide
better constrast against the dark backgrounds. Since
the regular and flat dark themes have different back-
ground colors, the link color differ slightly as well.

Change-Id: I39b1aa82c89ff753513d203be696c64483812028
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2016-09-03 17:44:29 +00:00
Thomas Hartmann
4d999cc896 QmlDesigner: The strings for expressions have to be trimmed
Additional whitespaces iriitate the rewriter.

Change-Id: Idadba6947b3b44291f08988a2663ea9864e7eb44
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-02 10:07:33 +00:00
Thomas Hartmann
071439f8b7 QmlDesigner: Fix buttons in expression editor
We were using the wrong icons.

Change-Id: Idadba6947b3b44291f08977a2663ea9864e7eb33
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2016-09-02 10:07:22 +00:00
Eike Ziller
c56aa52b80 Merge remote-tracking branch 'origin/4.1'
Conflicts:
	qbs/modules/qtc/qtc.qbs
	qtcreator.pri
	src/plugins/qmakeprojectmanager/makestep.cpp
	src/shared/qbs

Change-Id: If1787ed23afa786ed2cef57f53c1db642559cbe0
2016-08-31 14:40:38 +02:00
Tim Jenssen
3f8c622caa Sessions: comment the Connections state
Change-Id: I2b865c9679899e10b8cdc032f111bc0ba5149f4c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2016-08-31 09:06:21 +00:00
Alexandru Croitor
3b35d39910 Fix debugger to correctly interpret stdout availability behavior
Previously if program execution was paused, and a c++ command was
executed via executeDebuggerCommand method, which in turn printed
to stdout, Qt Creator would assume that program execution has
been resumed. But in reality the execution was still paused.
Make sure not to report the program execution as being resumed, in
case if something is printed to stdout as a result of a debugger
command.

Change-Id: I8752be00b1bf5bd4767debc2eb26b9a433f251bb
Reviewed-by: hjk <hjk@qt.io>
2016-08-30 08:12:02 +00:00
hjk
00a8573502 Debugger: Fix use of GDB's own pretty printers
... with newer versions of GDB.

Looks like their internal behavior changed (again...)

Task-number: QTCREATORBUG-16758
Change-Id: Ic3a092091bac73df92a3a9f33ab863e4b6ece9b4
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2016-08-26 19:30:12 +00:00