Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Anton Kolesov <Anton.Kolesov@synopsys.com>
Cc: gdb-patches@sourceware.org, Jeremy Bennett <Jeremy.bennett@embecosm.com>
Subject: Re: [PATCH v2] testsuite: Treat an empty string in needs_status_wrapper as false
Date: Mon, 21 Oct 2013 11:23:00 -0000	[thread overview]
Message-ID: <52650EA6.6030903@redhat.com> (raw)
In-Reply-To: <1382354229-10006-1-git-send-email-Anton.Kolesov@synopsys.com>

On 10/21/2013 12:17 PM, Anton Kolesov wrote:
> GDB test suite considers [target_info needs_status_wrapper] to be false if
> it unset or have a zero value. The former is achieved by using [target_info
> exists needs_status_wrapper]. GCC test suite on the other hand do not use
> "exists" but compares to an empty string. This doesn't make difference if
> value is unset, as unset value is treated as an empty string, but makes a
> difference if value was set to and empty string. In that case if
> needs_status_wrapper was set to an empty string, then GCC test suite will
> not use status wrapper, but GDB test suite will use it. Dejagnu's own
> remote.exp uses a comparison with an empty string. Though for some reason
> Dejagnu unlike GCC and GDB test suite doesn't treat a zero as a false.

There's another reference to needs_status_wrapper in java.exp.

I think it'd be good to add a new procedure all these 3 places
call instead of inlining all these not-set/""/"0" checks.  It'd
also be great if the info quoted above was put in the code
itself (in the new procedure's documentation).

-- 
Pedro Alves


  reply	other threads:[~2013-10-21 11:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-17 12:59 [PATCH] testsuite: Treat empty string in needs_status_wrapper as a false value Anton Kolesov
2013-10-17 15:07 ` Anton Kolesov
2013-10-21 11:17   ` [PATCH v2] testsuite: Treat an empty string in needs_status_wrapper as false Anton Kolesov
2013-10-21 11:23     ` Pedro Alves [this message]
2013-10-22 10:51       ` [PATCH v3] " Anton Kolesov
2013-10-24 22:07         ` Pedro Alves
2013-10-25  9:25           ` Anton Kolesov

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=52650EA6.6030903@redhat.com \
    --to=palves@redhat.com \
    --cc=Anton.Kolesov@synopsys.com \
    --cc=Jeremy.bennett@embecosm.com \
    --cc=gdb-patches@sourceware.org \
    /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