Commit Graph

55 Commits

Author SHA1 Message Date
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
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
6a9886576f debugger: small refactoring in the gdbengine startup 2009-09-11 09:51:33 +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
dt
54bbcc4a7c Mention possible locations of the debugging helper in the error dialog
Requires a lot of trivial forwarding.
2009-07-15 17:41:45 +02:00
Alessandro Portale
d3f9757916 Removing some unused semicolons after Q_UNUSED
There were both variants, with and without extra semicolon.
2009-07-13 17:35:17 +02:00
hjk
4d6f8028df debugger: replace a Q_ASSERT by QTC_ASSERT 2009-07-01 14:15:44 +02:00
Friedemann Kleint
f63b4a68a4 Move toolchain detecting code to its proper place. 2009-06-22 12:59:27 +02:00
Friedemann Kleint
12ac317d0a Obtain the toolchain type and choose debugger engine accordingly. 2009-06-18 15:16:18 +02:00
Jason McDonald
884b7af769 Update license headers and sales contact details.
Reviewed-by: Trust Me
2009-06-17 00:01:27 +10:00
con
5a5b1ca5a8 qSharedPointerCast -> qSharedPointerDynamicCast
Especially in the canRun methods this is essential.

Reviewed-by: dt
2009-06-15 19:08:59 +02: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
6c15d33cdc debugger: use dumpers build alongside Qt 2009-03-26 12:36:04 +01:00
dt
e21a74cb35 Change the way the debugging library is build and found, yet again.
We used to build a helper library as part of the project. First with the
qmake -after SOURCES= stuff and after until now with the
gdbmacrosbuildstep. Now, the all new and fancy integretation directtly
into the qt version dialog. You build the debugger library once for
each qt version and then it's there ready to be loaded into each
project build against that qt version. Saves a lot of time.
And makes it possible to also load that library into while debuggign a
cmake project. (Need to hook that up now.)
Unfourtanetly this breaks the custom dumpers if you use a custom run
executable.
2009-03-25 15:18:37 +01:00
hjk
07d51d0c14 Fixes: debugger: worlk on core file loading 2009-03-02 15:14:12 +01:00
Oswald Buddenhagen
d75c5fa220 sanitize some tr() calls 2009-02-27 20:06:08 +01:00
Oswald Buddenhagen
bbaf7893cc "debug in terminal" feature.
includes complete refactoring of ConsoleProcess.
2009-02-27 18:04:36 +01:00
hjk
8ca887aae2 Fixes: change file license headers to include LGPL 2009-02-25 09:15:00 +01:00
hjk
9bb43992cd Fixes: debugger: enum naming cosmetics 2009-02-16 13:58:43 +01:00
hjk
e4a9d85c00 Fixes: debugger: work on shutdown 2009-02-16 13:29:57 +01:00
hjk
b2387fdda8 Fixes: debugger: load modules list early
Details:  feels better
2009-02-13 13:50:50 +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
hjk
da3cb14483 chancge Nokia GPL exception version from 1.2 to 1.3 2008-12-16 17:20:00 +01:00
hjk
4a552ead9f use QTC_ASSERT instead of Q_ASSERT 2008-12-09 15:25:01 +01:00
hjk
56133d4f4f move plugins/debugger/assert.h -> /libs/utils/qtcassert.h 2008-12-09 12:27:55 +01:00
hjk
9cdbb1527b rename QWB_ASSERT into QTC_ASSERT 2008-12-09 12:08:56 +01:00