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: RFC/gdbarch: Make OS ABI a real member of the gdbarch


Daniel Jacobowitz <drow@mvista.com> writes:

> I was working on a "set osabi" command again this morning.  I got just about
> everything to work with just local changes to osabi.c, until I hit a real
> stumbling block: there was absolutely no way to figure out what the
> _current_ OS ABI was.  It was stored in the tdep struct of every
> architecture that actually recognized the field.  That much code duplication
> tipped me off that it would probably be easier to move the enum into the
> gdbarch vector; in fact, to move it into the struct gdbarch_info used to
> select.  Everything got much easier after that, although it was a bit
> tedious - another one of those hundred-line changelogs.

Yes please!

Mark


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