Re: use MIPS NewABI register names when disassembling NewABI code

Alexandre Oliva
2003-04-08T11:59:21Z

On Apr 8, 2003, Andrew Cagney <ac131313@redhat.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@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer