This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [4/4] RFC: implement catch load and catch unload
- From: Yao Qi <yao at codesourcery dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Fri, 20 Jan 2012 09:40:33 -0800
- Subject: Re: [4/4] RFC: implement catch load and catch unload
- References: <m3d3afxweq.fsf@fleche.redhat.com>
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 (éå)