Commit Graph

105 Commits

Author SHA1 Message Date
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
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
4dbfc18340 Debugger: Compile Windows. 2009-09-25 15:10:19 +02:00
Friedemann Kleint
9a442ce79c Compile Windows 2009-09-25 09:31:35 +02:00
hjk
20b9258d9e debugger: refactoring
Intergrate per-engine state tracking with the global running/stopped state.
2009-09-25 08:36:44 +02:00
hjk
c5f13cedf9 debugger: partial refactoring of debugger engine creation 2009-09-23 12:13:05 +02:00
Friedemann Kleint
245dfe51c6 Compile Windows 2009-09-17 16:29:51 +02:00
hjk
058b55adc5 debugger: work on trk integration 2009-09-10 13:14:51 +02:00
Christian Kamm
8bc81f4395 Make 'step over' without stepping by instruction work with cdb.
By fixing a bug in CdbDebugEnginePrivate::setCodeLevel.

Reviewed-by: hjk
2009-08-27 14:15:16 +02:00
Friedemann Kleint
76c226dfdb Debugger: Fix memory display
- Watchwindow: Do not open Address dialog if menu is canceled (act = 0
  matching the unitialized unknown memory action)
- Actually pass the address of the dialog to the agent
- Make the "Open Memory editor..." action always visible to be able to
  look at const char *x pointing at y
- Improve the address dialog with checking and dialog button box
- Explicitly pass the quint64 around
- Translate & purge
2009-08-19 14:41:51 +02:00
Friedemann Kleint
5b6ab144c6 CDB: Make disassembly work. 2009-08-18 09:59:15 +02:00
Friedemann Kleint
9fe978fe39 CDB: Compile, new Disassembler architecture. 2009-08-17 16:03:27 +02:00
hjk
9febb0bcb8 debugger: remove old disassembler view and handler
It is replaced by a real editor in e82d6c7b0.
2009-08-17 13:34:15 +02:00
hjk
e82d6c7b05 debugger: create a disassembler view as main editor
"Stepping instruction wise" and "display disassembler" mode is now toggled by a
single action. This also allows to re-use F10 and F11 as keyboard shortcut.

Missing: caching of disassembler output, removal of old disassembler view.
2009-08-17 13:18:54 +02:00
hjk
93cbef8724 long live the king 2009-08-14 09:30:56 +02:00
hjk
abdc85f070 debugger: register view cosmetics
Show the current number base in the view.
2009-08-13 16:16:19 +02:00
Friedemann Kleint
894febbadf Debugger: Make use of the "displayedtype" attribute.
Fix "displayedtype" in CDB, display it elsewhere.
Log debugger settings in DebuggerManager startup.
Acked-by: hjk <qtc-committer@nokia.com>
2009-08-12 11:21:44 +02:00