[4/4] RFC: implement catch load and catch unload
Yao Qi
yao@codesourcery.com
Fri Jan 20 17:44:00 GMT 2012
On 01/19/2012 12:35 PM, Tom Tromey wrote:
> + send_gdb "continue\n"
> + gdb_expect {
I am thinking why don't we use gdb_test_multiple here?
> + -re "Catchpoint $decimal\r\n.*loaded .*/$testfile2.*\r\n.*$gdb_prompt $" {
> + if {$match} {
> + pass "continue"
> + } else {
> + fail "continue"
> + }
> + }
> +
> + -re "Stopped due to spurious shared library event .no libraries added or removed.\r\n$gdb_prompt $" {
> + if {$sostop} {
> + pass "continue"
> + } else {
> + fail "continue"
> + }
> + }
> +
> + -re "Breakpoint $decimal, .*\r\n$gdb_prompt $" {
> + if {!$match} {
> + pass "continue"
> + } else {
> + fail "continue"
> + }
> + }
--
Yao (é½å°§)
More information about the Gdb-patches
mailing list