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: RFC: gdb_test_multiple


I want to think about this a little more anyway; as Michael mentioned,
I don't think it's recursion safe.  I can't fix this syntax due to TCL
limitations, so it might become:

gdb_test_multiple "break Foo::Bar" "breakpoint on Foo::Bar" \
  "Breakpoint at .*\[\r\n\]$gdb_prompt $" { pass $msg } \
  "Bang." { kfail "gdb/90211" $msg }

Which isn't so bad, after all.  I had some reason not to do it that way
but I can't remember what it was, now.  What do you think of this
change?
Which ever. My concern is with `$_gdb_message'. Knowing how to use that would have required a deep understanding of what the function gdb_test_multiple{} was doing. The above at least makes immediate sense to someone with little tcl/tk knowledge (read: average gdb developer :-).

Andrew



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