Commit Graph

195 Commits

Author SHA1 Message Date
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
25ee70bb24 Debugger: Use the code model to detect unitialized variables.
This should save debugger round trips and crashes in the debugging
helpers.
Add respective option to debugging helper option page, defaulting to
true.On this occasion, make CDB detect shadowed variables correctly
and display them as "<shadowed n>" as does the Gdb engine by
reversing the direction in which
CdbSymbolGroupContext::populateINameIndexMap works.
Rubber-stamped-by: hjk <qtc-committer@nokia.com>
2009-10-16 16:26:28 +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
Oswald Buddenhagen
8e6d25d14a centralize gdb comm log queuing
this drastically improves the usefulness of the debugger output window
by making internal and external messages appear in sync.
2009-10-09 16:36:58 +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
Oswald Buddenhagen
ba47987e67 purge TCF agent cra^Wstuff
it's dead code
2009-10-08 12:18:03 +02:00
Friedemann Kleint
81a8f2f927 Debugger: Improve adapter error handling
Correctly reset state on missing Symbian gdb.
Provide "settings" options.
Reviewed-by: hjk <qtc-committer@nokia.com>
2009-10-08 11:43:26 +02:00
hjk
21cd54802a debugger: make "Debugger View" un-tabbed at the top of the screen by default. 2009-10-07 14:30:36 +02:00
Friedemann Kleint
1fb8f60e03 Debugger: Fix crash toggling Stack/"Derefence Pointers" without project
Enable debugger actions correctly.
Reviewed-by: hjk <qtc-committer@nokia.com>
2009-10-07 13:36:48 +02:00
Friedemann Kleint
67155e3d7f Debugger: Extend threads model to display frame.
Acked-by: hjk <qtc-commiter@nokia.com>
2009-10-05 17:19:28 +02:00
hjk
75529d87d3 debugger: rework 'jump to source' logic 2009-10-05 12:01:23 +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
hjk
99bdc54199 debugger: small tweaks to gotoLocation() 2009-10-02 12:31:59 +02:00
hjk
a8430f3382 debugger: fix chain of fallbacks for disassembler view.
Use non-mixed mode if source is not available.
2009-10-02 12:31:59 +02:00
hjk
aff42fec75 debugger: re-enable "data drill down on mouse hover" 2009-10-01 18:01:53 +02:00
hjk
21f0f2c900 debugger: work on location marker setting. 2009-10-01 17:03:56 +02:00
hjk
828b1f9616 debugger: better updating of the stack and debugger view location marker 2009-10-01 17:03:56 +02:00
hjk
d8477a4731 debugger: hot fix for stepping on the same line 2009-10-01 13:46:48 +02:00
hjk
3b280a3ad3 debugger: fix 'Detach debugger' action 2009-09-30 13:07:14 +02:00
hjk
93902e5d0a debugger: make 'qtcreator -debug <corefile>' work 2009-09-30 12:27:44 +02:00
hjk
2dff35548a debugger: small adjustments to the state diagram 2009-09-30 12:27:43 +02:00
hjk
3ea8fe0764 debugger: augment state diagram 2009-09-30 10:25:00 +02:00
hjk
c60f1468d3 debugger: improve trk shutdown 2009-09-30 09:16:55 +02:00
hjk
1bd7163558 debugger: cache disassembler results per-function. 2009-09-29 16:32:54 +02:00
hjk
c27d8b7280 debugger: move DisassemblerViewAgent from plugin to manager 2009-09-29 16:32:54 +02:00
hjk
17c928f970 debugger: introduce a new state InferiorUnrunnable to properly describe the
state when gdb is attached to a core.
2009-09-29 14:47:27 +02:00
hjk
573ca3ad85 debugger: rename StepByInstruction into OperateByInstruction 2009-09-29 14:47:27 +02:00
Friedemann Kleint
c3bb032753 Trk/S60: Wire debugger parameters.
Remove conditionals from toolchain enumeration, pass parameters to
TrkGdbAdapter, rename function in runconfig, derive symbol
file from local exe file.
2009-09-29 13:49:35 +02:00
hjk
1ce92c0ed6 debugger: centralize view cleanup in the manager to setState(DebuggerNotReady) 2009-09-29 10:59:46 +02:00
hjk
37add8b52d debugger: suppress debug output for known state changes triggered by initialization 2009-09-29 10:59:46 +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
ec7c77ca23 Debugger: Work towards exporting DebuggerManager: Introduce d.
Clean out header.
2009-09-25 15:02:16 +02:00
hjk
00f676708b debugger: work on handling gdb crashes gracefully 2009-09-25 11:50:39 +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
063d13e00f debugger: work on general shutdown handling 2009-09-24 10:54:50 +02:00
Friedemann Kleint
f204261641 Debugger: Compile Windows, check only .exe files for PE sections. 2009-09-23 14:00:18 +02:00
hjk
76d1de0b87 debugger: parse pid only once from output 2009-09-23 12:15:51 +02:00
hjk
bd65bd21f3 debugger: remove outdated comment 2009-09-23 12:13:05 +02:00
hjk
c5f13cedf9 debugger: partial refactoring of debugger engine creation 2009-09-23 12:13:05 +02:00
hjk
89861828ee debugger: merge gdb engine and symbian engine.
The trk parts are an 'adapter' in the gdb engine.
2009-09-23 09:56:12 +02:00
hjk
634e4e5485 debugger: cleanup 2009-09-17 16:22:30 +02:00
hjk
e642b0b1b6 debugger: work on startup 2009-09-17 16:22:29 +02:00
hjk
67e041940a debugger: break long lines 2009-09-17 16:22:29 +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
903a50a6ef debugger: work on trk integration 2009-09-10 13:59:21 +02:00
hjk
058b55adc5 debugger: work on trk integration 2009-09-10 13:14:51 +02:00
hjk
ffaa42e585 debugger: merge trk adapter into debugger sources 2009-09-09 17:25:02 +02:00
hjk
5a4a376949 debugger: fix start up of scriptengine when discovering a script 2009-09-02 10:44:20 +02:00