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: [rfc] add ppc testcase to test fpscr


On Thu, Aug 21, 2008 at 08:41:21PM -0300, Thiago Jung Bauermann wrote:
> On Thu, 2008-08-21 at 19:31 -0400, Daniel Jacobowitz wrote:
> > > Also, this adds the function gdb_send_cmd to lib/gdb.exp. More than once
> > > I've wanted to send a commad to GDB and wait to get the prompt back
> > > (because send_gdb is too fast and can create racy testcases). This
> > > function scratches that itch.
> > 
> > Isn't this just the same as gdb_test "command" "" "" ?
> 
> Tried that, didn't work. Your command would check for:
> 
> -re "\[\r\n\]*()\[\r\n\]+$gdb_prompt $"
> 
> Which apparently is not good...
> 
> I admit I didn't look that much into it.

I'd have to see more details - the example I gave is used all over the
testsuite.  e.g. find.exp, restore.exp, setshow.exp.

-- 
Daniel Jacobowitz
CodeSourcery


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