Re: [PATCH 3/3] Match output in async mode.

Tom Tromey
2013-07-30T20:06:49Z

>>>>> "Yao" == Yao Qi <yao@codesourcery.com> writes:

Yao> This patch is to match the program's output when in async mode. It is
Yao> hard to match output in a unique way to handle both sync mode and
Yao> async mode, so I have to handle them separately.

Yao> The reason I choose send_gdb/gdb_expect, instead of gdb_test_multiple,
Yao> is gdb_test_multiple matches ""\r\n$gdb_prompt $", and return false.
Yao> However, "(gdb) " may appear in somewhere in the output, and trigger
Yao> fail for test.

I don't understand the need for this patch.
It seems to me that everything in this test case is async.
The setting of "target-async" therefore should not matter -- with
target-async enabled (either explicitly in today's gdb, or implicitly
after my patch series), sync commands should work exactly as they would
in the "async disabled" gdb.

Tom