RFC: gdb_test_multiple

Andrew Cagney ac131313@redhat.com
Sun Jan 5 15:32:00 GMT 2003


> gdb_test_multiple "break Foo::Bar" "breakpoint on Foo::Bar" {
>   -re "Breakpoint at .*\[\r\n\]$gdb_prompt $" {
>     pass "$_gdb_message"
>   }
>   -re "Explode!" {
>     fail "$_gdb_message (gdb/90210)"
>   }
>   -re "Bang." {
>     kfail "gdb/90211" "$_gdb_message"
>   }
> }

Why not just use:

set msg "breakpoint on Foo::Bar"
gdb_test_multiple "break Foo::Bar" {
... fail "$msg ...
}

I don't think the ``$_gdb_message'' is right.  It certainly isn't 
exactly intuative.

Andrew



More information about the Gdb-patches mailing list