Re: use MIPS NewABI register names when disassembling NewABI code

Andrew Cagney
2003-04-08T21:03:39Z

> 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.

What about the problem of lifetimes?

>> 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.

Fixing that will cause the gdb side of this problem to fall out. GDB
can then wiggle knobs very similar to what the user running objdump
would be playing with. See ARM and i386.

Andrew