Oswald Buddenhagen
e0a0aebbae
group declarations logically
2009-10-20 11:26:55 +02:00
Oswald Buddenhagen
0e398303cc
remove dead code
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
hjk
fa71a4879c
debugger: work on autotests
2009-10-14 10:02:07 +02:00
Oswald Buddenhagen
70f696d056
-gdb-exit has a special return code as well
2009-10-13 20:43:13 +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
Oswald Buddenhagen
a2cc84194f
remove dead code
2009-10-13 20:43:12 +02:00
Oswald Buddenhagen
7782e26ae6
comment out handleExecRunToFunction()
...
it is currently unused. do not just remove it, as hjk says he wants to
revive it.
2009-10-13 20:42:11 +02:00
Oswald Buddenhagen
68c2156f6f
add docu to GdbCommandFlag values
2009-10-12 14:56:35 +02:00
Oswald Buddenhagen
a1a8f6adcb
centralize gdb command result class checking
...
each command can have only one of two legitimate responses: "error" or -
depending on the command, and thus declared via a flag - "done" or
"running".
this is way nicer than sprinkling the code with else-ifs (where elses
are sufficient) and asserts all over the place - and silently failing in
release builds.
2009-10-12 14:56:35 +02:00
hjk
7e3d954195
debugger: work on a "synchroneous" mode
...
For the case that gdb can give all the interesting data in one go.
2009-10-12 14:51:23 +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
Oswald Buddenhagen
9ae0575ae2
add central GdbEngine::handleInferiorPidChanged()
...
fixes build
2009-10-09 13:39:27 +02:00
Oswald Buddenhagen
1610c14d22
make direct call of handleStop1() more elegant
2009-10-09 13:01:51 +02:00
Oswald Buddenhagen
21314b78d9
rename handleAsyncOutput() => handleStopResponse()
2009-10-09 13:01:50 +02:00
Oswald Buddenhagen
0eca150031
debug output: don't claim "continuing after temporary stop" if we are not
2009-10-09 13:01:50 +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
aa97f43a92
rename m_continuationAfterDone => m_commandsDoneCallback for clarity
2009-10-08 12:43:48 +02:00
Oswald Buddenhagen
ccf4fe9a5f
use gdb's target stream output
...
at least in theory, this is the output of a remote debuggee
2009-10-08 12:18:03 +02:00
Oswald Buddenhagen
1d6da5044d
move the output collector to the plain gdb adapter
...
doesn't make sense anywhere else
2009-10-08 12:18:03 +02:00
Oswald Buddenhagen
7313f3d666
don't instanciate all adaptors at once
2009-10-08 12:18:03 +02:00
Oswald Buddenhagen
94cb4644c2
errorMessage() does not need to be a slot
2009-10-08 12:18:03 +02:00
Oswald Buddenhagen
fa654f61b9
collect friend declarations
2009-10-08 12:18:02 +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
d130588469
debugger: add option to automatically derefence pointers in locals&watchers
2009-10-06 10:54:08 +02:00
hjk
75529d87d3
debugger: rework 'jump to source' logic
2009-10-05 12:01:23 +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
93902e5d0a
debugger: make 'qtcreator -debug <corefile>' work
2009-09-30 12:27:44 +02:00
hjk
49b6498870
debugger: remove some unused code
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
10fa3b2b76
debugger: remove inferiorStarted() signal.
...
It had unclear semantics and was only used to show a statusmessage.
We do that directly now.
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
d5f1035770
debugger: refactoring
...
Move GdbAdapterState from individual adapters to GdbEngine.
Also, remove some trailing whitespace.
2009-09-24 11:46:38 +02:00
hjk
8f6aa2259e
debugger: refactoring
...
rename GdbResultRecord into GdbResponse
merge cookie QVariant into GdbResponse
move debugMessage convienience function from individual adapters to base
2009-09-24 11:22:45 +02:00
hjk
063d13e00f
debugger: work on general shutdown handling
2009-09-24 10:54:50 +02:00
hjk
b65bbff491
debugger: split connectDebuggingHelperActions(bool) into connect* and disconnect*
2009-09-23 15:32:22 +02:00
hjk
378036c916
debugger: make attaching to running process work again
2009-09-23 15:28:50 +02:00
hjk
d24752a765
debugger: remove more dead code
2009-09-23 14:00:56 +02:00
hjk
713b1f2034
debugger: re-activate core file debugging
2009-09-23 13:38:33 +02:00
Friedemann Kleint
3215da914e
Gdb: Parse out MinGW gdb process id correctly, connect dumper acts.
2009-09-23 12:04:25 +02:00
hjk
d25066f8ad
debugger: let the gdb adapters access the engines start parameter instead of keeping a copy
2009-09-23 10:14:53 +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
ad6ee1cafb
debugger: clean up gdbengine
2009-09-23 09:56:11 +02:00
Friedemann Kleint
0134fb682d
Debugger: Compile
2009-09-22 12:23:31 +02:00
hjk
252fd2e7b1
debugger: refactoring of AbstractGdbAdapter
...
remove shutdownInferior(), rename shutdownAdapter() into shutdown()
2009-09-22 11:32:34 +02:00
hjk
65a544793e
add new 'RemoteGdbAdapter' to be handled with gdbserver connections
2009-09-22 10:51:24 +02:00
hjk
efb02a30a0
debugger: rework plain gdb shutdown logic
2009-09-22 08:11:31 +02:00