summaryrefslogtreecommitdiff
path: root/config/debug/gdb.in.native
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-03-19 07:34:51 (GMT)
committerGitHub <noreply@github.com>2017-03-19 07:34:51 (GMT)
commit89f0971391fa26c442ce9bfb055c55e5cae2d0d1 (patch)
treeb82d03ad78739881aa8e4993e0dcf8d290e14c30 /config/debug/gdb.in.native
parenta3dd55b96409922a416c05ab053569ec4f91126b (diff)
parent63b2a19de4b33f304b236850028b6c6f32ce51e2 (diff)
Merge pull request #639 from stilor/tweak-gcc-movelibs
When moving gcc libs, prefer the same directory as libc
Diffstat (limited to 'config/debug/gdb.in.native')
-rw-r--r--config/debug/gdb.in.native17
1 files changed, 16 insertions, 1 deletions
diff --git a/config/debug/gdb.in.native b/config/debug/gdb.in.native
index 915debd..8684c05 100644
--- a/config/debug/gdb.in.native
+++ b/config/debug/gdb.in.native
@@ -15,9 +15,24 @@ if GDB_NATIVE
config GDB_NATIVE_STATIC
bool
prompt "Build a static native gdb"
- depends on CONFIGURE_has_static_link
+ depends on EXPERIMENTAL
help
In case you have trouble with dynamic loading of shared libraries,
you will find that a static gdb comes in handy.
+ However, it has been noticed at least on x86 that enabling this
+ option produces an invalid gdb binary. It is linked with
+ "-static -Wl,--dynamic-list=..." which
+ # (a) requests invalid program interpreter
+ # (b) crashes glibc/uClibc-ng and does not work with musl
+ # See https://sourceware.org/ml/libc-alpha/2017-03/msg00267.html
+
+ It is possible it would work with other architectures, hence it is
+ not completely removed. Use with care and report to the mailing list
+ if the resulting gdbserver works.
+
+ For further details, see:
+ https://sourceware.org/bugzilla/show_bug.cgi?id=19617
+ https://sourceware.org/bugzilla/show_bug.cgi?id=21086
+
endif # GDB_NATIVE