This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Get rid of print statements from gdb.cp/exception.cc
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 27 Jun 2011 09:07:17 -0700
- Subject: Re: [patch] Get rid of print statements from gdb.cp/exception.cc
- References: <4E088FE0.90104@codesourcery.com>
> 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