[PATCH]: Fix gdb.mi/mi-regs.exp
Nick Roberts
nickrob@snap.net.nz
Mon Apr 10 07:05:00 GMT 2006
> > Should there be similar tests for other architectures? If they are only
> > intended for sparc, shouldn't this file be called mi-sparc-regs.exp?
>
> There are "XXX" style comments in there suggesting that strings
> for other platforms should be added.
>
> It is a similar situation to gdb.base/float.exp, knowledgable people
> just have to get around to adding the per-target strings.
But these tests are for the MI interface. Register tests for specific
architectures could presumably go in gdb.base/regs.exp and tests in mi-regs.exp
could be more general e.g just check -data-list-register-names returns a list
of values, count them and use this information for tests on
-data-list-register-values.
Anyway, Daniel will approve your patch, I'm just thinking aloud.
--
Nick http://www.inet.net.nz/~nickrob
More information about the Gdb-patches
mailing list