This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: use MIPS NewABI register names when disassembling NewABI code
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Andrew Cagney <ac131313 at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: 08 Apr 2003 08:59:13 -0300
- Subject: Re: use MIPS NewABI register names when disassembling NewABI code
- Organization: GCC Team, Red Hat
- References: <orel4diutd.fsf@free.redhat.lsd.ic.unicamp.br><3E927BCA.1080702@redhat.com>
On Apr 8, 2003, Andrew Cagney <ac131313 at redhat dot com> wrote:
> Ugly? This bit:
>> + static asymbol *symbols = NULL;
> is wrong. There is more than one instance of an architecture.
Uh. I see. So much for trying to get rid of one more call to
bfd_alloc. This is easy to fix, though.
> How does objdump manage to correctly disassemble something like an
> srecord?
Presumably, it doesn't. If it's not an ELF bfd, it has no way to tell
which ABI to disassemble for.
> GDB should be using that same mechanism.
That's exactly what I'm trying to do :-)
Is there any chance of getting this in after fixing the memory
allocation issue, or must I try to introduce some means for the caller
to specify which ABI to disassemble for?
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva at {redhat dot com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva at {lsd dot ic dot unicamp dot br, gnu.org}
Free Software Evangelist Professional serial bug killer