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.

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



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