Commit Graph

146 Commits

Author SHA1 Message Date
hjk
f8d96f09a6 debugger: rename startDebugger() to startEngine() 2010-07-08 13:48:09 +02:00
hjk
eab55aac6b debugger: move state change to EngineStarting into the base class 2010-07-08 13:28:51 +02:00
hjk
cdf7dbeada debugger: start refactoring of state transitions
This updates the state diagram in debuggerplugin.cpp and
renames AdapterStart{Fail}ed to EngineStart{Fail}ed.
2010-07-08 11:45:51 +02:00
Friedemann Kleint
ab6f124e57 Debugger: Make threads tooltip more verbose
CDB: Add more information and state to Thread.
Refactor thread information in CdbCore classes to prepare for more
information.
2010-07-02 14:35:41 +02:00
Friedemann Kleint
cda5f5d69b Debugger: Re-enable CDB 2010-06-22 14:23:22 +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
Friedemann Kleint
4f45855188 Debugger[CDB]: Compile fix. 2010-06-15 12:55:09 +02:00
hjk
a4f412388d debugger: move m_inferiorPid from DebuggerManager to DebuggerRunControl 2010-06-15 12:51:18 +02:00
hjk
ff7c543a73 debugger: move RegisterHandler from DebuggerManager to DebuggerRunControl 2010-06-15 11:43:20 +02:00
hjk
12fd2a6091 debugger: move showModuleSymbols from DebuggerManager to DebuggerEngine 2010-06-15 11:43:20 +02:00
Friedemann Kleint
4d1602cb0a Debugger[CDB]: Re-introduce signal-slot connection for output.
...to fix multithread crash.
Fix exit crash by temporarily removing output.
2010-06-15 09:49:22 +02:00
Robert Loehning
5b30072731 Compile fixes
Wrote down what hjk told me.
2010-06-14 19:09:18 +02:00
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