From: Andrew Cagney <ac131313@redhat.com>
To: Elena Zannoni <ezannoni@redhat.com>
Cc: Michael Elizabeth Chastain <mec@shout.net>,
nickc@redhat.com, gdb-patches@sources.redhat.com,
rearnsha@arm.com
Subject: Re: [PATCH/RFC] coffread.c: delete param
Date: Wed, 15 Oct 2003 16:47:00 -0000 [thread overview]
Message-ID: <3F8D7A18.30409@redhat.com> (raw)
In-Reply-To: <16269.31369.339106.180129@localhost.redhat.com>
> > The change from 4.17 to 4.18 added the new COFF_MAKE_MSYMBOL_SPECIAL,
> > and changed arm-tdep.c to use the new COFF_MAKE_MSYMBOL_SPECIAL,
> > but did not delete the old dangling c_sclass code.
> >
> > Someone with access to the old Cygnus CVS repository might be able
> > to say more about the exact change some time between 4.17 and 4.18.
>
> Did you see my posting with the exact diffs (from 1998) I posted
> yesterday?
> http://sources.redhat.com/ml/gdb-patches/2003-10/msg00470.html
>
> That explains in detail what happened, which is pretty much how you
> describe it here.
BTW, if COFF's minimal symbol pointed at the bfd symbol, GDB could share
the logic:
> if (!is_thumb && info->symbols != NULL)
> {
> if (bfd_asymbol_flavour (*info->symbols) == bfd_target_coff_flavour)
> {
> coff_symbol_type * cs;
>
> cs = coffsymbol (*info->symbols);
> is_thumb = ( cs->native->u.syment.n_sclass == C_THUMBEXT
> || cs->native->u.syment.n_sclass == C_THUMBSTAT
> || cs->native->u.syment.n_sclass == C_THUMBLABEL
> || cs->native->u.syment.n_sclass == C_THUMBEXTFUNC
> || cs->native->u.syment.n_sclass == C_THUMBSTATFUNC);
> }
> else if (bfd_asymbol_flavour (*info->symbols) == bfd_target_elf_flavour)
> {
> elf_symbol_type * es;
> unsigned int type;
>
> es = *(elf_symbol_type **)(info->symbols);
> type = ELF_ST_TYPE (es->internal_elf_sym.st_info);
>
> is_thumb = (type == STT_ARM_TFUNC) || (type == STT_ARM_16BIT);
> }
> }
>
found in opcodes/arm-dis.c with bfd/opcodes. Similar for MIPS, SH-5,
M68HC11, ...
Andrew
next prev parent reply other threads:[~2003-10-15 16:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-15 16:26 Michael Elizabeth Chastain
2003-10-15 16:37 ` Elena Zannoni
2003-10-15 16:47 ` Andrew Cagney [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-10-14 21:41 Elena Zannoni
2003-10-15 8:56 ` Richard Earnshaw
2003-10-15 15:10 ` Andrew Cagney
2003-10-15 15:25 ` Nick Clifton
2003-10-15 15:39 ` Andrew Cagney
2003-10-15 15:59 ` Elena Zannoni
2003-11-05 15:30 ` Elena Zannoni
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=3F8D7A18.30409@redhat.com \
--to=ac131313@redhat.com \
--cc=ezannoni@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=mec@shout.net \
--cc=nickc@redhat.com \
--cc=rearnsha@arm.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