This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH]: Fix gdb.mi/mi-regs.exp
> > > 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.
> >
> > In the long term that's probably a good idea.
>
> mi-regs.exp should check "the registers are internally consistent
> and sane". It could encode knowledge of which registers must be
> present, or not; it works either way...
I'm not sure if you're agreeing or not. I think I made the change to
mi_cmd_data_list_register_values which broke the test for sparc. As I ran
the testsuite on i386, I saw no failures of course. Clearly tests which
check the registers are internally consistent and sane for all architectures
are desirable. Since no-one is offering to do that shall I try to write a few
generic ones as suggested above?
--
Nick http://www.inet.net.nz/~nickrob