From: Keith Seitz <keiths@redhat.com>
To: Andrew Burgess <andrew.burgess@embecosm.com>
Cc: gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [PATCH] gdb/testsuite: Add gdb_test_multiple_name variable
Date: Wed, 02 Oct 2019 17:17:00 -0000 [thread overview]
Message-ID: <5118a993-d41a-0a2b-6dba-fbcff509dc7c@redhat.com> (raw)
In-Reply-To: <20191002130351.GC4962@embecosm.com>
On 10/2/19 6:03 AM, Andrew Burgess wrote:
> * Keith Seitz <keiths@redhat.com> [2019-10-01 10:41:40 -0700]:
>
>> Your patch looks good to me (but I am not a maintainer), but I wanted to
>> ask if you considered using a stack to more robustly solve the nesting
>> problem? It might be unnecessary today -- even overkill -- but I
>> would think it is much easier on the eyes.
>
> Is your suggestion that we maintain a separate global test name stack
> and push/pop the latest test name to the stack?
I am not making any suggestions, no. Given
> $gdb_test_multiple_name will only ever contain the inner most test message
I was just curious whether you considered using a stack, whether you had
any thoughts on whether we might ever want to know more than just the
innermost test name.
As I wrote in my original message, my intent was more to raise awareness that
this /could/ be a solution to the problem -- not to recommend/require/demand
any changes.
> On the question of robustness, I'd be interested to know if you've
> spotted a possible bug. My intention is that the TCL program stack
> should serve to backup any existing value of gdb_test_multiple_name,
> so there should never be a case where we have the wrong test name in
> place.
Nope, nothing pops to mind that this patch as-is shouldn't immediately serve.
I apologize if I was unclear.
Keith
next prev parent reply other threads:[~2019-10-02 17:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-01 17:29 Andrew Burgess
2019-10-01 17:41 ` Keith Seitz
2019-10-02 13:03 ` Andrew Burgess
2019-10-02 17:17 ` Keith Seitz [this message]
2019-10-03 10:02 ` Andrew Burgess
2019-10-01 18:31 ` Pedro Alves
2019-10-06 8:24 ` Tom de Vries
2019-10-07 10:28 ` Andrew Burgess
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=5118a993-d41a-0a2b-6dba-fbcff509dc7c@redhat.com \
--to=keiths@redhat.com \
--cc=andrew.burgess@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