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: Status of 'blacklist' patch?


> You need a gdb_expect after the send_gdb, otherwise the output from
> the step leaks into the next gdb_test and things get confused in the
> way you're seeing.  I would use gdb_test for the "step" also, it's
> much simpler; send_gdb is only needed for unusual testing
> situations, and this is not one of them. :-)

Actually, I am going to say something  a little stronger: you must NOT
use send_gdb/gdb_expect unless you have a good reason to do so. I know
that many old test still use them, but I guess we didn't know better
at the time...

-- 
Joel


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