Commit Graph

261 Commits

Author SHA1 Message Date
Tobias Hunger
5a79945ef6 DebuggingHelper: Move to QtSupport
* Move debugginghelper to QtSupport. ProjectExplorer should not start
  looking for Qt versions!
* Make autotools and generic project plugins depend on QtSupport

Change-Id: If28418a85e3696cba713e66148c893a5a9b6adc7
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-05-18 15:48:26 +02:00
hjk
071b24d97e debugger: fix translation contexts
* add a few Q_OBJECT
* change DebuggerRunControl::tr() to DebuggerPlugin::tr()

Change-Id: I7ed973ea71b3492e91b45784595d9471587f72ea
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-04-24 17:07:29 +02:00
Oswald Buddenhagen
822233629d Merge remote-tracking branch 'origin/2.5'
Conflicts:
	qtcreator.pri
	src/libs/utils/utils.qbs
	src/plugins/projectexplorer/miniprojecttargetselector.cpp
	src/plugins/qmljseditor/qmljseditor.qbs
	src/plugins/qmljsinspector/qmljsinspector.qbs

Change-Id: Ib239d50c21cb06d3a8e821e03dc093552f40ffab
2012-04-19 16:13:09 +02:00
hjk
91cdadcbb6 debugger: disable the gdb fallback for MSVC compiled binary
The result of using gdb on msvc compiled binaries is not satisfactory.
It essentially shows raw disassembly only and allows switching
threads after user initiated stops. No breakpoints etc.

It is expected that people would never use the msvc/gdb combination
consciously so it seems better to not provide the feature at all.

Change-Id: I8918103e44643bfa1ad0b419a911a232f8a5299e
Task-number: QTCREATORBUG-7309
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: David Schulz <david.schulz@nokia.com>
2012-04-17 16:11:56 +02:00
hjk
5b0bf61640 qtcassert: move actual printing to separate function and enforce style
This also allows simple setting of breakpoints on failed asserts.

Change-Id: I6dd84cbfaf659d57e39f3447386cebc0221b2b84
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-04-17 09:53:44 +02:00
hjk
f67c6dba11 debugger: prepare naive handling of multiple inferiors
Change-Id: I2ea81b1a9407ae7e5045aadf43b0c2d971fc615b
Reviewed-by: hjk <qthjk@ovi.com>
2012-03-28 10:47:06 +02:00
Orgad Shaneh
280c7877d8 Debugger: Clear message on attach to core
If a usable engine was found, there is no reason to display errors
set by another engines

Task-number: QTCREATORBUG-7150

Change-Id: I50cec27a127a0af34b5287c389df6ce6a797bb3e
Reviewed-by: hjk <qthjk@ovi.com>
2012-03-19 17:20:32 +01:00
Kai Koehne
f49098683a Debugger Settings: Make sure that Cpp, Qml checkboxes are initialized
Change-Id: I3fbced75504afd797346aa892a9f71e37c71f118
Reviewed-by: hjk <qthjk@ovi.com>
2012-02-29 13:24:46 +01:00
Christian Kandeler
75c20e4dce Run configuration: Make debugger aspect display more configurable.
Change-Id: I4da0d92552146b9fa7a2236bce2f2ed0c9fe6147
Reviewed-by: hjk <qthjk@ovi.com>
2012-02-24 16:08:30 +01:00
hjk
5898dc449e debugger: make qml port spinbox supressable in debugger runconfig aspect
Change-Id: I0d6e18e393e07b101c1b429825a8897a15317034
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2012-02-24 13:40:11 +01:00
hjk
43f69abea1 Rename {Analyzer,Debugger}ProjectSettings to *RunConfigurationAspect
Change-Id: I5913ddaaab1a80b1557f0bcf7ebcc15e0e4b74eb
Reviewed-by: hjk <qthjk@ovi.com>
2012-02-23 18:16:46 +01:00
hjk
21558fa5d0 projectexplorer: remove useQmlDebugger from generic RunConfiguration
Change-Id: I9eb046348d4b56e64ffc2a2beb057d2fe090f8c3
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2012-02-23 16:03:34 +01:00
hjk
5ad396cf71 debugger: merge DebuggerLanguageChooser into DebuggerRunConfigWidget
This also lets runconfigurations like Maemo suppress the QML parts
completely.

Change-Id: I19573053b565b21be4407f1e0ea024c07ffd4d73
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2012-02-23 11:23:11 +01:00
hjk
503c6e2684 projectexplorer: Make the debugger language chooser a (hardcoded) "aspect"
This is the first step of a larger refactoring. The plan is to make
debuggersettings more orthogonal to individual runconfiguration
implementation. This patch alone already pushes the settings handling
to the debugger plugin and removes code duplication in the
runconfiguration implementation.

Change-Id: I4c78d1658ea462d3df14b873f8f41cc918a23f1a
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Reviewed-by: hjk <qthjk@ovi.com>
2012-02-21 12:21:38 +01:00
hjk
b9d15b113f debugger: remove a few too-fancy typedefs
Change-Id: I0c8ba3c2d22ca7128527da42b81919dabbd82d14
Reviewed-by: hjk <qthjk@ovi.com>
2012-02-16 11:15:28 +01:00
Erik Verbruggen
3fa55b7ab9 Removed module names from #include directives.
Getting the #include directives ready for Qt5. This includes the
new-project wizards.

Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2012-02-15 16:24:46 +01:00
Kai Koehne
fe8cead2d0 Debugger: Make language to debug (QML/CPP) explicit
Make the choice of language part of the DebuggerStartParameters,
instead of deriving it indirectly from the current project. This
prevents e.g. the QmlCppEngine to be used when loading core files.

Change-Id: I9d1c9ab318ba789abe3a6ea0478ebda71857e793
Reviewed-by: hjk <qthjk@ovi.com>
2012-02-01 12:14:02 +01:00
hjk
2931a499e6 Long live the king!
Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-01-26 19:55:36 +01:00
Kai Koehne
8c10d607c0 Debugger: Fix 'Attach to Qml port'
Never use the combined QmlCppEngine if the primary engine is already
the QmlEngine.

Change-Id: Ic87816bbe67fdf4ab004a41db601e33383c570dc
Reviewed-by: hjk <qthjk@ovi.com>
2012-01-25 19:47:30 +01:00
hjk
4a21f0c3c8 Use new static ICore interface.
Change-Id: I9b690d9b150c8d162b15370f9f8986267c9128f1
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-01-24 18:48:47 +01:00
Tobias Hunger
7ad7886b07 TC: Use FileName for debuggerCommand()
Change-Id: Ifa168b95d290bfae5c342981c4e4556d6f6913eb
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-01-19 15:34:46 +01:00
Tobias Hunger
664fb6339b Use Utils::FileName in abi
Use FileName when passing in a file to extract ABIs from. Also convert
some helper functions in baseqtversion to use FileNames in favor of
normal strings.

Change-Id: I41c724c4c05bb4ff0d8b832f84fffa08d64762d9
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-01-17 12:01:14 +01:00
hjk
a6ff74c0d8 ProjectExplorer: use enum instead of QString for run mode
Change-Id: Ia906944a489b09afdea59f74afbf759b4caebe37
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-01-11 13:52:26 +01:00
Friedemann Kleint
a92e38f47f Debugger: Compile with QT_NO_CAST_FROM_ASCII.
(except gdbmi.cpp, name_demangler.cpp). Remove some unneeded
conversions, change some maps to take QByteArray keys.

Change-Id: I010f1251998a441fe5c8c87901b1e0c277c0391c
Reviewed-by: hjk <qthjk@ovi.com>
2011-12-21 14:07:12 +01:00
Friedemann Kleint
af6e06dfb2 Do not start LocalRunConfiguration when the executable is empty.
When accidentally pressing 'Debug' on a library project,
the dialog asking for the executable pops up and debugging still
starts although cancel is pressed.

Add dialog title, set flags, and check its return values.

Change-Id: I8518b8af70b12a7059f9ee0e20a9d0b325db1e98
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2011-12-20 17:13:39 +01:00
hjk
9739b8df62 debugger/remotelinux: new dialog to attach to remote process
Change-Id: I221534561f4bbd299d494ecc902092e2e709770c
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-12-08 15:00:55 +01:00
Daniel Teske
f5d4287123 Use Utils::FileName for various bits in QtVersion
Change-Id: I3afc3a4f2e0dd2671279c2d071779f1d7b277849
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
2011-12-07 15:05:31 +01:00
hjk
18d8e340e3 debugger: clearer naming for some of the remote operations
Change-Id: If5857d9f41ac3819c591df165ef2d8788d95089c
Reviewed-by: hjk <qthjk@ovi.com>
2011-12-07 10:12:49 +01:00
hjk
31600758de all: s/info@qt.nokia.com/qt-info@nokia.com/
Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2011-11-03 10:33:19 +01:00
Tobias Hunger
5bfb5d9c32 CERC: Use invalid ABI
Use a invalid ABI since we have no idea what we will end up running.
Make the debugger figure out specifics when needed.

Change-Id: Ia74080887617a097a16d789dfd7f88458409a23c
Reviewed-on: http://codereview.qt-project.org/6065
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2011-10-05 17:01:01 +02:00
hjk
fcaa288036 debugger: fix compiler warning for not-yet-used enumeration value
Change-Id: I6ad55fc24c957442ee0ec8735b754f86e32d2dfe
Reviewed-on: http://codereview.qt-project.org/5236
Reviewed-by: hjk <qthjk@ovi.com>
2011-09-20 13:55:52 +02:00
hjk
58cb19e55e all: less QScopedPointer
Change-Id: I536bdb4d4f0c10fa858560f3c160fc0fff8da9b2
Reviewed-on: http://codereview.qt-project.org/5116
Reviewed-by: hjk <qthjk@ovi.com>
2011-09-19 08:56:44 +02:00
hjk
c6a8b39a03 debugger: hard-code some qt5 related paths
This is not a final solution.

Change-Id: I19e7a99e1b056704864d27855197678a0d3fd10b
Reviewed-on: http://codereview.qt-project.org/5073
Reviewed-by: hjk <qthjk@ovi.com>
2011-09-16 11:06:20 +02:00
Aurindam Jana
bfe5b520f1 QmlDebugger: Added dialog "Attach to QML Port..."
The dialog is added to Debug->Start Debugging menu option. It specifies the host
and port that the JSDebugClient connects to for listening to debug messages.

Change-Id: I7f828c169ff2338f4780025f72182c5fc8784c4a
Reviewed-on: http://codereview.qt-project.org/4824
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2011-09-14 11:11:31 +02:00
Kai Koehne
3261128a94 Debugger: Don't warn about never-hit breakpoints when loading a coredumps
Only check the breakpoints when app was started internally.

Change-Id: I38f0af08a2c137d44a127b254283574277b57eff
Reviewed-on: http://codereview.qt.nokia.com/2751
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: hjk <qthjk@ovi.com>
2011-08-15 11:09:37 +02:00
Friedemann Kleint
97a2cc53cf Debugger[CDB]: Implement AttachCore for debugdiag dumps.
Change-Id: I19c57248ed5e7c43b14b849419c9edf29bca26dc
Reviewed-on: http://codereview.qt.nokia.com/2706
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2011-08-05 17:43:58 +02:00
Kai Koehne
1757228278 New QTC_CHECK warning replacing QTC_ASSERT(x, /**/)
Warn if the condition fails, but otherwise don't change the execution
flow.

Change-Id: Id7b14c745109b66960add967b2a4ef8d31e1a546
Reviewed-on: http://codereview.qt.nokia.com/2389
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2011-07-29 12:19:11 +02:00
Kai Koehne
fba97518ff Debugger: Only warn once about unhandled breakpoints
Don't show the dialog for every single breakpoint

Task-number: QTCREATORBUG-5557
Change-Id: Id1b60e92856cd2c8b81de43340bbaf4f5d7f3a8d
Reviewed-on: http://codereview.qt.nokia.com/2326
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2011-07-28 11:20:51 +02:00
Kai Koehne
da06e83c3d Debugger: Prevent message boxes for every output to stderr
The use of QErrorMessage::qtHandle() installs a message handler
that from then on pops up a warning for each qWarning().

Change-Id: Iad6ac7b002ffc007de7df7a41c3ce0f9ee40e6d0
Reviewed-on: http://codereview.qt.nokia.com/2280
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2011-07-27 17:15:44 +02:00
hjk
c041286753 debugger: split BreakpointIndex into plugin and debugger specific part
Change-Id: I21d10cf42eb039c74475e106537b6e107d155196
Reviewed-on: http://codereview.qt.nokia.com/745
Reviewed-by: hjk <qthjk@ovi.com>
2011-06-27 09:14:25 +02:00
Kai Koehne
ed7fbf19a6 Debugger: Allow users to disable warning about unsupported breakpoints
QErrorMessage has by default a 'don't show the message again' checkbox.

Change-Id: I4bbb2172298db848870ed1abf9f7d6195bdfe49d
Reviewed-on: http://codereview.qt.nokia.com/400
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2011-06-21 14:56:12 +02:00
Kai Koehne
3485d7f5ca QmlDebugger: Always use ',block' argument
This will allow e.g. the JS Debugger to catch scripts running at startup.

Change-Id: I00d339b06f1ed2b716c62bd2d53a32c2b20b1ddc
Reviewed-on: http://codereview.qt.nokia.com/377
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
2011-06-08 14:39:13 +02:00
Oswald Buddenhagen
9a2814d646 introduce separate output format for windows debug channel 2011-05-12 20:39:43 +02:00
Kai Koehne
6aa24fd184 DebuggerRunner: Use 'Yes', 'No' buttons for 'Do you want to continue?'. 2011-05-12 12:41:31 +02:00
Tobias Hunger
aa2acec14c Fix/add copyright headers
Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
2011-05-06 15:17:05 +02:00
hjk
ccffed9385 debugger: make F10/F11 start the app if not running and break on main 2011-05-02 18:23:04 +02:00
Kai Koehne
a150d5f4b4 Debugger: Add warning if debugger cannot handle breakpoints
This usually happens when a breakpoint is e.g. set in a .qml file,
but QML not selected as the debugger language, or vice versa.
2011-04-28 14:06:43 +02:00
Kai Koehne
5f297fb168 DebuggerRunner: Add tr() 2011-04-28 14:06:43 +02:00
Kai Koehne
ea36927cc3 QmlDebug: Simplify logic to find the source file for a stack frame
Get rid of custom logic to handle shadow builds (which didn't work
anyway if the qml files are from a different directory than expected).
Instead, just search for the file name in the list of files from the
project.

Reviewed-by: Christiaan Janssen
2011-04-27 17:25:48 +02:00
con
14487af86c Merge remote branch 'origin/2.2'
Conflicts:
	src/plugins/projectexplorer/gcctoolchain.cpp
	src/plugins/projectexplorer/target.cpp
	src/plugins/qt4projectmanager/qt-s60/qt4symbiantargetfactory.cpp
2011-04-27 11:27:29 +02:00