Commit Graph

41 Commits

Author SHA1 Message Date
Friedemann Kleint
24cadd34a1 I10N: First translation fixes for 2.1
Fix README, some spelling errors, remove contractions,
exclamation marks, correct some plural forms, join split messages.
Add QCoreApplication::translate to non-Q_OBJECT-classes.
Fix some lupdate warnings about discarding meta-data (//:).
2010-09-10 10:51:43 +02:00
Tobias Hunger
715796b48a Fix krazy issues: Use explicit constructors
* Fix all warnings about non-explicit constructors except for those
   in 3rdparty code.
2010-08-27 12:10:29 +02:00
hjk
9cbbeec6c1 debugger: move convienience function to DebuggerEngine base class 2010-07-21 14:28:29 +02:00
hjk
99fdaf06a2 debuygger: make snapshots using true parallel engines 2010-07-14 17:49:17 +02:00
hjk
3eef8a43c0 debugger: more state work 2010-07-14 17:49:16 +02:00
hjk
e760700f0f debugger: overhaul "state machine"
This mainly allows for more precise shutdown and tightens the set
of allowed transitions.
2010-07-14 17:49:16 +02:00
hjk
9e7a456457 debugger: refactor startup logic 2010-07-14 17:49:16 +02:00
hjk
405f340e2b debugger: streamline communication between GdbEngine and the adapters 2010-07-08 12:41:53 +02:00
hjk
6a6cba5518 debugger: The DebuggerEngine refactoring.
This replaces the (de facto) singleton engines and data handlers by classes
that are instantiated per run. The DebuggerRunControl will now create an
object of (a class derived from) DebuggerEngine that contains all the relevant
"dynamic" data.

DebuggerManager is no more. The "singleton" bits are merged into DebuggerPlugin,
whereas the data bits went to DebuggerEngine.

There is no formal notion of a "current" DebuggerEngine. However, as there's
only one DebuggerEngine at a time that has its data models connected to the
view, there's still some "de facto" notion of a "current" engine. Calling
SomeModel::setData(int role, QVariant data) with custom role is used as the
primary dispatch mechanism from the views to the "current" data models
(and the engine, as all data models know their engine).
2010-06-22 10:59:57 +02:00
hjk
9f7e9dc0ae debugger: refactoring of output channeling 2010-06-14 18:22:09 +02:00
hjk
b3aff6b919 debugger: more of the RunControl refactoring
Pass output through the RunControl instead of the DebuggerManager.
2010-06-14 17:24:13 +02:00
hjk
97edcb7977 debugger: start 'runcontrol-ification' of the debugger plugin.
This replaces most uses of DebuggerStartParameters by DebuggerRunControl
which is a simple RunControl with a DebuggerStartParameters member.

Plan is to move all global state to the run controls, and possibly
introduce specialized ones for core debugging etc.
2010-06-14 10:45:11 +02:00
ck
ef7c5fae60 Debugger: Support running GDB over SSH.
Reviewed-by: hjk
2010-05-05 12:51:21 +02:00
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +01:00
hjk
0bde89eee3 debugger: use the direct access withing trkadapter to list threads 2010-02-08 13:02:25 +01:00
hjk
e539f5bda3 debugger: take advantage of the fact that the trkadapter has often up-to-date
register data
2010-02-04 12:12:27 +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
10e07e01c7 Debugger: Use LD_PRELOAD to load debugging helper.
on UNIX. Either set the LD_PRELOAD environment variable
using a gdb command or have the TermGdbAdapter set the
variable for the debuggee. For the remote adapter,
switch on toolchain. dlopen() is a fallback for
platforms where it is not supported and attaching
to running processes. Fixes a crash with gdb 7.0
(and spurious gdb 6.8 crashes with dlopen()).
Reviewed-by: hjk <qtc-committer@nokia.com>
2009-11-03 14:06:21 +01:00
Oswald Buddenhagen
a4760b716e centralize message box handling in adapters 2009-10-20 18:16:25 +02:00
Oswald Buddenhagen
3dc1e31deb fix initial breakpoint setting
as it turns out, it is not possible to set pending breakpoints until
gdb has loaded as image. so add some hooks to enable adapters to trigger
the initial breakpoint syncing at the right time. do not add additional
states (say, InferiorPreparing), as it would just complicate things.
2009-10-20 11:26:55 +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
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
b2924aa66b I18n: Tr()-fixes 2009-10-12 12:33:12 +02:00
Oswald Buddenhagen
cff3b9e0f1 centralize some code in AbstractGdbAdapter 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
f42ad24dba remove dead code 2009-10-08 12:15:00 +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
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
hjk
b5706d77cf debugger: save a few cycles when writing to the gdb process 2009-09-29 09:35:04 +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
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
e5f0807f8b debugger: refactoring of AbstractGdbAdapter
remove shutdownInferior()
rename shutdownAdapter() into shutdown()
remove errorString()
rename isAdapter() into isTrkAdapter()
2009-09-22 11:44:06 +02:00
hjk
252fd2e7b1 debugger: refactoring of AbstractGdbAdapter
remove shutdownInferior(), rename shutdownAdapter() into shutdown()
2009-09-22 11:32:34 +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
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