From: Pedro Alves <pedro_alves@portugalmail.pt>
To: Jim Blandy <jimb@codesourcery.com>
Cc: gdb@sources.redhat.com
Subject: Re: DWARF for arm-wince-pe.
Date: Thu, 27 Jul 2006 11:37:00 -0000 [thread overview]
Message-ID: <44C880EE.8050907@portugalmail.pt> (raw)
In-Reply-To: <m3psfrj2of.fsf@codesourcery.com>
Jim Blandy wrote:
> Hi, Pedro. I looked into this a little further. I think you just
> need to extend this function in bfd/bfd.c appropriately:
>
> int
> bfd_get_sign_extend_vma (bfd *abfd)
> {
> char *name;
>
> if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)
> return get_elf_backend_data (abfd)->sign_extend_vma;
>
> name = bfd_get_target (abfd);
>
> /* Return a proper value for DJGPP & PE COFF (x86 COFF variants).
> This function is required for DWARF2 support, but there is
> no place to store this information in the COFF back end.
> Should enough other COFF targets add support for DWARF2,
> a place will have to be found. Until then, this hack will do. */
> if (strncmp (name, "coff-go32", sizeof ("coff-go32") - 1) == 0
> || strcmp (name, "pe-i386") == 0
> || strcmp (name, "pei-i386") == 0)
> return 1;
>
> bfd_set_error (bfd_error_wrong_format);
> return -1;
> }
>
>
Gasp, it was so easy. I looked everywhere else but where I should have.
Since bfd_get_sign_extend_vma only works for elf, I didn't look
inside...
Thank you.
Cheers,
Pedro Alves
prev parent reply other threads:[~2006-07-27 9:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-27 0:42 Pedro Alves
2006-07-27 0:45 ` Jim Blandy
2006-07-27 9:01 ` Jim Blandy
2006-07-27 11:37 ` Pedro Alves [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44C880EE.8050907@portugalmail.pt \
--to=pedro_alves@portugalmail.pt \
--cc=gdb@sources.redhat.com \
--cc=jimb@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox