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: [patch] Get rid of print statements from gdb.cp/exception.cc


> Current test gdb.cp/exception.exp matches the output from inferior,
> which doesn't work in remote testing, because gdbserver can't catch
> target program's output, and push it to gdb.

Yes, we should try our hardest to avoid I/O for this sort of reason
(also, the associated include might not be available if we're dealing
with bareboard solutions, for instance).

> 2011-06-27  Yao Qi  <yao@codesourcery.com>
> 
> 	gdb/testsuite/
> 	* gdb.cp/exception.cc: Don't include iostream.
> 	(bar): Remove print statement.
> 	(catcher): New.
> 	(main): Remove print statements.  Call function catcher.
> 	* gdb.cp/exception.exp : Don't match inferior's output in regexp.
> 	Set breakpoint on catcher, and check the value of parameter.

This looks good to me.

-- 
Joel


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