GDB testsuite questions

Doug Evans dje@google.com
Thu Nov 13 23:21:00 GMT 2014


On Tue, Nov 11, 2014 at 12:08 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> David Taylor <dtaylor@emc.com> writes:
>
>> . how to grab part of the each of the responses to multiple gdb commands
>> and do arithmetric on the result to decide whether the test failed or
>> passed.
>
> Use the expect_out variable, there are various examples of its use in
> the testsuite.

Yeah.  testsuite/lib/gdb.exp:get_integer_valueof is my canonical
example when I need boilerplate to cut-n-paste from.



More information about the Gdb mailing list