This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: Dumper produces unuseable dumps (fix).
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Fri, 27 Apr 2007 08:20:22 +0200
- Subject: Re: Dumper produces unuseable dumps (fix).
- References: <46310D90.8050703@portugalmail.pt>
- Reply-to: cygwin-patches at cygwin dot com
Hi Pedro,
On Apr 26 21:37, Pedro Alves wrote:
> Hi guys,
>
> I noticed that dumper isn't working for me, silently exiting
> without producing a dump, so I tried building it from source.
> The problem was that the bfd_set_arch_mach (core_bfd, bfd_arch_i386, 0)
> call was failing. I couldn't debug it, since it was linked
> into the system /usr/lib/libbfd.a, which doesn't come with
> debug info. I then tried to link with with a cvs bfd, and that
> problem goes away.
>
> But, I then found out that gdb wasn't reading the dumps. After
> some investigation, I found that the core file is built with
> section headers, and no program headers. Since it is
> bfd_make_section_from_phdr that makes the magic sections that
> gdb reads from, the current dumper makes useless core dumps.
> [...]
> The attached patch fixes it by programatically making a
> phdr for each section. I now get readable dumps.
> [...]
> Could this fix be considered for inclusion, please?
Thanks for this patch.
Unfortunately, the patch is too big to fall under the trivial patch
rule, so Red Hat needs a signed copyright assignment from you.
Please have a look on http://cygwin.com/contrib.html, especially the
"Before you get started" section, which has a link to the assignment
form. As soon as we got the signed form from you, the patch can go
in.
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat