[patch] Support inferior events in python
sami wagiaalla
swagiaal@redhat.com
Fri Feb 11 19:19:00 GMT 2011
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
More information about the Gdb-patches
mailing list