Commit Graph

134 Commits

Author SHA1 Message Date
hjk
d26b53e1b9 debugger: more message channeling 2010-06-14 18:40:05 +02:00
hjk
bc65bb2897 debugger: remove unneeded stale connections 2010-06-14 18:24:06 +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
6ed9830971 debugger: move DebuggerRunControl *m_runControl into IDebuggerEngine.
Plan is to identify make identify an IDebuggerEngine incarnation with
a RunControl.
2010-06-14 17:24:13 +02:00
Friedemann Kleint
effa8a38da Windows compilation fix / 97edcb7977 2010-06-14 11:21:31 +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
Friedemann Kleint
a31813da02 Debugger: Add incremental API for modules.
And use it from CDB's module load/unload callbacks
instead of re-setting all modules. Some cleanup.
Acked-by: hjk
2010-05-19 15:14:15 +02:00
Friedemann Kleint
239a95710f Debugger: Windows compile fix/warnings 2010-05-19 08:51:46 +02:00
Friedemann Kleint
709cb2946b Debugger[CDB]: Prompt to set up the Symbol server.
Prompt to set up the public symbol server unless
it is already configured or the environment
variable exists. Change the dialog to be
based on the PathChooser to be able to suggest
a non-existent directory.
Acked-by: Alessandro Portale <alessandro.portale@nokia.com>
2010-05-14 11:06:33 +02:00
con
1fd12ab63b Merge remote branch 'origin/2.0'
Conflicts:
	src/plugins/cpptools/cppcodecompletion.cpp
2010-05-12 17:25:40 +02:00
Friedemann Kleint
a8e464abd9 Compile windows. 2010-05-12 16:15:19 +02:00
Robert Loehning
f88b9d5ab7 Avoid warning about failing connection. 2010-05-12 14:05:58 +02:00
Friedemann Kleint
6d0b571aa5 Debugger[CDB]: Implement of Break-On-Throw.
along with some output formatting to find out defaults.
2010-05-10 15:25:10 +02:00
Friedemann Kleint
2cd7e61528 Debugger[CDB]: Add WatchPoints and breakpoint thread restriction. 2010-05-10 12:00:26 +02:00
ck
ef7c5fae60 Debugger: Support running GDB over SSH.
Reviewed-by: hjk
2010-05-05 12:51:21 +02:00
Robert Loehning
ec5661c1fb Compile fix. 2010-05-04 20:07:17 +02:00
hjk
15a595b429 debugger: refactor module/symbol view 2010-05-04 18:00:10 +02:00
hjk
34db4fd335 debugger: some engine renamings 2010-04-27 15:33:22 +02:00
Friedemann Kleint
bb6a7c3c6c Debugger[CDB]: Wire stderr/stdout output. 2010-04-20 10:31:40 +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
Friedemann Kleint
588884be86 Debugger[CDB]: Format a verbose message when stopping.
Including reason, etc, and show in status bar. Switch to assembler
in activateFrame() in case someone clicks on an unusable frame.
2010-04-15 14:37:10 +02:00
Friedemann Kleint
02a9a46216 Debugger[CDB]: Fix watchers.
Task-number: QTCREATORBUG-1139
2010-04-15 11:57:14 +02:00
Friedemann Kleint
b2ddf72035 Debugger[cdb/gdb]: Fix formatting of integers/messages.
- Do not reformat boolean values (true,false) as hex/oct.
- char/unsigned char types (cdb/gdb): Chop off the quoted
  printable character output by the debugger, pass around integer
  only and append the character ourselves in the watchhandler,
  making reformatting as hex/octal work.
- cdb: Check format correctly (fix values output as plain integer).
- cdb: Kill needless warning produced by reformatting output of out-of-scope
  variables.
- cdb: Display exceptions in the status bar as non-intrusive crash notification.

Reviewed-by: hjk
2010-04-09 16:39:36 +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
Friedemann Kleint
7ffc3733bc Debugger/CDB: Fix stack view when attaching to crashed app.
The timer for event-delivery time-out checking when attaching to a
crashed process in the case of not being spawned by the handler
(such as via single-application remote command) triggered too
early. Add a 'moduleLoaded()' signal to CoreEngine and trigger
from there (due to lack of a proper "engine up/attached"
notification.
Emit moduleLoaded() from the first timed-out debug event handler when
modules no longer change.
Reviewed-by: Robert Loehning <robert.loehning@nokia.com>
2010-03-11 14:52:22 +01:00
hjk
c0a8fbe9ff debugger: rename a few functions 2010-03-10 16:17:40 +01:00
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +01:00
Friedemann Kleint
5bba68aa25 CDB: Break into crashed processes correctly.
Set mode variable correctly, suppress unwanted
debug output.
Reviewed-by: hjk <qtc-committer@nokia.com>
2010-03-03 11:02:27 +01:00
ck
d87d7694bc BinEditor/MemoryView: Follow pointers, potentially in new window.
Reviewed-by: hjk
2010-02-17 17:41:09 +01:00
Friedemann Kleint
be6fd06e95 CDB: Set symbol options at initalization phase. 2010-02-17 10:21:25 +01:00
Robert Loehning
0ac0d532a6 Compile fix. 2010-02-16 18:15:40 +01:00
Friedemann Kleint
df82d67900 CDB: Fix compilation 2010-02-11 11:58:15 +01:00
Friedemann Kleint
b6c7c597c2 Debugger: Introduce engine capability flags to enable actions correctly.
Reviewed-by: hjk
2010-02-05 10:23:55 +01:00
Friedemann Kleint
bf06f38a03 Compile Windows 2010-02-04 13:22:43 +01:00
Friedemann Kleint
fc972e44ef CDB: Extract SymbolGroupContext class into Core library.
Split for testing/scripting purposes.
2010-02-04 13:20:37 +01:00
hjk
ecd475c903 debugger: fall back to instructionwise stepping when debuginfo for frame is
missing
2010-02-01 17:01:51 +01:00
Oswald Buddenhagen
75b42f18d8 Merge remote branch 'origin/1.3'
Trailing whitespace removal re-applied manually.
2010-01-29 22:50:23 +01:00
Oswald Buddenhagen
a6ca348636 remove trailing whitespace
doing it in 1.3 as well to avoid possible later conflicts
2010-01-29 21:33:57 +01:00
Friedemann Kleint
d348e5099b Debugger/CDB: Split engine for testing/scripting purposes. 2010-01-22 17:15:33 +01:00
hjk
e3712f9687 debugger: refactoring, use QByteArray instead of QString when appropriate 2010-01-05 18:13:24 +01:00
Thorbjørn Lindeijer
f098f0398f Merge branch '1.3'
Conflicts:
	src/plugins/projectexplorer/outputwindow.cpp
2009-12-16 14:40:51 +01:00
Friedemann Kleint
ee3dde9cee CDB: Case-normalize file names returned by CDB
Fixing various problems with breakpoints and opened files caused by CDB
returning lower-case file names.
Task-number: QTCREATORBUG-438
Reviewed-by: hjk <qtc-committer@nokia.com>
Acked-by: mariusSO <qt-info@nokia.com>
2009-12-15 11:02:09 +01:00
Friedemann Kleint
bd8d2b0b8a Debugger: Enable attaching with -client option.
Make it possible to trigger a debug-attach in a running instance
of Qt Creator by means of -client, use that in qtcdebugger, thus
enabling it to attaching to crashing executables in run mode
(Windows/CDB).

Modify IPlugin and application so that the complete command line is
serialized and transmitted to a running instance via QtSingleApplication
if -client is specified. Introduce IPlugin::remoteArgument and use that
in core for opening files and in the debugger for attaching.

Use -client in qtcdebugger with some logic to keep it alive as long as
the debuggee, make CDB break in that case as the events are not replayed
correctly in case the debugger is not spawned by the registered handler.
Rubber-stamped-by: con <qtc-committer@nokia.com>
2009-12-14 18:01:39 +01:00
Friedemann Kleint
397b634aee CDB: Fix messages displayed after stop of Debugger.
Reviewed-by: hjk
Task-number: QTCREATORBUG-399
2009-12-14 14:15:15 +01:00
Friedemann Kleint
e87bd302da Debugger: Protect reloadRegisters against early calls.
Check for correct state (InferiorStopped).
2009-11-30 16:45:15 +01:00
Friedemann Kleint
5acac101a6 Cdb: Fix step out.
Use debugger's 'gu' command instead of temporary breakpoint as a
workaround until it is properly supported by the
SetExecutionStatus() API.

Reviewed-by: hjk
Task-number: QTCREATORBUG-240
2009-11-10 10:40:24 +01:00
Oswald Buddenhagen
63c2ceae3b fix compile :} 2009-10-20 11:38:42 +02:00
Oswald Buddenhagen
b3addf14f1 fix shutdown paths
this includes:
- move the gdb ownership back to the engine (thus strip down the
  adaptors as far as possible)
- make gdb startup synchronous
- make adapter shutdown synchronous
- fix the state transitions relating to shutdown
2009-10-20 11:26:55 +02:00
Friedemann Kleint
a3c8a39e3f CDB: Fix attaching to a crashed process. 2009-10-19 14:04:11 +02:00
Friedemann Kleint
3fcd2dfe3a CDB: Ignore initial breakpoint only for console processes.
As otherwise breaking when attaching to running processes
does not work as the startup trap is not received.
2009-10-15 15:04:11 +02:00