This is the mail archive of the gdb-patches@sources.redhat.com 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: [RFA]: Test for PR/1236


On Mon, Nov 24, 2003 at 04:02:40PM -0500, Andrew Cagney wrote:
> 
> >+#
> >+# Break on multiply defined method (PR objc/1236)
> >+#
> >+set name "break on non-debuggable method"
> >+send_gdb "break someMethod\n"
> >+gdb_expect {
> >+    -re "\\\[0\\\] cancel.*\\\[1\\\] all.*\\\[2\\\]\[ \]+-.NonDebug 
> >someMethod.*\\\[3\\\]\[ \]+-.NonDebug2 someMethod.*" {
> >+	send_gdb "2\n"
> >+	exp_continue
> >+    }
> >+    -re "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+.*" { pass $name }
> >+    -re ".*$gdb_prompt $"   { fail $name }
> >+    timeout                 { fail "$name (timeout)" }
> >+}
> 
> David, Daniel, does exp_continue work with gdb_test_multiple?
> Adam, if it does, it's a better alternative (as I learn't not two days 
> ago :-).

Yes, it should work fine.


-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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