[RFA] gdb.base -- use gdb_test_no_output

Michael Snyder msnyder@vmware.com
Fri Jun 11 20:57:00 GMT 2010


Ulrich Weigand wrote:
> Jan Kratochvil wrote:
> 
>> FYI in the testcase the inferior is no loner running when `set language asm' is
>> entered.  There is preceding:
>>
>> (gdb) run^M
>> Starting program: .../gdb.base/setshow foo bar blup baz bubble^M
>> foo bar blup baz bubble ^M
>> Program exited normally.^M
>> (gdb) PASS: gdb.base/setshow.exp: passing args
> 
> Ah, that would explain it!  This part of setshow.exp:
> 
> # Don't test if we can't pass args or if we're using a stub.
> if { ![target_info exists use_gdb_stub] && ![target_info exists noargs] } {
>     #test passing args
>     gdb_test "cont" "Continuing.*" "continuing"
>     delete_breakpoints
>     gdb_test "run" "Starting program:.*foo bar blup baz bubble.*" "passing args"
> }
> 
> is skipped on spu-elf because we cannot pass command line arguments
> (well, at least it's not set up that way).
> 
> However, it seems to me that this is still a bug: I don't really think the
> intention was that the remaining checks are to be executed on a running
> inferior on some targets, and on a exited inferior on others ...

I'm reverting that line of change, as attached.




-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: setshow.txt
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20100611/b87690ce/attachment.txt>


More information about the Gdb-patches mailing list