Commit Graph

121 Commits

Author SHA1 Message Date
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
Friedemann Kleint
39b4feef9e CDB: Perform dumper initialization in a thread.
... with an event loop with disabled user input to keep
the GUI alive.
2009-10-14 11:38:40 +02:00
Oswald Buddenhagen
d1783e0974 fold preparing inferior into starting inferior
after refactoring the trk adapter startup, the split was not necessary
any more. in fact, it seemed fairly arbitrary at this point.
2009-10-13 20:43:12 +02:00
Friedemann Kleint
14058c07ec CDB: Bug fixing
- Turn off initial breakpoint when attaching (terminal) and
  additionally ignore it before the first startup complete
- Refuse to step  the artifical thread created when
  interrupting
- If possible, switch to thread 0 when interupting (do not
  use artificial thread)
- Ignore non-fatal exceptions in dumper calls (stray Startup-
  complete-traps)
- Use right thread for dumper call loading
- Rename windows exception code enumeration
- Turn off modification off watch-data children by setType,
  show empty lists correctly.
- Verbose warnings about inserting invalid watch data.
2009-10-13 14:16:50 +02:00
Friedemann Kleint
162be9a338 CDB: Add nagging about old version of Debugging Tools.
Add utility to figure out DLL/Product versions.
2009-10-09 17:33:24 +02:00
Friedemann Kleint
c70f968fac CDB: Fix step into, improve multithread dumping, exception logging
Use new call syntax of 6.11. for dumper call loading. Execute
Dumpers in a single thread (current) if at all possible (not
in some WaitFor or artificial break thread). Show one more
frame in threads view if it is FastCallReturn. Fix step into
(ignore one event), log some more exceptions. Generally log
exceptions to the debugger windows to be able to see stuff
like DLL missing, etc.
2009-10-06 15:50:48 +02:00
Friedemann Kleint
2a9233a03a CDB: Provide thread frame information 2009-10-05 17:20:38 +02:00
Friedemann Kleint
5948e284bb Rename namespace Core::Utils into Utils
Also move Designer::Internal::FormWindowEditor ->
Designer::FormWindowEditor.
2009-10-05 11:06:05 +02:00
Friedemann Kleint
0f486fd532 CDB: Fix stepping and a crash on dumping expanded pointer items.
Simplify & Generalize stepping code, introduce stubs for reverse
debugging. When user switches to another thread than the
event-triggering one in a stopped inferior, explicitly tell
the engine to continue that one.

Improve fixDumperResult to fix missing types (out of scope items)
and call it from expandPointerDumpable.
2009-10-01 14:41:30 +02:00
Friedemann Kleint
8cc94d10a2 CDB: Implement "Run to line/function", fix step by instruction.
Remove unused exec functions, replace by calls to the respective
stepExec/nextExec, which sets the code level automagically
according to the OperateByInstruction action.
2009-09-30 17:13:52 +02:00
Friedemann Kleint
b8df455b82 CDB: Fix missing session cleanup on inferior exit, new state model
Adapt to new state model, make sure session is always cleaned
when invoked from processExited event handler, remove calls
to DebuggerManager::notifyXX().
2009-09-30 11:44:04 +02:00
Friedemann Kleint
cb8830d9af CDB: Remove "experimental" message, better logging for threads 2009-09-29 17:33:51 +02:00
Friedemann Kleint
c3a5a4877c CDB: Compile Windows 2009-09-29 16:03:30 +02:00
hjk
03e966085f debugger: code cosmetics 2009-09-29 14:47:27 +02:00