This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: use MIPS NewABI register names when disassembling NewABI code


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]