Commit Graph

548 Commits

Author SHA1 Message Date
hjk
4c7623a98f debugger: compile fix on windows 2010-11-23 18:04:39 +01:00
hjk
0d07a4abc0 debugger: use a 80ms timer to actually remode the location marker
This removes the remove/set flicker in most single stepping cases.
2010-11-23 16:43:56 +01:00
hjk
ba811dfb71 debugger: make watchers visible after project load again 2010-11-23 13:45:18 +01:00
hjk
790648b915 debugger: make freshly inserted watchers immediately visble
Even if no engine is running.
2010-11-23 13:45:18 +01:00
Friedemann Kleint
9be36be951 Debugger: Fix switching between assembler and source.
Do not drop stack index in resetLocation (which is called
when switching). Do not switch to source unless we have
the file.

Reviewed-by: hjk
2010-11-22 12:22:53 +01:00
Friedemann Kleint
1b9b962b2c Debugger[new CDB]: Polish options, add remote debugging. 2010-11-19 16:13:22 +01:00
hjk
1688d1e1c7 debugger: remove unused DebuggerEngine::{set,is}Active 2010-11-18 17:35:22 +01:00
Friedemann Kleint
8477c7bc4f Debugger: Add new CDB-engine.
Rubber-stamped-by: hjk
2010-11-18 13:52:42 +01:00
Oswald Buddenhagen
1e362b0f8b overhaul process argument handling
get away from argument stringlists. instead, use native shell command
lines which support quoting/splitting, environment variable expansion
and redirections with well-understood semantics.

Task-number: QTCREATORBUG-542
Task-number: QTCREATORBUG-1564
2010-11-17 13:19:07 +01:00
Friedemann Kleint
9fc5970bdb Debugger: Introduce BreakpointParameters as base struct.
For Breakpoint data manipulation.

Reviewed-by: hjk
2010-11-15 17:04:29 +01:00
hjk
a3923f8c24 debugger: re-enable "Delete all breakpoints" etc 2010-11-15 15:31:05 +01:00
hjk
4d1cd647b4 debugger: code cosmetics; fix toggling breakpoints using the editor context 2010-11-15 15:20:39 +01:00
hjk
7c337614a8 debugger: show disabled breakpoints again 2010-11-15 15:05:39 +01:00
hjk
8ae541b36f debugger: Refactor breakpoint handling.
The breakpoints are now (fairly) tightly guarded by the BreakpointHandler.
Engines and Views are only supposed to refer to them by id. They also have
individual states now. The breakpoint data is split into a "user requested"
"fixed" part in BreakpointData and the engines' acknowledged data in a new
struct BreakpointResponse.

TODO: Move m_state and m_engine members to BreakpointResponse. Fix regressions
in the marker handling.
2010-11-15 12:09:25 +01:00
Friedemann Kleint
33bae0d784 Debugger: Suppress fetching of modules/registers in invalid states.
Reviewed-by: hjk
2010-11-15 12:07:10 +01:00
dt
6683b40844 ProjectExplorer + Debugger: Move Debug Action to the Debugger plugin
Since all the debuggers are implemented in the debuggerplugin, that's a
natural place to put the action.
2010-11-12 20:18:29 +01:00
hjk
89eb27d231 debugger: remove some dead code 2010-11-10 14:36:53 +01:00
hjk
0caf52f6d4 debugger: remove recently introduced endless loop in resetLocation() 2010-11-10 12:38:54 +01:00
hjk
2161e0f6d9 debugger: refactoring of the plugin interface
There's  some 'external' and some 'internal' part now. Other plugins
are only supposed the external interface.
2010-11-10 12:08:23 +01:00
hjk
17f39388ac debugger: code cosmetics 2010-11-09 12:08:31 +01:00
Friedemann Kleint
8443b345a5 Debugger: Pop up log window in case error is logged.
Regression from 2.0.1

Rubber-stamped-by: hjk
Acked-by: Arvid Ephraim Picciani <arvid.picciani@nokia.com>
2010-11-09 11:58:22 +01:00
hjk
a181b45d28 debugger: rename 'stop/quit' to exitDebugger 2010-11-08 17:44:01 +01:00
hjk
033a3aba9b debugger: simplify remoteCommand logic 2010-11-08 17:44:01 +01:00
hjk
f02f08167f debugger: some cleanup after the model/view reorganization 2010-11-08 17:44:01 +01:00
hjk
c0f7bc0d4c debugger: remove indirection through view for selectThread() 2010-11-08 15:50:13 +01:00
hjk
df04e57585 debugger: move more gui bit from engine to plugin 2010-11-08 15:45:37 +01:00
hjk
98ea2b8b4c debugger: kill command handler & company 2010-11-08 15:19:41 +01:00
hjk
b373da1b12 debugger: more handler/window refactoring 2010-11-08 13:20:12 +01:00
hjk
1afea78c7d debugger: convert register handler/window architecture 2010-11-05 13:51:02 +01:00
hjk
91ba3949d5 debugger: remove sessionengine 2010-11-05 13:36:18 +01:00
Friedemann Kleint
3d1f23b78b Debugger: Add Run to/Jump to Line to text editor context menu.
Remove actions from debugger plugin as they are not directly usable.
Create additional actions in context menu.

Move some code around to find the current editor.
2010-11-04 11:46:16 +01:00
Friedemann Kleint
cc6a4a52c6 Debugger: Fix enumeration slot warning.
Do not pass around flags QFlags by const-reference.
2010-11-04 10:15:36 +01:00
hjk
8e62715130 debugger: move logical ownership of breakhandler from engines to plugin 2010-11-04 09:55:05 +01:00
Tobias Hunger
cf3a418cd8 Fix spelling in comments
Krazy was complaining about those.
2010-11-03 12:45:34 +01:00
Friedemann Kleint
68d4d35cae Coreplugin: Header cleanup.
Clean icore.h.
2010-11-02 16:53:56 +01:00
Friedemann Kleint
22f03cbde6 ProjectExplor/Debugger: Header cleanup 2010-11-02 16:14:00 +01:00
Friedemann Kleint
6510a749b7 ProjectExplorer: Move ToolChainType enumeration into separate Header.
Acked-By: dt
2010-11-01 14:25:24 +01:00
Oswald Buddenhagen
a9ff4d3749 Merge remote branch 'origin/2.1'
Conflicts:
	doc/qtcreator.qdoc
2010-11-01 12:11:03 +01:00
Christian Kandeler
0bea245745 Debugger/Remote Debugging: Add "GNU target" start parameter.
This is needed for multi-architecture gdb.

Reviewed-by: hjk
2010-10-29 14:14:06 +02:00
Friedemann Kleint
9c9a630da9 Debugger: Avoid warnings from debugger when using -client.
Do not parse options if empty (when a file was passed to
the core).

Reviewed-by: Thorbjørn <thorbjorn.lindeijer@nokia.com>
2010-10-29 13:48:14 +02:00
hjk
78b2f25791 x 2010-10-28 08:55:50 +02:00
hjk
fdc35465ed debugger: code cosmetics 2010-10-27 14:10:44 +02:00
hjk
5a5ba58dc9 Debugger [CDB]: Release COM interfaces on RunControl finished.
Ensure that at most one instance of the CDBEngine is alive.
Prevent inconsistent debugger states if several sessions are started.
Squashed cherry-picked commits from master correcting the
plugin state handling (2efdeb5cd0,
57f7616286).

Reviewed-by: hjk
Task-number: QTCREATORBUG-2894
2010-10-27 10:20:33 +02:00
hjk
2efdeb5cd0 debugger: fix EngineSetupFailed path
Task-number: QTCREATORBUG-2837
2010-10-26 17:08:12 +02:00
con
3891ed9705 Don't close modified files or the current file at end of debug session
Acked-by: hjk
2010-10-25 17:21:28 +02:00
Friedemann Kleint
75e2d42448 Debugger: Avoid opening of editor in shutdown phase.
Remove duplicate code. Introduce ScopedPointer for
location mark. Check shutdown phase when opening editors.

Reviewed-by: con
Task-number: QTCREATORBUG-2833
2010-10-22 12:26:13 +02:00
Friedemann Kleint
db671e8202 Debugger: Avoid crashes when no C++-engine is available.
Check for valid runcontrols in various places and initialize
m_engine correcly. In the case of QML-Debugging, handle
NoEngineType.

Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Task-number: QTCREATORBUG-2086
2010-10-22 11:27:45 +02:00
Friedemann Kleint
2836fde7e6 Debugger: Fix attaching via QtSingleApplication.
In case qtcdebugger sends a command to an already running
instance of Qt Creator (Windows).

Reviewed-by: hjk
Task-number: QTCREATORBUG-2814
2010-10-20 12:13:28 +02:00
con
9df2484b49 Adapt default debug shortcuts on Mac.
Task-number: QTCREATORBUG-1956
Reviewed-by: Joerg Bornemann
2010-10-19 12:39:56 +02:00
Thorbjørn Lindeijer
c5d5657c13 Don't cut off zoomed font sizes to the nearest integer point size
This caused it to go to 0 when for example displaying size 9 at 10%,
which is an invalid value so it caused the text to revert back to the
default size.

It also caused zooming to sometimes appearing to have no effect. For
example zooming size 9 to 110% would still yield size 9 rather than 9.9.

Task-number: QTCREATORBUG-2744
Task-number: QTCREATORBUG-2745
Reviewed-by: Robert Loehning
Reviewed-by: hjk
2010-10-15 17:44:15 +02:00