Commit Graph

193 Commits

Author SHA1 Message Date
Friedemann Kleint
a4d7fb2f06 Debugger: Fix compilation, centralize breakpoint type detection.
Reviewed-by: hjk
2010-11-26 13:06:03 +01:00
hjk
75ee5bce8c debugger: make DebuggerEngine::acceptsBreakpoint(id) pure 2010-11-26 11:27:43 +01:00
hjk
7d8d51677b debugger: polish module symbols 2010-11-26 11:27:25 +01:00
hjk
75e22a2937 debugger: allow re-running debugger engines
Task-number: QTCREATORBUG-3073
2010-11-25 17:17:31 +01:00
hjk
8b226452ee debugger: make breakpoints work in disassembler view 2010-11-25 13:35:16 +01:00
Christiaan Janssen
dede74de17 DebuggerEngines: avoiding some runtime error message through extra checks
Reviewed-by:  hjk
2010-11-25 11:37:22 +01:00
hjk
90657a496b debugger: small usability fixes for dissassembler, breakpoint view, location 2010-11-24 15:55:45 +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
hjk
1688d1e1c7 debugger: remove unused DebuggerEngine::{set,is}Active 2010-11-18 17:35:22 +01:00
hjk
ef2f7e3840 debugger: code cosmetics 2010-11-18 17:32:52 +01:00
Friedemann Kleint
8888b8f532 Debugger: Introduce common messages to engine.
Try to achieve consistency in reporting stop messages for all
engines. Report by BreakpointId if available.
2010-11-17 17:16:34 +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
hjk
adba4c954c debugger: remove breakpoint notification indirection through the engine 2010-11-16 18:20:52 +01:00
hjk
a9a9143b5d debugger: replace BreakpointPending state with a flag in BreakpointResponse
To keep the breakpoint state machinery simple
2010-11-16 18:14:44 +01:00
hjk
fd8bf48b2b debugger: start tightening the breakpoint state machinery 2010-11-16 17:09:55 +01:00
hjk
0a004097e1 debugger: remove intermediate BreakpointData stucture layer 2010-11-16 11:48:43 +01:00
Friedemann Kleint
64bd93325f Debugger: Bring back debug output. 2010-11-15 17:36:00 +01:00
Friedemann Kleint
571fb51abf Debugger: Remove debug output. 2010-11-15 17:32:32 +01:00
Christiaan Janssen
4790548216 QmlDebugger: Refactored QmlEngine and QmlCppEngine
Reviewed by:  hjk
2010-11-15 17:18:00 +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
hjk
eb5cf529b2 debugger: fix/clarify intention of the EngineSetupFailed state. 2010-11-10 12:54:07 +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
Arvid Ephraim Picciani
8ea5605286 Actually run breakpoint insertion 2010-11-09 17:48:33 +01:00
hjk
35cc78726f debugger: move the breakpoint hash to the private structure 2010-11-09 12:50:46 +01:00
Arvid Ephraim Picciani
5f75e5979e Asynchronous breakpoint handling 2010-11-09 12:36:37 +01:00
hjk
a181b45d28 debugger: rename 'stop/quit' to exitDebugger 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
71007d2ccb debugger: less indirections when opening files 2010-11-08 17:44:00 +01:00
hjk
df04e57585 debugger: move more gui bit from engine to plugin 2010-11-08 15:45:37 +01:00
hjk
d467d0e2bb debugger: another compile fix 2010-11-08 15:32:18 +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
1dacb9e55f debugger: convert threads model 2010-11-08 13:16:16 +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
hjk
4ad493c958 debugger: re-enable functions and cleanup after breakhandler move 2010-11-04 11:28:08 +01:00
hjk
8e62715130 debugger: move logical ownership of breakhandler from engines to plugin 2010-11-04 09:55:05 +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
Arvid Ephraim Picciani
2a569ce073 Clean up BreakPoint
Reviewed-by: Friedemann Kleint
Reviewed-by: hjk
2010-10-29 11:29:37 +02:00
hjk
78b2f25791 x 2010-10-28 08:55:50 +02:00
hjk
4be2ebcb9b debugger: don't let slave engine command the gui 2010-10-27 15:05:56 +02:00
hjk
0f994600b2 debugger: rename m_runInWrapperEngine into m_isSlaveEngine 2010-10-27 14:25:36 +02:00
hjk
ab967902d8 debugger: prepare removal of plugin()->updateState(this); 2010-10-27 14:21:33 +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
hjk
57f7616286 debugger: call shutdownEngine, not shutdownInferior on EngineRunFailed 2010-10-26 16:49:29 +02:00
Oswald Buddenhagen
35bb61590d Merge remote branch 'origin/2.1'
Conflicts:
	doc/qtcreator.qdoc
	share/qtcreator/templates/mobileapp/app.pro
2010-10-25 11:27:30 +02:00