* dllfixdbg: Work around annoying gdb warning about missing .gnu_debuglink.

This commit is contained in:
Christopher Faylor 2011-12-09 17:46:12 +00:00
parent 57af01797e
commit 83b25b0eb7
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-12-09 Christopher Faylor <me.cygwin2011@cgf.cx>
* dllfixdbg: Work around annoying gdb warning about missing
.gnu_debuglink.
2011-12-09 Christopher Faylor <me.cygwin2011@cgf.cx>
Rename cygWFMO to cygwait throughout and use the magic of polymorphism

View File

@ -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;