Commit Graph

87 Commits

Author SHA1 Message Date
hjk
063ae8ad97 debugger: remove unused DebuggerRunner::init() 2010-07-20 18:54:50 +02:00
hjk
80f52cce28 debugger: tie engine creation close to runconfiguration creation
We'd like to be able to restart a debugger engine at some point of time.
2010-07-20 18:54:50 +02:00
hjk
038d943f9a debugger: fix shutdown by pressing "[x]" in the output pane 2010-07-02 12:40:36 +02:00
hjk
afb54077f5 debugger: fix some regressions in the log output after the engine refactoring 2010-06-30 14:40:04 +02:00
Friedemann Kleint
beba423a16 Debugger[Trk]: Added TCF experimental adapter.
Added adapter to work with TCF over WLAN.
Factor out common code for Symbian from TrkAdapter.
Improve message logging in TrkGdbAdapter, some cleanup.
Added new TcfTrkGdbAdapter based on TcfTrkDevice
in symbianutils based on JSON, using QTcpSocket.
To be started via special @tcf@ argument.
Rubber-stamped-by: hjk
2010-06-25 15:06:30 +02:00
hjk
5adb6559e2 debugger: attempt to fix symbian output connections 2010-06-23 12:40:56 +02:00
hjk
e6590ff598 debugger: fix addToWatchWindow 2010-06-23 11:06:01 +02:00
hjk
c5c0dc76a0 debugger: restore session breakpoints if RunControl finishes 2010-06-22 15:14:44 +02:00
hjk
eba9157476 debugger: pass RunConfiguration to ProjectExplorer::RunControl constructor if known. 2010-06-22 12:42:26 +02:00
Friedemann Kleint
ecff29be07 Compile Windows. 2010-06-22 12:28:05 +02:00
hjk
0f1290b0c0 debugger: link fix 2010-06-22 11:45:45 +02:00
hjk
6a6cba5518 debugger: The DebuggerEngine refactoring.
This replaces the (de facto) singleton engines and data handlers by classes
that are instantiated per run. The DebuggerRunControl will now create an
object of (a class derived from) DebuggerEngine that contains all the relevant
"dynamic" data.

DebuggerManager is no more. The "singleton" bits are merged into DebuggerPlugin,
whereas the data bits went to DebuggerEngine.

There is no formal notion of a "current" DebuggerEngine. However, as there's
only one DebuggerEngine at a time that has its data models connected to the
view, there's still some "de facto" notion of a "current" engine. Calling
SomeModel::setData(int role, QVariant data) with custom role is used as the
primary dispatch mechanism from the views to the "current" data models
(and the engine, as all data models know their engine).
2010-06-22 10:59:57 +02:00
hjk
a4f412388d debugger: move m_inferiorPid from DebuggerManager to DebuggerRunControl 2010-06-15 12:51:18 +02:00
hjk
25c11c4ce0 debugger: move SnapshotHandler from DebuggerManager to DebuggerRunControl 2010-06-15 12:48:30 +02:00
hjk
ff7c543a73 debugger: move RegisterHandler from DebuggerManager to DebuggerRunControl 2010-06-15 11:43:20 +02:00
hjk
69a4ed3255 debugger: move ModulesHandler from DebuggerManager to DebuggerRunControl 2010-06-15 11:43:20 +02:00
hjk
83e479824e debugger: add model accessors to run control
Plan is to move the models themselves from DebuggerManager to
DebuggerRunControl.
2010-06-15 11:43:20 +02:00
Robert Loehning
5b30072731 Compile fixes
Wrote down what hjk told me.
2010-06-14 19:09:18 +02:00
hjk
9f7e9dc0ae debugger: refactoring of output channeling 2010-06-14 18:22:09 +02:00
hjk
b3aff6b919 debugger: more of the RunControl refactoring
Pass output through the RunControl instead of the DebuggerManager.
2010-06-14 17:24:13 +02:00
hjk
97edcb7977 debugger: start 'runcontrol-ification' of the debugger plugin.
This replaces most uses of DebuggerStartParameters by DebuggerRunControl
which is a simple RunControl with a DebuggerStartParameters member.

Plan is to move all global state to the run controls, and possibly
introduce specialized ones for core debugging etc.
2010-06-14 10:45:11 +02:00
hjk
a89643a833 debugger: more runconfig refactoring 2010-06-14 10:45:11 +02:00
hjk
dbdecb2f8f debugger: more RunControl related cleanup 2010-06-14 10:45:11 +02:00
hjk
cbfd320346 debugger: remove unused member and code cosmetics 2010-06-14 10:45:10 +02:00
hjk
b7563b3db2 debugger: streamline RunControl creation a bit 2010-06-14 10:45:10 +02:00
hjk
17a2f6711e debugger: start second shot at Qml debugging 2010-06-10 14:45:31 +02:00
hjk
4f772ea0e0 debugger: show name of core file in output pane.
This is a partial fix for http://bugreports.qt.nokia.com/browse/QTCREATORBUG-1574.
2010-06-07 16:41:28 +02:00
hjk
e65e011706 debugger: let the user specify a working directory when starting a local
application
2010-05-12 11:48:00 +02:00
dt
f4ea0d79b9 Add a runMode method to the RunControl
And use it to implement changing the run icon in the application output.
That implementation does only support the two run modes run and debug
for now. Further abstraction for more run modes to be done once needed.

Task-Nr:   QTCREATORBUG-1232
2010-05-03 11:25:09 +02:00
Friedemann Kleint
7f0d4ea542 Compile fix gcc 4.5/MinGW 2010-04-21 08:26:08 +02:00
Erik Verbruggen
e3bceff3ee Separated child-process stdout/stderr, and seperated "our" output/errors.
So now the "Applciation Output" can distinguish between these four, and
handle them appropriately.
2010-04-19 14:21:48 +02:00
Thorbjørn Lindeijer
2ab7d2eafc Some documentation comment formatting and a rename
Renamed RunConfiguration::configurationWidget to
createConfigurationWidget.

Reviewed-by: dt
2010-04-16 13:31:22 +02:00
Lasse Holmstedt
990ec1be91 Added debugging mode for simultaneous QML and C++ debugging
It's not yet possible to attach to an external app running a qml
debugging server, because the server is only started on startup if an
env variable is set. Changing this requires action from Brisbane, but
even the current solution works for C++ apps with QML in them.

Task-number: BAUHAUS-585
Reviewed-by: dt
2010-04-15 15:08:32 +02:00
dt
c51c16bf58 Fixes wrong state of rerun/stop application output buttons
For DebugRunControls.

Task-Nr: QTCREATORBUG-416
2010-04-14 17:32:14 +02:00
Friedemann Kleint
bbcacaf59f Header cleaning spree in Core/Debugger and Symbian/Maemo-code of Qt4. 2010-03-18 10:59:06 +01:00
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +01:00
Friedemann Kleint
28d72550d3 Removed static QIcon instances.
thus fixing the exit warning:
"~QX11PixmapData(): QPixmap objects must be destroyed..."

Acked-by: con
2010-02-10 10:47:34 +01:00
Tobias Hunger
d1bdfcc363 Integrate target support
* Ease cross device development by introducing 'targets' which
   group build- and runsettings that are valid for this one target

 Most of the kudos for the code review go to dt. Con, thorbjorn,
 ckandler and others did also review parts of this patch.

Reviewed-by: dt
2010-02-09 16:57:37 +01:00
Kai Koehne
4201f3f5cd Revert "Don't crash if one tries to debug a qml project"
This reverts commit 29051539ef.
Superseded by e08783f86d27525566d0a396d8831e2db2bc761d.
2009-12-16 16:40:58 +01:00
Kai Koehne
29051539ef Don't crash if one tries to debug a qml project
Quick fix. Actually there should be IMO no way to start the debugger
for a qmlproject in the frist place.
2009-12-16 12:03:15 +01:00
dt
a312206306 Move most of the BuildConfiguration specific functions
Note: I didn't fix all the connects and there are a few missing things.
This compiles, more work is coming.
2009-11-30 15:24:31 +01:00
dt
10a0647ddf Remove QSharedPointer<> for RunConfiguration 2009-11-19 16:35:18 +01:00
con
43bccb41ed Merge commit 'origin/1.3'
Conflicts:
	src/plugins/debugger/debuggermanager.h
	src/plugins/qmleditor/qmleditorplugin.cpp
	src/plugins/qt4projectmanager/qt4runconfiguration.cpp
2009-11-11 16:14:29 +01:00
hjk
fa2a115aa3 debugger: use 'set substitute-path' 2009-11-09 16:25:54 +01:00
dt
e57bcafc0d Fix startExternal, attachExternal &more to not use a RunConfiguration
Removes around 50 lines of code, one completly unecessary class and
makes the code paths easier to understand.
2009-10-21 13:50:31 +02:00
Friedemann Kleint
22ab8d5662 Debugger: Do configuration error checking early on.
Add a configuration checking method to the Debugger manager,
depending on toolchain, wire it to the engines.
Check that in the debugger run controls.

Add a convenience method to ICore that shows a warning
message with a "Settings" button, pointing the user
to a configuration error on a settings page.

Remove leftovers of the dumper parser.
Acked-by: con <qtc-committer@nokia.com>
2009-10-08 17:23:27 +02:00
Friedemann Kleint
978cf4bda8 Rename IRunConfigurationRunner -> IRunControlFactory...
and ApplicationRunConfiguration to LocalApplicationRunConfiguration,
preparing remote debugging. Change the interface canRun() to be const,
run() to create() (since it does not run anything), use references
to the QSharedPointer<Foo>. Introduce d-Pointer and remove
unneeded headers from ProjectExplorerPlugin and add missing includes
everywhere.
2009-09-25 11:35:44 +02:00
hjk
634e4e5485 debugger: cleanup 2009-09-17 16:22:30 +02:00
hjk
fba9ab5fdc debugger: refactoring
move the start mode variable to DebuggerStartParameters
2009-09-17 16:22:30 +02:00
hjk
6439d545dc debugger: fix recent regression in startup behaviour 2009-09-17 16:22:30 +02:00