Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: jan.kratochvil@redhat.com (Jan Kratochvil)
Cc: msnyder@vmware.com (Michael Snyder),
	       gdb-patches@sourceware.org (gdb-patches@sourceware.org)
Subject: Re: [RFA] gdb.base -- use gdb_test_no_output
Date: Fri, 11 Jun 2010 19:35:00 -0000	[thread overview]
Message-ID: <201006111935.o5BJZ0cJ021385@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <20100611192558.GA20163@host0.dyn.jankratochvil.net> from "Jan Kratochvil" at Jun 11, 2010 09:25:58 PM

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 ...

Bye,
Ulrich


-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


  reply	other threads:[~2010-06-11 19:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-30 21:13 Michael Snyder
2010-06-01 19:43 ` Joel Brobecker
2010-06-01 21:30   ` Michael Snyder
2010-06-11 16:31 ` Ulrich Weigand
2010-06-11 17:15   ` Michael Snyder
2010-06-11 18:01     ` Ulrich Weigand
2010-06-11 18:14       ` Ulrich Weigand
2010-06-11 18:27         ` Michael Snyder
2010-06-11 19:05           ` Ulrich Weigand
2010-06-11 19:26         ` Jan Kratochvil
2010-06-11 19:35           ` Ulrich Weigand [this message]
2010-06-11 20:57             ` Michael Snyder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201006111935.o5BJZ0cJ021385@d12av02.megacenter.de.ibm.com \
    --to=uweigand@de.ibm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    --cc=msnyder@vmware.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox