Commit Graph

77 Commits

Author SHA1 Message Date
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
hjk
1d64e169b0 debugger: rework startup logic 2009-09-22 08:11:30 +02:00
hjk
ae2cfdaa53 some cleanup 2009-09-22 08:11:30 +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
daf4c32f32 debugger: work on trk exit/restart 2009-09-16 14:12:40 +02:00
hjk
d9cf3a8714 debugger: more trk/gdbengine refactoring 2009-09-15 11:39:54 +02:00
hjk
491a747ebb debugger: refactoring
rename GdbProcessBase into AbstractGdbAdapter
rename SymbianAdapter into TrkGdbAdapter
rename GdbProcess into PlainGdbAdapter
2009-09-11 15:54:01 +02:00
hjk
17f9204bba debugger: refactoring in the gdbengine 2009-09-11 12:31:07 +02:00
hjk
6a9886576f debugger: small refactoring in the gdbengine startup 2009-09-11 09:51:33 +02:00
hjk
648ceaed18 debugger: work on trk integration 2009-09-10 16:30:04 +02:00