Commit Graph

28971 Commits

Author SHA1 Message Date
hjk
1d808ea8bc Debugger: Populate stack view with LLDB backend
Change-Id: I9808829559da65cd152d2455737f6c7f394da6b3
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-08 12:48:52 +02:00
Marco Bubke
bb13b8d65e QmlDesigner: Fix memory leak because of template magic
Be careful if you use a private smart pointer.

Change-Id: Ia78583b080c8d936d98517c55d3294d3040f8cdb
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-04-08 12:47:10 +02:00
Eike Ziller
8b5b2e43eb Allow jumping to column with Locator filter.
With the line number filter with "<line>:<column>"

Change-Id: Ie8832fb1e218fe78cc40885da24716e844974924
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-04-08 12:42:31 +02:00
hjk
7107fd1591 Debugger: Pass output from plain gdb pretty printers hex-encoded
This takes care of "unusual" contents.

Change-Id: I5e9ce2066281d169e88a58e85e6d4dd590760e2a
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-08 12:27:59 +02:00
hjk
066efcd6a6 Debugging on Android
This implements the host side of
https://codereview.qt-project.org/#change,50290

Change-Id: I13c7df29534a2a85202c2b295b139896443b0120
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Reviewed-by: BogDan Vatra <bogdan@kde.org>
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-08 12:05:44 +02:00
Thomas Hartmann
63f3a51060 QmlDesigner: for new code use QPointer instead of QWeakPointer
QWeakPointer is deprecated for tracking QObjects in Qt 5.

Change-Id: I3e9089b25f43b42a478aa4cd4073cbdfd0da3823
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
2013-04-08 11:52:25 +02:00
Erik Verbruggen
4b199b06d5 Fix use of std::make_pair so it compiles with C++11.
Compiler error:

../3rdparty/botan/botan.cpp:21912:17: error: no matching function for call to 'make_pair'
         return std::make_pair<struct dirent*, std::string>(dir, m_cur_dir.second);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/c++/v1/utility:444:1: note: candidate function [with _T1 = dirent *, _T2 = std::__1::basic_string<char>] not viable: no known conversion from
      'struct dirent *' to 'dirent *&&' for 1st argument
make_pair(_T1&& __t1, _T2&& __t2)
^

Change-Id: I1a8782956cf0a105fe2f12bf6f8470242a54a3a5
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
2013-04-08 11:51:56 +02:00
Petar Perisin
0dee89bac1 Git: added rename branch
Change-Id: I327a2bc91b871dc03797d9af52bb2d32be8e76d2
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-08 11:25:46 +02:00
Erik Verbruggen
2d50011716 C++: pre-allocate the output buffer.
This prevents a whole lot of re-allocations when the output byte array
needs to grow. It also prevents some heap fragmentation for big files.

Because the preprocessed output is short lived (it will be parsed
immediately after, and then discarded), it is not squeezed to the
minimal size. This would result in another allocation.

Change-Id: I4974be5144f88cdfc4ddc9d8330200725aa90803
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2013-04-08 11:20:55 +02:00
hjk
1d580bcf9f Debugger: Remove workaround for GDB < 7.2 missing frame.block
This practically means that the >= 7.2 requirement is now a hard
requirement.

Change-Id: I6c3abbc625443ded182d2da101e04d96e3bed26d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2013-04-08 10:56:37 +02:00
hjk
ecbdc68c96 Debugger: add some food for the threads view in the LLDB backend
Change-Id: I6d8ea11d6c6e1206e5d1c3f13a51ae0521f25a85
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-08 10:56:22 +02:00
Orgad Shaneh
d63e38b021 Git: Fix breakage in parent commit lookup
Broken by fe1f7e4bf6

Change-Id: I8212b306d52ee96320a0b14f6f616b48aa928703
Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-08 10:43:28 +02:00
Petar Perisin
9dce1fe429 Coding style modifications
Change-Id: I098cbde76e844229f189eb05d0e0b5013af8c5fd
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2013-04-08 10:33:14 +02:00
Christian Kandeler
a167286b3f Ssh: Get confirmation from user for overwriting an existing key.
Change-Id: I3d74423ef647fd59d303517b0a0e987b24973095
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-04-08 10:28:08 +02:00
David Schulz
6c12a06029 Editor: Added Dialog for read only files.
Task-number: QTCREATORBUG-2851
Change-Id: Ic47a5a1833650e31b4e27d0a01259d6b398a6415
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2013-04-08 10:16:11 +02:00
David Schulz
f9c31b4c6b Debugger: dumpertest: Dump expanded locals
...separate for the cdbengine. Workaround for
all symbols with virtual children.

Change-Id: I166b30af6594bde1093896156d86b28f02ed8a6a
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-08 09:35:28 +02:00
Robert Loehning
376a90e028 Added second button to message box
Change-Id: I59ec1c5000afcdd2c91ed55c32aaae11b95b620a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2013-04-08 08:58:20 +02:00
hluk
5041378c6c FakeVim: Enable text transforms to work with 'passkeys' option
Commands like 'ciw', 'gUl' work with renaming and code completion if
'passkeys' option is enabled.

Change-Id: I0cd69e13a0e7773d7cba82e571cc855aa90af7ba
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-08 08:45:25 +02:00
hluk
12deff2fdd FakeVim: Reworked undo/redo
Don't use QTextCursor::beginEditBlock() and others since it can change
the behavior of underlying editor widget. Use these methods only for
interrupting current edit block.

Change-Id: I848d6287faeeaad9c04a76758bd0b2cc673ad2ef
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-08 08:41:32 +02:00
hluk
bea40d99b9 FakeVim: More precise scrolling
Emulate Vim scrolling behavior. Consider only fully visible lines in
editor widget.

Don't ignore last empty line in document.

Change-Id: Id2c4fd744fb3c4c69324ea6456db424186563bc9
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-08 08:37:47 +02:00
Friedemann Kleint
0f11e6da77 Fix toplevel in Qt Designer plugin.
The toplevel is used as a parent for Designer's dialogs and for dragging.
Currently, when using Qt 5, for example the dialog about missing resource
files shows up at 0,0 and and Accessibility on Windows emits warnings about
incorrect hierarchy since the Editor manager is not visible in Design mode.

Change-Id: I49e77db89bf93e8342beb3e4ace764a14d0231f1
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
2013-04-06 08:29:50 +02:00
hjk
4efd12a755 Debugger: Add LLDB to dumper test infrastructure
Not working yet.

Change-Id: I87bd15d8c4aee491404b57842884220103a63e1f
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-05 17:23:15 +02:00
Leena Miettinen
b8acad5365 Doc: VCS information is visible in the Projects pane
If available, the name of the branch from which the project
was opened is displayed in brackets after the project name in
the Projects view in the sidebar the Edit mode.

Change-Id: Iffec0c8b1a822605f3bbd9d94a1d84aba0cda2e2
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 17:18:50 +02:00
Robert Loehning
f4eddb96ea Squish: Using default installation of Qt5 on Windows
Change-Id: Ib1ec62fce66487591cadb8c0bec0d378721ebbb0
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-04-05 16:38:12 +02:00
Aurindam Jana
7572dada36 DesktopDevice: Set device state as Unknown
Change-Id: If3354eb1313e385c6db66b956e2abe06818d8f54
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 16:18:01 +02:00
Tobias Hunger
25319ddf19 SettingsAccessor: Remove some code that is no longer needed.
Change-Id: Ib250ed590736b57b7898547303ae6e481e688322
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-04-05 16:17:25 +02:00
Tobias Hunger
acda3403a5 SettingsAccessor: Backup old settings again.
Back up when saving. That is more robust when several instances
work with the same project at the same time.

Change-Id: Id4bfd5eab4184934f66909dcf7a580fef1e104ae
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-04-05 16:17:13 +02:00
Tobias Hunger
0addee8bac SettingsAccessor: Split out reading of shared settings and the merging
Change-Id: Iccf9b88ba7f778ccdc17e088a60680a8d5cf840b
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-04-05 16:17:08 +02:00
Tobias Hunger
8113106f43 SettingsAccessor: Find better matches for .user files
Consider all possible .user files and pick the one that
matches the current version/environment best.

This patch removes backing up .user files while reading
them. A later patch will fix this again.

Change-Id: I2991eddccd2cdd610aa2e96d79ae7d55866e9485
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
2013-04-05 16:16:55 +02:00
Friedemann Kleint
9393335c1d Clean headers in Git.
Ran script to remove inludes on a trial-and-error basis and
manually corrected it.

Change-Id: Ib2afbc530760684db96888b927c5153b29fe24aa
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 15:10:02 +02:00
Knut Petter Svendsen
ffb2f2ccf6 ClearCase: Add const to ClearCaseSync
Change-Id: I89948ee300831ceddd0dd6d23e83bc5f7d2f8bf1
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2013-04-05 15:06:55 +02:00
Knut Petter Svendsen
c7cd4c9aa4 ClearCase: Assume Read Only file is Checked In for dynamic view
Assume that read only files on dynamic views are checked in files.
That assumption gives a better status until all files are indexed.
Once all files are indexed the correct state will be used (in case
the assumption was wrong).

Change-Id: I7097b89801b6798399560d727566419e72f13b2f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2013-04-05 15:06:46 +02:00
Tobias Hunger
75691393ec Project: Set QML/C++ languages where both are possible
Change-Id: I4bc5bd7a644c48dfa529f9f9f6052e401de76d40
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 14:56:59 +02:00
Tobias Hunger
ace6829742 DebuggerRunConfigurationAspect: Suppress widgets as necessary
Suppress widgets of the DebuggerRunConfigurationAspect widget as
required.

Change-Id: I4e384d4e725bd95bea51465e28e26ece3e2f5cc8
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 14:56:48 +02:00
Tobias Hunger
fd1f284892 RunConfigurationAspects: Move method to create config widget
Move the method used to create a config widget for a
RunConfigurationAspect from the RunControlFactory into the aspect
itself. This allows for aspects that are not bound to any factory,
which is what I eventually want to use to hold the environment for
run configurations.

Change-Id: Icceb5f44ca9eb63a87b9c7bb6468ff30dab943c2
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 14:56:35 +02:00
Tobias Hunger
533644290f Move DebuggerRunConfigurationAspect into Debugger
Change-Id: I03cab5d963a6d7c77171efe360a552d8109f6a8b
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 14:56:25 +02:00
Tobias Hunger
e474b6ed8f Demote debuggerrunconfigurationaspect
NOTE: Next patch will be "Move DRCA to Debugger plugin" and is
needed to make this functional.

Change-Id: Ie405a0e4fbdc0fb35ff16d34c725e7aee5153a4a
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 14:56:12 +02:00
hjk
21da8c641d Debugger: Add dumper test for inheritance edge cases
Change-Id: Ia4db7dfc0a0182126255393730d15d12abaf369b
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-05 14:29:43 +02:00
Robert Loehning
970b55b125 Squish: Added Qt5 to default desktop kits
Change-Id: Iefb0db16224c5b044ea0019be7d2914cc4b4892e
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-04-05 13:54:14 +02:00
Robert Loehning
b8773c9a7d Squish: Prepare tst_simple_analyze for Qt5
Change-Id: I91caa064e002cc2ab409ec9b1c30ec57c1adb5a9
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-04-05 13:52:14 +02:00
Tobias Hunger
4ff8440f71 SettingsAccessor: Move reading of user settings into a method
Change-Id: I284052fdd9a48335ef75b239dcc08512822ce089
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 13:47:40 +02:00
Tobias Hunger
bd5e8b3f7c SettingsAccessor: rename variable
Change-Id: I78c41f89a6da05b340790ee7feeb976a327e2a4a
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 13:47:15 +02:00
hjk
e262596dc4 Debugger: Remove workaround for GDBs with broken parse_and_eval
This mostly affected pre-7.2 version which we don't officially
support anymore anyways. No need to waste cycles on them.

Change-Id: I748cb2be6c5d4161c4129f51809cf3cc358e0be0
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-05 13:37:48 +02:00
hjk
1711dadb9c Debugger: Shift typedef stripping into the only branch that needs it
Change-Id: I683d808059a82b7a80465a94cddb7b3b4a6af1b7
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-05 13:28:59 +02:00
Tobias Hunger
ec7738df7b SettingsAccessor: Move handling of environment Id into file accessor
Change-Id: I0712358cce12066bc5dd91c00ca387c050644150
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-05 13:23:45 +02:00
Leena Miettinen
3a51290fb9 Doc: fix misleading information about indentation
Intentation is set separately for text files that contain
C++ or QML code and other text files.

Change-Id: I5106d794ad516f745b07b0ebbb94bd4a652060d8
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-04-05 12:51:17 +02:00
Christian Kandeler
ab51784abb Device support: Change text on button for listing processes.
"Remote Processes" is no longer a good description, since we also have
the desktop device.

Change-Id: I3d73eb7c4a040e375cde141eb203b274449242d8
Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
2013-04-05 12:22:50 +02:00
Aurindam Jana
f8bc2cbae5 DeviceManager: Allow user to configure desktop device
Show desktop device in the Devices options page. Allow
user to configure the port range for the desktop. These
ports can then be used by others such as QML Debugger.

Change-Id: I8c4a96207e54f58d1e9bc18c417cb378dc9f70c2
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
2013-04-05 11:47:26 +02:00
hjk
ca5ebc33fa Debugger: Make struct field access backend specific
Change-Id: I9ad0a299e3483bebafba6bb1e5c623d9ee2b6c00
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-05 11:44:09 +02:00
hjk
70fc039796 Debugger: Show simple values with LLDB backend
Change-Id: Iccef8c0ddb1951da1b09b13b1ce2a0cee716c30f
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-05 11:40:34 +02:00