Commit Graph

14 Commits

Author SHA1 Message Date
hjk
e3712f9687 debugger: refactoring, use QByteArray instead of QString when appropriate 2010-01-05 18:13:24 +01:00
Oswald Buddenhagen
5fd1e3c454 properly decode messages from gdb
... using fromLocal8Bit instead of fromLatin1.
of course the localized messages pose a "challenge" for the various
workarounds which parse them ...

Task-number: QTCREATORBUG-504
2010-01-04 14:12:28 +01:00
Friedemann Kleint
ffca9bb5cc Debugger: Do not use LD_PRELOAD on Mac.
Fails for system Qt on 10.6.

Reviewed-By: hjk <qtc-committer@nokia.com>
2009-11-12 16:49:12 +01:00
Friedemann Kleint
a6d099a1ea Debugger: Fix LD_PRELOAD on Mac.
Reviewed-by: hjk <qtc-committer@nokia.com>
2009-11-03 16:02:16 +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
151b785d01 terminal adapter: make skipping of initial SIGSTOPs more reliable
first, _start being resolvable depends on libc-dbg being installed.
second, depending on the frame being in the dynloader makes it
a) work only for dynamic executables and b) fail on multi-target
systems (due to a hard-coded file name).
so instead just remember the entry point, as we are already there
anyway.

Reviewed-By: hjk
2009-10-30 17:47:51 +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
ad3d1c5887 assert pid presence 2009-10-29 15:34:00 +01:00
Oswald Buddenhagen
954b2b1786 less noise 2009-10-29 15:34:00 +01:00
Oswald Buddenhagen
3a84440e91 clean up includes 2009-10-20 18:16:25 +02:00
Oswald Buddenhagen
c936e29931 remove useless methods (base class has identical implementations) 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
ad092d11d5 re-add debug-in-terminal in form of a new gdb adapter 2009-10-20 11:26:55 +02:00