OSDN Git Service

Debugger: Use LD_PRELOAD to load debugging helper.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Tue, 3 Nov 2009 13:06:21 +0000 (14:06 +0100)
committercon <qtc-committer@nokia.com>
Tue, 3 Nov 2009 17:06:27 +0000 (18:06 +0100)
commit4fbd21558565bb3ff434daaeeb4eb99b36328a99
treea41991fdcfeef5ff32e4120e5b0a7d1d3c4cf27b
parent7881e6f7160c00d7541adad175de87e9cca7d1db
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>
(cherry picked from commit 10e07e01c73da7da305346eab0c4e998a6d2e164)
12 files changed:
src/plugins/debugger/gdb/abstractgdbadapter.h
src/plugins/debugger/gdb/attachgdbadapter.h
src/plugins/debugger/gdb/coregdbadapter.h
src/plugins/debugger/gdb/gdbengine.cpp
src/plugins/debugger/gdb/gdbengine.h
src/plugins/debugger/gdb/plaingdbadapter.cpp
src/plugins/debugger/gdb/plaingdbadapter.h
src/plugins/debugger/gdb/remotegdbadapter.cpp
src/plugins/debugger/gdb/remotegdbadapter.h
src/plugins/debugger/gdb/termgdbadapter.cpp
src/plugins/debugger/gdb/termgdbadapter.h
src/plugins/debugger/gdb/trkgdbadapter.h