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: [RFA] examine for TYPE_CODE_REF (PR 11349)


> It's just that all the other tests around this one
> where also written using gdb_expect, and I simply copy
> and adapted one...

I guessed that this was the case ;-).  But using send_gdb/gdb_expect
is bad, because the gdb_expect block typically does not handle all known
error situations.  That's why we have gdb_test and gdb_test_multiple.
In the future, you can assume that it is required that new test be
written using gdb_test/gdb_test_multiple, even if the tests already
written around the new one still use send_gdb. Conversions of old uses
of send_gdb/gdb_expect will also be very much appreciated.  In fact,
I'll add that to the list of possible projects in the Wiki - it's an
easy task for someone who does not know GDB but wants to contribute :).

-- 
Joel


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