RFA: handle GDB prompt appearing in command output

Andrew Cagney ac131313@ges.redhat.com
Fri Jul 19 11:16:00 GMT 2002


> Andrew Cagney <ac131313@ges.redhat.com> writes:
> 
>> As a side effect, this patch no longer checks that the order is
>> correct. Is this intentional?  gdb_expect_list might prove a better
>> choice since it still enforces the order.
> 
> 
> It wasn't deliberate, but I think I like it anyway.  :)
> 
> If the output from 'info set' appears in a different order, but the
> stuff we're looking for is all there, I don't think that's grounds for
> a failure.

The output from ``info set'' should be sorted(1).  If it isn't sorted 
i.e. is in a different order, we have a bug and, hence, the test should 
fail.

Andrew

(1) I'll ignore the effects that the locale could potentially have on 
the sorting order.  Lets for the moment assume a C locale.




More information about the Gdb-patches mailing list