Commit Graph

55 Commits

Author SHA1 Message Date
Friedemann Kleint
342ab57db2 Debugger: Un-export GdbAdapters.
Reviewed-by: hjk
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2010-09-13 11:08:08 +02:00
Lasse Holmstedt
7c1f9fba8b Debugger: Disable auto switching of debugger languages based on qmlfiles 2010-08-31 16:49:00 +02:00
Olivier Goffart
af46c3d947 qml debugger: make the application output work 2010-08-26 11:26:32 +02:00
Lasse Holmstedt
7afef49682 Qml Debugger: Code style and cleanup
Reviewed-by: hjk
2010-08-24 17:47:20 +02:00
Lasse Holmstedt
b557c58eac Qml Debugger: Enable debugging qml+cpp standalone applications
A new debugger engine, QmlCppEngine, is introduced, which wraps gdb
and qml engines into one. Alternatively, if using Windows, Cdb is used
instead of Gdb.

Most of the debugger ui switcher is now rewritten, and it is tailored
for the QML and CPP layout case, the only one supported anyway.

Reviewed-by: hjk
2010-08-24 17:46:22 +02:00
Friedemann Kleint
54f9654bd3 Debugger: Fix Symbian.
...which subclasses DebuggerRunner and does not call
DebuggerPlugin::startDebugger(), which connects the
engine, leading to strange malfunctions. Move functionality
to DebuggerRunner::start() to make it self-contained.
Add object names to engines for easier debugging.

Reviewed-by: hjk
2010-08-24 15:35:46 +02:00
Friedemann Kleint
5b4f826552 S60: Dis-embed the embedded run S60 debugger run control.
As it created 2 output panes that could be closed indepently
of each other.
2010-08-20 15:23:42 +02:00
Friedemann Kleint
6840c1d198 Debugger: Refactor run control termination.
Fix breakage introduced by the new asynchronous stop() methods
of the debugger run controls. Allow for RunControl::stop() to
be asynchronous by introducing a return enumeration indicating
that. Introduce additional method aboutToStop() asking user
to quit (tie that to the RunControl instead of having to hack
the behaviour elsewhere).
If asynchronous stop is detected, terminate the ProjectExplorer
asynchronously.
This makes the behaviour consistent across switching sessions/
closing outputwindow tabs and quitting Qt Creator.

Reviewed-by: dt
Rubber-stamped-by: hjk
2010-08-20 14:19:25 +02:00
hjk
96561a38c7 debugger: enable debugging of multiple projects at the same time 2010-07-22 10:59:22 +02:00
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
5adb6559e2 debugger: attempt to fix symbian output connections 2010-06-23 12:40:56 +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
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
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
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
b7563b3db2 debugger: streamline RunControl creation a bit 2010-06-14 10:45:10 +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
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
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
dt
10a0647ddf Remove QSharedPointer<> for RunConfiguration 2009-11-19 16:35:18 +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
90470771fd Debugger: Export DebuggerManager and DebuggerStartParameters.
For device debugging. Move both from namespace
Debugger::Internal to Debugger, export them, give
DebuggerManager a static instance().
2009-09-25 16:01:28 +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
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
hjk
b765124163 debugger: refactoring
remove DebuggerRunControl from DebuggerManager
use typedef for QSharedPointer<DebuggerStartParameters>
2009-09-17 13:32:20 +02:00
hjk
10a6829aaf debugger: refactorization
merge DebuggerRunControl::m_dumperLibrary{,Location} into StartParameters
2009-09-17 12:48:11 +02:00
hjk
c9da1d9543 debugger: code cosmetics 2009-09-11 09:51:33 +02:00
con
472c806940 Move DebuggerRunControl initialization out of ::start method. 2009-09-10 16:59:12 +02:00
dt
9f91842813 Compile without rtti support
Since we can easily do that, just do it. No gurantee that we aren't
going to use rtti in the future.
2009-08-27 12:12:35 +02:00
hjk
93cbef8724 long live the king 2009-08-14 09:30:56 +02:00
Friedemann Kleint
da36d051a9 Debugger: Fix debugging external executables/attaching to pid.
... by creating a default run configuration.
2009-07-28 09:10:35 +02:00
Jason McDonald
884b7af769 Update license headers and sales contact details.
Reviewed-by: Trust Me
2009-06-17 00:01:27 +10:00
Friedemann Kleint
c4a0abcda7 Enabled passing on PIDs from the command line to the debugger.
Introduced struct DebuggerStartParameters to pass around
start parameters, removing the need for the engines to
access private members of DebuggerManager. Pass it
to DebuggerManager::startNewDebugger() and move
the GUI parts of that function into DebuggerPlugin,
making it possible to create the struct from command line
parameters. Introduce command line parsing with a few more
-enable-xx options. Introduce warning() to debugger panel
in the CDB engine.

On this occasion, clean out a few trailing whitespaces.
2009-05-25 16:22:11 +02:00
hjk
b373242aca debugger: use current run configuration to read symbols for gdbserver 2009-05-05 17:50:35 +02:00
hjk
8ca887aae2 Fixes: change file license headers to include LGPL 2009-02-25 09:15:00 +01:00
hjk
e4a9d85c00 Fixes: debugger: work on shutdown 2009-02-16 13:29:57 +01:00
Oswald Buddenhagen
72b6a105b7 app output window reorga
- drop prefix magic
- avoid inserting stray newlines

this also fixes the overquoting of app output.
2009-01-15 14:58:54 +01:00
Daniel Molkentin
59affcfffc Bump year in licence header. 2009-01-13 19:22:14 +01:00