Commit Graph

39 Commits

Author SHA1 Message Date
con
fa34847571 Merge commit 'origin/1.3'
Conflicts:
	src/plugins/debugger/gdb/gdbengine.cpp
	src/plugins/qt4projectmanager/qt4project.cpp
2009-11-03 18:08:01 +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
con
98ded2e856 Merge commit 'origin/1.3' 2009-10-30 18:30:12 +01:00
Oswald Buddenhagen
9d20a2abb4 make attaching adapters more robust
to make the behavior consistent across gdb versions, ignore the initial
*stopped which gdb7 delivers while attaching.

Reviewed-By: hjk
2009-10-30 17:47:51 +01:00
Oswald Buddenhagen
c9f9310bb1 Merge remote branch 'origin/1.3'
Conflicts:
	src/plugins/cpptools/cppcodecompletion.cpp
	src/plugins/debugger/gdb/remotegdbadapter.cpp
2009-10-20 20:09:00 +02:00
Oswald Buddenhagen
3a84440e91 clean up includes 2009-10-20 18:16:25 +02:00
Oswald Buddenhagen
d34ad30b55 fix error message
these are a mess anyway
2009-10-20 18:16:25 +02:00
Oswald Buddenhagen
a4760b716e centralize message box handling in adapters 2009-10-20 18:16:25 +02:00
Oswald Buddenhagen
b2ae433a58 centralize exec-continue calling and error handling 2009-10-20 14:08:59 +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
4b0060c537 adapters don't need to set DebuggerNotReady state 2009-10-20 11:26:55 +02:00
Oswald Buddenhagen
de9b4e8365 centralize setting of AdapterStarted state 2009-10-20 11:26:55 +02:00
ck
e4f24ab53f Remote debugging: Choose the right debugger. 2009-10-19 10:20:00 +02:00
ck
6a49395e33 Add experimental Maemo support.
Includes Maemo tool chain, run configuration, run control,
manager, etc.

Adds the DebuggerManager to the object pool. This is ugly, but
nobody came up with anything better on short notice. To be
refactored.

Co-Authored-By: kh1
2009-10-16 18:01:07 +02:00
ck
46c4f84a04 Add support for "set sysroot" for remote debugging. 2009-10-16 18:01:07 +02:00
ck
42d3ada0b4 Re-enable "set target-async on" and make failure non-fatal 2009-10-16 18:01: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
b27093c07d fix state machine surrounding spontaneous stops 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
1653e287e7 if 0 some code - the calling code is if 0'd as well 2009-10-12 18:52:15 +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
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
51a22cbe7c centralize STRINGIFY definition 2009-10-08 12:18:02 +02:00
Oswald Buddenhagen
2ec0bc9f6d remove useless code
--tty + outputcollector, working dir and environment setup make sense
only for living local debuggees.
2009-10-08 12:14:54 +02:00
hjk
09e72eaa81 debugger: fix remote debugging 2009-10-08 10:13:53 +02:00
ck
3b12f5f1d6 Some work towards functioning remote debugging
Fix gdb commands, state changes and signals emissions.
- There were some invalid gdb commands (e.g. "attach").
- There also were a number of unexplected state transitions.
2009-10-08 09:56:07 +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
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
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
f5c6f667d1 debugger: work on remote debugging using plain gdbserver 2009-09-24 10:54:51 +02:00
hjk
378036c916 debugger: make attaching to running process work again 2009-09-23 15:28:50 +02:00
hjk
713b1f2034 debugger: re-activate core file debugging 2009-09-23 13:38:33 +02:00
hjk
ad6ee1cafb debugger: clean up gdbengine 2009-09-23 09:56:11 +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