Commit Graph

721 Commits

Author SHA1 Message Date
Friedemann Kleint
a7370ae4b0 Analyzer: Add status label.
Factor out the status label with timeout from the debugger plugin.
Use in analyzer manager, add standard messages and use that
in memcheck.

Task-number: QTCREATORBUG-4077
Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
2011-03-16 13:49:28 +01:00
Friedemann Kleint
4fa528813e Debugger: Fix exit crash in debug mode (X11).
Double deletion of debug mode widgets.
2011-03-15 14:52:35 +01:00
Friedemann Kleint
2d9de93361 Debugger: Add a flexible widget for source path substitutions.
Add a new widget to edit the mappings. Rework common options
page to use the standard pattern to allow for complex data types,
introduce GlobalOptions class.
2011-03-04 16:24:54 +01:00
Friedemann Kleint
827fbd6aa7 Debugger: Fix Ctrl-C console crash on Windows.
Do not create static QObject.
2011-03-02 14:05:32 +01:00
hjk
c10bb9e5f7 debugger: load is load and save is save... 2011-02-28 18:56:23 +01:00
Christian Kandeler
d24ebfed3d SSH: Fix misnomers. 2011-02-28 17:02:38 +01:00
hjk
0a512797b9 debugger: reset OperateByInstruction on runControlFinished 2011-02-25 16:26:22 +01:00
Friedemann Kleint
ed8dd0b031 Debugger: Actually pass the debugger command from ToolChain.
Do not retrieve debugger command from ABI as that causes mismatches
when several toolchains of the same ABI are present.
Use indexes in the debugger dialogs.
Polish tooltip.
2011-02-25 16:03:22 +01:00
Friedemann Kleint
14d590590f Debugger: Use Startparameters.debuggerCommand for command.
Use in both engines preferred over ABI if it is compatible.
Report start parameters. Introduce gdb configuration check.
2011-02-25 13:43:06 +01:00
Friedemann Kleint
047ee5522c Debugger: Improve configuration error reporting.
- Make showWarningWithOptions actually show the details.
- Show errors from multiple engines as separate messages.
- Remove 'enabled' option from CDB (handled by toolchain config now).
- Show ABI as tooltip in debbugger toolchain chooser.
2011-02-25 09:34:31 +01:00
Friedemann Kleint
75f4b9cf25 Debugger: Add toolchain combos to start dialogs, refactor detection.
Add combo box listing toolchains with debuggers to start external,
attach and core.
Another attempt at streamlining engine detection:
Split in detection functions that first collect a list of
available engines by preference, then remove disabled and
wrongly configured engines and use the remaining best.
matching. checkconfiguration is now the central place where
engine detection and config check takes place.

Rubber-stamped-by: hjk
2011-02-24 16:50:15 +01:00
hjk
f7ab622224 debugger: don't leak the break handler 2011-02-24 13:25:30 +01:00
hjk
a8ae618d75 toolchain: fix enum naming style
Reviewed-By: Tobias Hunger
2011-02-23 17:56:33 +01:00
Friedemann Kleint
6ac7efba15 Debugger: Move debugger executables configuration into toolchains. 2011-02-23 14:57:52 +01:00
hjk
5f38a26c9e debugger: fix 'Jump To/Run to' when in instruction-wise mode 2011-02-23 11:11:39 +01:00
hjk
cd18b3ce03 debugger: add a 'Debugger finished' statusbar message 2011-02-23 10:17:21 +01:00
hjk
bd44fb1248 debugger: move gdb binary list to common options page (unfinished) 2011-02-22 12:59:12 +01:00
hjk
8784196ff5 debugger: move common option pages into files of their own 2011-02-22 12:29:12 +01:00
hjk
0dd7ba2d1b debugger: save settings on saveSettingsRequested 2011-02-22 12:06:00 +01:00
hjk
b94703b74d debugger: set toolchains for core debugging 2011-02-22 11:23:53 +01:00
Tobias Hunger
8d0c477245 ToolChain: Refactor toolchain support
Refactor ToolChains in Qt Creator:

 * Allow for several toolchains of the same type
 * Be smarter wrt. guessing what kind of output a toolchain
   produces. This allows us to eventually handle e.g. embedded
   linux setups way better than before.
 * Be smarter wrt. guessing what kind of environment a Qt version
   needs.
 * Improve auto-detection of toolchains a bit
 * Decide on which debugger to use based on the kind of output
   produced by the compiler.
 * Add options page to configure toolchains
 * Remove toolchain related options from the Qt version dialog

Reviewed-by: dt
2011-02-21 18:33:23 +01:00
Friedemann Kleint
cbafc50acc Debugger: Make tooltips use standard text editor tooltips.
Extend text editor tooltips by a 'widget content', making
it possible to show any widget utilizing the fact that the
QTipLabel actually is a frame (and thus a container).
Introduce concept of 'interactive' tooltips and modify
the tooltip-closing mechanism such that simple interaction
is possible. Emit the base text editor's tooltip signals
with the correct position and add API to calculate the tooltip
position from the cursor position.
Add API for pinning tooltips to the text editor (by removing
them from the QTipLabel layout).
Modify the Debugger's tooltipmanager not to manage tooltips
under TextEditor control and to take over control only once
tooltips are pinned.

Rubber-stamped-by: Leandro T. C. Melo <leandro.melo@nokia.com>
2011-02-21 16:51:00 +01:00
hjk
499b00312e debugger: allow attaching to core files on windows
Seems it's not only theoretically possible but people actually want to use it

Task-number: QTCREATORBUG-3813
2011-02-17 15:27:00 +01:00
Friedemann Kleint
c74da9b7c5 Debugger: Reduce tooltip flicker.
Move tooltip-request handling from DebuggerPlugin into
DebuggerToolTipManager.

Request tooltip only if position changed and close
standard tooltip on success.
2011-02-17 10:11:23 +01:00
Thorbjørn Lindeijer
f5c192bf38 Introduced a QML-specific debugger tool bar
This one has the common debugger actions as well as the QML Observer
specific part. This makes sure those actions are generally available and
not only from the QML Observer dock widget.

The filter in the tool bar should still be moved back.

Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
2011-02-16 13:36:12 +01:00
hjk
0b662609a0 debugger: replace action(ExecuteCommand) be a direct function call 2011-02-16 13:07:16 +01:00
Thorbjørn Lindeijer
7741db1220 Code cosmetics 2011-02-16 11:36:06 +01:00
Christian Kandeler
22a49fd4a8 SSH: Choose better names for public types and variables. 2011-02-15 13:35:17 +01:00
Friedemann Kleint
f37d9b55aa L10n: First round of tr()-Fixes for 2.2 2011-02-14 16:37:20 +01:00
Milian Wolff
94548a1e1f move src/plugins/coreplugin/ssh to src/lib/utils/ssh
Merge-request: 253
Reviewed-by: hjk <qtc-committer@nokia.com>
2011-02-14 16:34:17 +01:00
Friedemann Kleint
0ac879e39f Debugger: Make tooltips pinnable.
Replace old debugger tooltip by a new ToolTipManager which
has a list of AbstractDebuggerToolTipWidget with the functionality
to 'acquire' an engine (display its data) and 'release' it
(store engine data and display them as 'previous') and serialization
to XML session data.
DebuggerTreeViewToolTipWidget implements AbstractDebuggerToolTipWidget
for tree model acting as  a filter on watch models.

Rubber-stamped-by: hjk
2011-02-11 15:09:02 +01:00
hjk
af8daf9d30 actionmanager: rename Command::CA_NonConfigureable to CA_NonConfigurable 2011-02-09 16:29:02 +01:00
hjk
703d637cc6 debugger: hide one of two ADD_TO_WATCH actions from the shortcut dialog 2011-02-09 16:29:02 +01:00
hjk
1162f1ebca debugger: action name cosmetic
No need to add random '1' if there's only one.
2011-02-09 14:42:55 +01:00
hjk
6e82488396 debugger: improved error messages on startup 2011-02-08 18:28:02 +01:00
hjk
04514ed459 debugger: reorganize starting from the command line 2011-02-08 16:41:02 +01:00
Friedemann Kleint
4d46c69d25 Debugger: Documentation work on qtcreatorcdbext/Debugger.
Add comments, introduce internal switch in
doc/api/qtcreator-api.qdocconf.
2011-02-04 15:10:17 +01:00
con
4cce135018 Some debugger actions were enabled in states where they wouldn't work.
Reviewed-by: hjk
2011-02-04 14:44:47 +01:00
hjk
834ebe0c49 debugger: code cosmetics 2011-02-03 16:49:58 +01:00
hjk
a0b178b708 debugger: merge DebuggerActions into DebuggerPluginPrivate
Realistically, the days of a stand-alone debugger are over...
2011-02-03 14:08:01 +01:00
hjk
1be13759e3 debugger: fix breakpoint handling in main editor context menu 2011-02-03 13:45:03 +01:00
hjk
face88a3d2 debugger: rework 'Run to Outermost Function' feature
Remove from the debug menu, and assign Ctrl-F6 to it by default also
on non-Mac.
2011-02-02 11:56:01 +01:00
con
6bea521e6b Debugger view menus were enabled when they shouldn't be 2011-01-31 15:18:35 +01:00
Friedemann Kleint
725182916f Debugger: Add to API documentation.
Reviewed-by: hjk
2011-01-26 17:22:25 +01:00
Christiaan Janssen
5ac9a19465 QmlDebugger: displaying tooltips while qml is running
Reviewed-by:  hjk
2011-01-25 11:05:15 +01:00
Friedemann Kleint
e601b3c7cb Debugger: Adapt graphviz graph. 2011-01-17 10:36:34 +01:00
hjk
bdfe2ed53b debugger: remove EngineRunOk state again 2011-01-17 10:07:33 +01:00
hjk
9ff17a8208 debugger: update state diagram 2011-01-14 14:41:01 +01:00
con
0d6d420735 Make Shift+F5 for interrupting/stopping debugger work again. 2011-01-13 17:36:31 +01:00
con
ffc241b719 Use the new ProxyAction for the debug button.
Instead of doing context magic which doesn't reflect what actually was
meant: The actions are different commands, but the button should be
corresponding to different commands in different states.
2011-01-12 16:38:16 +01:00