Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: Andrew Burgess <aburgess@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Add gstack script
Date: Wed, 11 Dec 2024 08:58:46 -0800	[thread overview]
Message-ID: <5b3f7be3-ca27-46a6-92c5-23c1b2234934@redhat.com> (raw)
In-Reply-To: <87v7vqgo2m.fsf@redhat.com>

Hi,

On 12/11/24 8:51 AM, Andrew Burgess wrote:
>> +set test "spawn gstack"
>> +set pid [spawn_id_get_pid $test_spawn_id]
>> +set command "sh -c GDB=$GDB\\ GDBARGS=-data-directory\\\\\\ $GDB_DATA_DIRECTORY\\ sh\\ ${srcdir}/../contrib/gstack.sh\\ $pid\\;echo\\ GSTACK-END"
> 
> I haven't dug into what's going on in this test, but I notice that it
> references contrib/gstack.sh, which isn't in HEAD, and isn't in this
> patch.  And when I run the test I see:

Oh, my! That is remnants of an earlier design which I abandoned! I
obviously forgot to update the test.

>    PASS: gdb.base/gstack.exp: spawn gstack
>    sh: /tmp/build/gdb/testsuite/../../../src/gdb/testsuite/../contrib/gstack.sh: No such file or directory
>    GSTACK-END
>    PASS: gdb.base/gstack.exp: gstack exits with no error
>    PASS: gdb.base/gstack.exp: gstack's exit status is 0
> 
> Which I guess indicates that (a) the file's missing, and (b) the test
> should be improved to catch this case?

Furthermore, the test needs a little more work to detect that we
are not just running gstack, but also seeing appropriate-looking
output.

I'll send a v2.

Thank you,
Keith


  reply	other threads:[~2024-12-11 16:59 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-25 18:18 Keith Seitz
2024-12-11 16:51 ` Andrew Burgess
2024-12-11 16:58   ` Keith Seitz [this message]
2024-12-12 21:07 ` [PATCH v2] " Keith Seitz
2024-12-13  7:36   ` Eli Zaretskii
2024-12-13 18:21     ` Keith Seitz
2024-12-13 19:04       ` Eli Zaretskii
2024-12-13 19:45   ` Tom Tromey
2024-12-13 19:57     ` Keith Seitz
2024-12-18 18:05 ` [PATCH v3] " Keith Seitz
2024-12-18 19:22   ` Eli Zaretskii
2024-12-18 21:47     ` Keith Seitz
2024-12-20 16:15   ` Tom Tromey
2024-12-20 18:18     ` Keith Seitz
2024-12-20 18:26       ` Tom Tromey
2024-12-20 20:47         ` Keith Seitz

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=5b3f7be3-ca27-46a6-92c5-23c1b2234934@redhat.com \
    --to=keiths@redhat.com \
    --cc=aburgess@redhat.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