Commit Graph

39557 Commits

Author SHA1 Message Date
hjk
ed2a84c822 Debugger: Prevent LLDB choking on extra dumper paths
Change-Id: I230a05274e95430162c3f2d05de5d93bf4985b4e
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-28 17:21:42 +00:00
hjk
d7f364f915 Debugger: Generalize Locals&Expression tree item parsing
An intermediate step to move the engines one by one to direct
WatchItem construction.

Change-Id: I563582498c4eeb3d604dfa046722133ab6d24650
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-28 17:10:44 +00:00
hjk
e9237c20c6 Debugger: Work on LLDB auto-test on Linux
Write the full command to a temporary file for easier re-use.
Un-ignore the first stop, this does not seem to be needed in
the new async setup.

In some cases LLDB is not able to extract the even the top most
frame of the stopped thread (happened 2 out of 100 runs of the
QDateTime dumper). It's unclear why. For now just report the fact.

Change-Id: I76a63bc288f1ae6f5bd9b9604a47f051912b93d7
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-28 16:29:10 +00:00
Orgad Shaneh
885c8f8f66 C++: Use cr/lf on Windows in cplusplus-update-frontend
Change-Id: I6d607177b12ef4f55cfbaa2c0e339216627906ec
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-01-28 16:22:28 +00:00
Nikolai Kosjar
3b0836274d C++: Correct src/libs/cplusplus dependencies
There is no dependency to languageutils, but we now depend on cplusplus
since we use/call Utils::FileName and Utils::FileDropSupport.

Change-Id: I18ca659ec3023a146e9e358e33dabbf9805fb6ce
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-28 16:16:40 +00:00
hjk
999a11a745 TreeModel: Fix model back pointer propagation when adding items
Only the top level entry was handled so far, but we might add
items with subitems.

Change-Id: I55084a1f595f4982bd37168e71b144b17eee63b1
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-28 16:09:50 +00:00
hjk
706c826bc1 TreeModel: Make item flags configurable in "group header" constructor
Default to 'editable' (not selectable), intentionally changes behavior
in the Kits, Compilers and Debugger option pages, but brings it more
in line with Qt version.

Change-Id: I71739a5d61c9980fc6da729dcb59b0900047f066
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-28 16:09:38 +00:00
Tobias Hunger
ae6730d76d DiffEditor: Convert more connects to Qt5 style
Change-Id: Ie1da8e093bd28f0a2ad0fe34b860008a7484ed5f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
2015-01-28 15:22:15 +00:00
Nikolai Kosjar
9bdb2a69be C++: Tools: Remove superfluous QT_NO_CAST_FROM_ASCII
It's pulled in by including qtcreator.pri.

Change-Id: Ief408b586d81780187392afbcadc0aea497e55aa
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-28 15:02:14 +00:00
Christian Kandeler
5496631ca3 Update qbs submodule.
To HEAD of master branch.

Change-Id: I122490c50ac7ca2abd0dabe63875e6e17ad83602
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-01-28 14:08:57 +00:00
Tobias Hunger
0ed08bdfdf Git: De-noise code
Change-Id: Ibcae2f432b3a9262e9c7c23cf2d8f9ca018cd771
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
2015-01-28 13:35:08 +00:00
Tobias Hunger
bdae49c474 DiffEditor: Use Qt5 style connects
Change-Id: I051b2128620bf0317b359852007463c6601ceaca
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
2015-01-28 13:35:05 +00:00
Tobias Hunger
d527b11daa DiffEditor: Save a little space by reordering members in Controller
Change-Id: I3051979a2ada5650021370667e8979eb25d0467f
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
2015-01-28 13:35:02 +00:00
Tobias Hunger
d8d93b7282 Retrieve output from journald
Qt nowadays logs into journald in some setups, so retrieve the output
from there and put it into the application output pane.

Change-Id: Ia2199a1420e1d80541f2f455e242d0b473922125
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-28 13:11:59 +00:00
David Schulz
4b51064b45 Editor: Don't change the focus when setting a new view.
Move the focus logic to activateView. Use activateView
when it makes sense.

Change-Id: I79ad11eea629fc1aaa194ecdd8995f5965d1b806
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-01-28 12:52:59 +00:00
Orgad Shaneh
97d957e3e3 Utils: Introduce FileName::fileName()
* Replacement for QFileInfo::fileName()
* Supports additional path components

Change-Id: I2b3e3dfb02617c8f98f1d67e16396bed97f97526
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-01-28 11:42:41 +00:00
Christian Kandeler
e7a18108e1 CppTools: Fix macro collection.
"#define XYZ" does not correspond to "-DXYZ" (which means
"#define XYZ 1"), but to "-DXYZ=".

Change-Id: I3ed44e1457b3df52dc9bdb930ba8f4a04784d207
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-01-27 15:25:23 +00:00
Tobias Hunger
56637a5d25 GitClient: Use Qt5 style connects
Change-Id: Idc7d5d2a52627d8a328c28863bb99174ad0154e5
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-27 14:52:45 +00:00
Daniel Teske
e57ed31c33 Android: Replace setting for input .json file and use active rc instead
That's a more natural approach to select the application .pro file

Task-number: QTCREATORBUG-13732
Change-Id: I8c6745bea4b408e1d4f7ed2cd4e1d50798c60881
Reviewed-by: BogDan Vatra <bogdan@kde.org>
2015-01-27 14:32:23 +00:00
Tobias Hunger
2477df97fe GitEditor: WS only fix
Change-Id: I7426b8d0c09edaa7e2eb7ce58d0cec58e6e90da7
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-27 14:23:22 +00:00
Tobias Hunger
99c03c0e68 SVN: Fix warning raised by clang
Change-Id: I95805056160c17030af4d81792c05c48e95da84f
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-27 14:21:40 +00:00
Christian Stenger
512055d36d Debugger: Fix context menu item text
As it is possible to delete more than one selected breakpoint it
should be indicated in the menu.

Change-Id: Iabf6d4313e65bb65d7e822b05f448f459a7ae3a5
Reviewed-by: hjk <hjk@theqtcompany.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2015-01-27 14:13:37 +00:00
Eike Ziller
f064dd1b27 Extract a fading indicator widget into utils
That can show either a pixmap, or some text.
Used for the wrap indicator when searching, and for the 'presentation
mode' of action manager.

Change-Id: I4d603fb5750d7539c50de7ef8fd6c8545293d5b9
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-27 13:48:26 +00:00
Christian Stenger
7193f932d1 Scripts: Fix gathering of xml tag content
If content was read partially the script stored only
the last read part instead of the whole content.

Change-Id: I331eacbd3a7321fabd32b8addec67ad01a722ed3
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-27 13:22:04 +00:00
hjk
8e83b6cf01 Debugger: Update doc URL in personaltypes.py
We all know that site migrations are fully automated and do
not cause any extra work.

Change-Id: Ibb66493fa1e564c54abb21e2f9a2f16242289957
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-01-27 12:24:19 +00:00
Christian Stenger
ed437bb656 Dumper: Fix failing GDB startup when using MinGW
Task-number: QTCREATORBUG-13892
Change-Id: Ia843cf4d88c574013e67cacaa8484b52fdbd4b8a
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-27 11:41:12 +00:00
hjk
f2cfd3c01a Debugger: Allow app bundles in 'Start and Debug External...'
Change-Id: I04274e8e52d3447166382b881c0a014e1d3ef70b
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
2015-01-27 09:27:40 +00:00
Orgad Shaneh
f24cadab78 Dist/GDB: Upgrade to 7.8.2
Change-Id: Icb5cc20329d51d7557ea6e939398263261ff3251
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-26 22:12:20 +01:00
hjk
962649317b Debugger: Make LLDB autotest produce output on Linux again
Change-Id: I0ea21b248b51a871753f66e386fd125df1d1ead5
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-01-26 22:09:24 +01:00
hjk
31fecb0820 TreeModel: Add more item functions
canFetchMore/fetchMore, and insertChild (at given position). Make
prepend/appendChild use the latter.

Change-Id: I4162fe6e64f37d26de209aa81894c9730957694b
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-01-26 22:09:11 +01:00
Nikolai Kosjar
93e82d731e CppEditor: Move CppEditorOutline to CppTools
Change-Id: I75768f548f8f914e76fbdeaf3c318c207782fe1b
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-01-26 18:15:29 +01:00
Nikolai Kosjar
21e50b2fde CppEditor: Make CppEditorOutline independent of CppEditor plugin
Change-Id: I1cafcd8daf93ffc2f672bf7e2ba5d1c8ea5e8652
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-01-26 18:15:25 +01:00
Nikolai Kosjar
db57fa8948 CppEditor: Make CppEditorOutline independent of CppEditorWidget
This enables us to move CppEditorOutline easier to CppTools, from where
it could be subclassed by the ClangCodeModel plugin.

Note that there is still the dependency to cppeditorplugin.h (setting
sortedOutline).

Change-Id: Ie595fb19d58be1c4339498a2dce9b97097867490
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-01-26 18:15:18 +01:00
Nikolai Kosjar
cfd3b56187 CppEditor: Move CppEditorWidget::linkToSymbol to CppTools
* Cuts direct dependency to CPlusPlus from cppeditor.h, but
  cppfunctiondecldeflink.h still pulls it in.

* Cuts direct dependency to
  cppeditor.h from cppvirtualfunctionassistprovider.cpp, but it still
  depends on cppeditorconstants.h.

* Cuts direct dependency to cppeditor.h from cppelementevaluator.cpp.

The long-term goal is to make the CppEditor independent from concrete
code model backends.

Change-Id: I291ee0d0da5fc5ed1a839a763fe7be11dcf7a6fb
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-01-26 18:15:10 +01:00
Lorenz Haas
f08266497e CppEditor: Add new QuickFix MoveAllFuncDefOutside
This QuickFix behaves like MoveFuncDefOutside except it moves all
member function definitions. It is triggered on the class name.

Change-Id: I1393a51cad521a7bb58a1ed6223ab0fe4db0e592
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-01-26 17:52:40 +01:00
Lorenz Haas
e58b326a29 CppEditor: Fix AssignToLocalVariable
Make calls like a->b()->c() assignable to a local variable.

Task-number: QTCREATORBUG-10355
Change-Id: If4a55b435c99150710d00567188f901acb2c1a89
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-01-26 17:52:18 +01:00
Hugues Delorme
ba8c7c91d0 Svn: add "Verbose" option for log command
Change-Id: If58a98ff45ceba251c6972099d38d2ce506422c9
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-26 17:49:43 +01:00
Christian Kandeler
ea1efad6f1 CppTools: Support MSVC in CompilerOptionsBuilder.
Needed for clang static analyzer.

Change-Id: I0221b7e87f7b52a4aa5ebf7f4b26c19e584d63e7
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-01-26 17:01:40 +01:00
Eike Ziller
f5a3c7cf17 EditorView/Placeholder: Avoid huge text on some systems
Change-Id: I80456b0c861feb670caec7cca26e0bc9b1516766
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-26 16:33:54 +01:00
Hugues Delorme
520c16b448 Svn: move common constants in subversionconstants.h
Change-Id: Ib97a2ee90a4ed4dc2740654f1e210f4dcc9579cf
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-26 14:59:56 +01:00
Yuchen Deng
e4b48265ff Welcome: fix qbs build
Change-Id: Iaf0b2e8e53f58dbc753b9681538c60824f8a67b9
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-01-26 14:50:14 +01:00
hjk
787b4455c7 Debugger: Modernize lldbengine.cpp
Change-Id: I4d2c7b51cc4beb3edebf6995df1ce269f9c2c8db
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-01-26 13:39:36 +01:00
Christian Kandeler
cdc6d45a8a qbs build: Add the possibility to include additional autotests.
For plugins that don't live in the main repo.

Change-Id: Iebe4b05bfb60f86531ec82a4ae555fdfaac39ead
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-01-26 12:38:10 +01:00
Nikolai Kosjar
4e05b073eb Debugger: Fix compilation with MSVC2013
Change-Id: I7c40720ab426bcb5743cc4bccf656e54b7d8a45a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-26 12:35:36 +01:00
Tobias Hunger
94f1196cc3 ClearCase: WS-only change
Change-Id: I9ce7debe597776a709098935b2289df8accca54a
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-26 11:55:07 +01:00
Tobias Hunger
6d035df0d5 SynchronousProcess: WS-only change
Change-Id: If4cf8d48b4176590968d170776f4ecd186b4a3ec
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-01-26 11:54:55 +01:00
Nikolai Kosjar
51219a8815 {Qbs,QMake}ProjectManager: Make executable selectable/copyable
Change-Id: I7947ec85173f0898d54333f174fa6c14bcb051d6
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-01-26 10:07:34 +01:00
hjk
3c8a8eb8e8 Debugger: Introduce a pty based channel to inferiors
This is experimental for now and requires QTC_USE_PTY=1
in the environment to be used.

Change-Id: I460ce7b9283467d481e903f731f4243b7e5ec094
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-26 09:43:19 +01:00
Christian Stenger
7022d73970 Dumper: Avoid output of plotting subprocess on console
Change-Id: I2e1cfc95b556b7d0c2fc1770523d43159790aae1
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-26 09:19:09 +01:00
hjk
4ea0138423 Debugger: Replace gnuplot by python-matplotlib for graph dumper
Better functionality and availability than the gnuplot version.
The feature ("Show array-like data in external plot window")
will be automatically enabled if 'from matplotlib import pyplot'
succeeds.

Change-Id: I1799534ac5f878d3e43e47289d1b563b52bb4378
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-01-26 09:14:08 +01:00