[patch 4/5] Test cases
Yao Qi
yao@codesourcery.com
Thu Nov 17 03:27:00 GMT 2011
On 11/17/2011 03:04 AM, Pedro Alves wrote:
>> > + if ![runto_main] {
>> > + fail "Can't run to main"
>> > + return -1
>> > + }
> Should restore pf_prefix. More instances of this.
>
Oh, yes, it should be restored on return.
>> > + send_gdb "disconnect\n"
>> > + gdb_expect {
>> > + -re "warning: Pending tracepoint will not be resolved while GDB is disconnected.*Ending remote debugging.*$gdb_prompt $" {
>> > + pass "disconnect with pending tracepoint"
>> > + }
>> > + -re ".*$gdb_prompt $" {
>> > + fail "disconnect with pending tracepoint"
>> > + }
>> > + }
> Why send_gdb/gdb_expect?
Because gdb_test_multiple doesn't match pattern in output when "Ending
remote debugging" appeared in the output. We have to resort to
send_gdb/gdb_expect here.
--
Yao (é½å°§)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-testcase-pending-tracepoint.patch
Type: text/x-patch
Size: 27226 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20111117/4a2d641e/attachment.bin>
More information about the Gdb-patches
mailing list