Commit Graph

4946 Commits

Author SHA1 Message Date
hjk
7b462aa0bc Debugger: Startup fixes for LLDB
On Mac, don't ignore the 'attach' stop, as it causes trouble
in the Terminal case. So a terminal start needs extra
'continues' but doesn't crash LLDB anymore.

Change-Id: Iaa72e3f5cfc02d8cd1841fa57e0633109645da31
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-04 14:20:27 +00:00
hjk
b197566eec Debugger: Improve LLDB state reporting
Change-Id: I652755c09e99f9a5d9607b49850ea3350193d086
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-02-04 13:19:27 +00:00
hjk
d4a32fd6b3 Debugger: Implement native mixed breakpoints with LLDB
Breakpoints are hit, stack frames are identified as JS or native.
No further data yet.

Change-Id: I84a02422fd36dc7645003114dd8519bedd913c06
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-02-04 12:46:02 +00:00
hjk
7d4b9c4ba0 Debugger: Move some 'mixed native' code to DumperBase
Prepares reuse in LLDB.

Change-Id: I2238a94937411b80a9ec84ab738aba2146bba50e
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-02-04 11:30:27 +00:00
hjk
3a9b34f232 Debugger: Re-use base infrastructure for LLDB breakpoint handling
Change-Id: If32b1f421e45dc4ee446e193e03c959d7c700948
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-02-04 08:50:19 +00:00
hjk
24afad2c32 Debugger: Adjust Native Mixed to new JSON based protocol
Change-Id: I4a9b9b31bba24a81824303f343115ba7c3709107
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-02-03 14:00:47 +00:00
Eike Ziller
7005d791c3 LLDB: Fix that locals didn't show up anymore
Broke with aa39916c41
It was missing a @ marker to separate mirrored messages from actual
data.

Change-Id: Ie142055181de4fada15060108a6ba2166591012e
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-02-02 14:35:48 +00:00
hjk
aa39916c41 Debugger: Invert LLDB/Python startup order
Instead of starting LLDB through a Python script this now starts
LLDB directly. This did not work a while ago but seems fine nowaday.

Change-Id: I20e915070cd6addf260817c311f4160d010aa861
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-30 15:35:20 +00:00
hjk
f479c1979e Debugger: Move common dumper module code to DumperBase
Change-Id: Id411edcefbb56c480b87829062395dcb5244d2a5
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-01-30 08:49:19 +00:00
Tim Jenssen
7740c3bbec fix spelling
Change-Id: I90ed56266e5464d6f4f42f070ac2003fc5fa0a0b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-29 16:39:40 +00:00
hjk
eafde22e16 Debugger: Handle extra dumpers with LLDB
This generalizes part of the previously GDB-only code paths

Change-Id: Id32798073e3c8bcb23bfedf463bebc866c8275e2
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-29 15:42:31 +00:00
hjk
a6e9f032e3 Debugger: Use Utils::TreeModel for watch window
The circle closes, that's where the code came from.

Change-Id: Ic36ab61ec8886c9a2747aeb29a7245df3ef0b6c4
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-01-29 10:32:32 +00:00
hjk
c5c229b48f Debugger: Delay matplot process initialization
Reduces costs in case the feature is not requested.

Change-Id: I66da6f256baaec6ef9d40bc135942551d58e83da
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-01-29 08:42:39 +00:00
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
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
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
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
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
hjk
4c928f6099 Debugger: Disable GDB's own pretty printers when use is not wanted
Saves up to 20% on large uniform structures.

Change-Id: I98c8c942f0accac7e2db1d8b06bf7ed156967306
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-01-26 09:13:53 +01:00
hjk
d4bdae9a3d Debugger: Make dumper reload with Python 2.x
Change-Id: If23573fab0f951bed0f86b70500dd7e9862df887
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-22 12:57:15 +01:00
hjk
61c49a122f Debugger: Initial shot at native Qml-and-C++ debugging
Only for GDB now, requires a debug build of Qt, not feature complete.
To enable it, run with QTC_DEBUGGER_NATIVE_MIXED=1 and press
the 'oo' button in the debugger toolbar.

Change-Id: I28aac9db13f7067e03cc364b89cc8046fa213dae
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-01-22 12:39:02 +01:00
hjk
cca1030432 Debugger: Add python command to add dumpers
More flexible than hacking on the C++ side. Also registers
the custom dumper path to make it reloadable like the
"built-in" dumpers.

Change-Id: I0405f7278e28eb75d83fdd4a861f5a5c32d97a0e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-01-22 10:55:36 +01:00
Thomas Hartmann
39107ca298 QmlDesigner.PropertyEditor: Remove Slider from SpinBox
The integrated slider in a SpinBox did not work well.
Sliders do crash on Yosemite if maximumValue and minimumValue
are the same.

Change-Id: If1a5fe5109591bc8198c5659f10e73ebaeb8c636
Task-number: QTCREATORBUG-13842
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2015-01-22 10:23:51 +01:00
Thomas Hartmann
e421b348bb QmlDesigner.PropertyEditor: Fix minimum value of PathView dragMargin
Change-Id: I597ebdef0797a3184b9480215b85b59797aa59d8
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2015-01-22 10:23:43 +01:00
Thomas Hartmann
83c69fe6e8 QmlDesigner.PropertyEditor: Increase maximum SpinBox size
This fixes glitches for numbers > 9999.

Change-Id: Ib49ff4c3a8da3caaf19b713fa309563349e48501
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2015-01-22 10:23:31 +01:00
Eike Ziller
3c85058694 Update License
Change-Id: I711d5fb475ef814a1dc9d2822740e827f3f67125
Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
2015-01-16 12:37:56 +01:00
hjk
d573195b67 Debugger: Improve handling of imported system dumpers
At least for a few cases (std::string, vector, ...) this can succeed.

Change-Id: Idfa4ced4cb20295472d001181a83373acd89883a
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-01-15 11:13:22 +01:00
Eike Ziller
df3176d5e3 Merge remote-tracking branch 'origin/3.3' 2015-01-14 16:06:46 +01:00
Jan Arve Saether
fbef612ede Fix "nmake ts-de" on Windows.
Local filenames should have the "file:///" prefix when passing them on to
the XQuery (if there is no host).

On Linux this worked without the prefix, while on windows QUrl got
confused by the colon (interpreted as the host:port separator).

For Unix filesystems, they will get their third slash from the first
slash in the absolute filename (when appended to the file:// prefix)

Change-Id: I41abed4821f1f253a13cc829eed8cb38e8e77bdc
Task-number: QTBUG-43417
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2015-01-13 12:51:24 +01:00
Oswald Buddenhagen
10e6c40e16 fix exclusion of qbs from tr()-collection
note that the TR_EXCLUDE is actually not used currently.

Change-Id: Ifc89587029e2c025d1e0253794668a515127a43f
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-01-09 16:05:49 +01:00
Eike Ziller
b5b47f7df2 Merge remote-tracking branch 'origin/3.3'
Conflicts:
	src/plugins/cppeditor/cppdocumentationcommenthelper.cpp

Change-Id: I2cf25eba1de149765a6c44ad354d606ce9de512d
2015-01-08 10:38:20 +01:00
Orgad Shaneh
ecd9c4c813 Dumper: Fix some more internal dumpers
Change-Id: If17614d1fa451bb93cfe5a6ea06af39986d7ad4d
Reviewed-by: hjk <hjk@theqtcompany.com>
2015-01-08 08:04:23 +01:00
Tasuku Suzuki
9cdede0174 Fix a typo in share/qtcreator/static.pro
Change-Id: Ic5ef242c0cd66a857ab3625ee4f870555d27d415
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-01-08 04:44:11 +01:00
Robert Loehning
566aaba933 German translation
Change-Id: If9869a5d4e0999a7422a5e876ef4b69202b371e7
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
2015-01-07 13:40:22 +01:00
Thomas Hartmann
bced09cd1f QmlDesigner.PropertyEditor: Fix control for saturation
If the lightness or saturation are 0 then hue is undefined.
If lightness is 0 then saturation is undefined/0.

Nevertheless we should keep the old values in the ui, because
the user should not loose the values in case he increases lightness
or saturation later.

Change-Id: I9fd80f6ca84fa08ef62d9fbb6dd4afce992c3546
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2015-01-06 14:39:13 +01:00
Orgad Shaneh
8f920be61b Dumper: Fix PPToken dumper
Change-Id: Ia6a062319fdcd84a16e83e8f9c96a440f7e4dec9
Reviewed-by: hjk <hjk121@nokiamail.com>
2015-01-05 08:36:31 +01:00
Robert Loehning
475c065dc8 Removing wrong info from Qt Quick Controls 1.3 template
Intentionally breaking string freeze.

Change-Id: I163e9e1148e46e539b02f8adb4f6c1e3d58da102
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2014-12-18 16:59:11 +01:00
Oswald Buddenhagen
32b8e71bb7 prune some more qt4 vestiges from project files
Change-Id: Ic71e1b4f10b08274d109c24c7c9de7724b25962b
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2014-12-18 16:26:52 +01:00
Eike Ziller
fd6ba0e2a6 OS X: Welcome/QQuickWidget fixes
The rendered text is still ugly, but the fuzzy text is better than the
alternative currently.

Change-Id: Id9e54fb406ee964e0b9b5c40b7a8108b45c15f85
Task-number: QTBUG-42861
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2014-12-18 15:39:18 +01:00
Eike Ziller
196e0d76e6 Welcome: Fix compilation with QQuickWidget
Use the background color property in the QML code instead of relying on
QQuickView::setColor

Change-Id: I556515a42d9483f88500fa5a5c56ea21f48fa685
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2014-12-18 15:37:43 +01:00
hjk
3743211e54 Debugger: Rework register handling
Use register names as handle, not their index in the view.
Store the raw real values, not some stringified version
as primary data.  Use subentries to break down bigger
registers into smaller entities. Also remember the
previous value of a register and show it in a tooltip.

Change-Id: I8ae3cc8766a7b211bc7cc827c734e5cf6060825c
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
2014-12-18 12:53:46 +01:00
hjk
8815990903 Debugger: Fix std::unordered_* dumpers with GCC 4.9.1
Change-Id: I5d5ed9cfc68af061970b0055b76cb563ca04ee53
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2014-12-12 13:54:37 +01:00
hjk
20396d7809 Debugger: Use Python for GDB stack extraction in native mixed mode
Change-Id: I7ca4a080c9b5e5992f44e5f3d8aa5af7296abe99
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2014-12-12 12:36:41 +01:00
hjk
62d21d123c Debugger: Remove traces of outdated attempt at combined stepping
Has not been usable for a while and will be superseded by
"native" mixed stepping.

Change-Id: I2902a98b7ad4e4b29e389e54fb6488bf711840dd
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2014-12-12 10:53:43 +01:00
hjk
48915c6231 Debugger: Rename variables named 'type' in dumpers
It's confusing in the presence of the global function of that name,
and it's better to distinguish type names and type objects anyway.

Change-Id: I3e0674dbc96a8e2b245ed61fabd2fe7cac5a72e5
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2014-12-12 10:27:46 +01:00
hjk
5e19f322cf Debugger: Move listOfLocals to Dumper class
We will need access to more dumper data later.

Change-Id: Id8fe09b192ac7d2ae822a0323cda13c0e2ff81e3
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2014-12-12 10:27:18 +01:00
hjk
48c6decb07 Debugger: Remove some spaces in debug output
Change-Id: I69c4a00d4dfef91aa2727c295246845bef70b4bc
Reviewed-by: hjk <hjk121@nokiamail.com>
2014-12-12 10:14:32 +01:00
hjk
62803ada4d Debugger: Add some convenience helpers for python dumpers
Change-Id: I7fc35ea571895024e9da597d30167e02eda7df47
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2014-12-12 10:08:42 +01:00