This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [4/4] RFC: implement catch load and catch unload


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 (éå)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]