From 83b25b0eb7c1ac69c4e431325df5f74d0a430caa Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 9 Dec 2011 17:46:12 +0000 Subject: [PATCH] * dllfixdbg: Work around annoying gdb warning about missing .gnu_debuglink. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/dllfixdbg | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 30b075d32..e04286ff5 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2011-12-09 Christopher Faylor + + * dllfixdbg: Work around annoying gdb warning about missing + .gnu_debuglink. + 2011-12-09 Christopher Faylor Rename cygWFMO to cygwait throughout and use the magic of polymorphism diff --git a/winsup/cygwin/dllfixdbg b/winsup/cygwin/dllfixdbg index e3875a67a..2acdbc346 100755 --- a/winsup/cygwin/dllfixdbg +++ b/winsup/cygwin/dllfixdbg @@ -16,7 +16,7 @@ my $objdump = shift; my @objcopy = ((shift)); my $dll = shift; my $dbg = shift; -xit 0, @objcopy, '-R', '.gnu_debuglink_overlay', '--only-keep-debug', $dll, $dbg; +xit 0, @objcopy, '-R', '.gnu_debuglink_overlay', '--add-gnu-debuglink=/dev/null', '--only-keep-debug', $dll, $dbg; xit 0, @objcopy, '-g', '--add-gnu-debuglink=' . $dbg, $dll; open(OBJDUMP, '-|', "$objdump --headers $dll"); my %section;