Re: [patch] Support inferior events in python

sami wagiaalla
2011-02-11T19:19:29Z

On 02/11/2011 10:54 AM, Joel Brobecker wrote:
>> +send_gdb "run\n"
>> +gdb_expect {
>> + -re ".*stop reason: signal.*
>> +.*stop signal: SIGSEGV.*
>> +.*thread num: 3.*" {
>> + pass "thread 3 was signalled"
>> + }
>> + timeout {
>> + fail "thread 3 was not signalled"
>> + }
>
> Can you replace send_gdb+gdb_expext by gdb_test_multiple; it even
> seems that a simple gdb_test would work, no?
>

If I understand correctly gdb_test, and gdb_test_multiple test for the
gdb prompt after the output, but the printing of the prompt is not
reliable in non-stop mode. that is why I am using plain send and expect.

Sami