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: [patch/rfc] Don't complain about unknown OSABI



GDB uses ../bfd/config.bfd to find the default architecture. I think this has made our lives much easier -- gdb's and bfd's defaults match and we don't have to maintain anything. It really is a ``free lunch'' :-)

Is there an equivalent for the OS/ABI? If we can pick that default up from binutils then we also get that for free. On the other hand if we start wiring this stuff into configure.tgt (duplicating ld/gcc) we take on an additional maintenance task.

Exactly my point.  There is no OS/ABI equivalent; BFD doesn't know what
it is, and doesn't need to.

I'll try to put this together tomorrow.
Ah, M'kay :-)

Next question. Given an unbranded mips-elf binary, what should the following GDB's do?

gdb
mips-linux-gnu-gdb
linux-gnu-gdb
m68k-linux-gnu-gdb
mips-netbsd-gdb
mips-gdb
elf-gdb

Having the behavour key off the target creates a problem with an identical executable behaving differently with different, but similar GDBs. I suspect it will encourage people to build different GDB's for identical purposes when just a single GDB is needed.

enjoy,
Andrew



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