Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: Carl Love <cel@us.ibm.com>, John Baldwin <jhb@FreeBSD.org>,
	gdb-patches@sourceware.org
Cc: Rogerio Alves <rogealve@br.ibm.com>
Subject: Re: [PATCH] gdb fix for catch-syscall.exp
Date: Wed, 24 Nov 2021 14:29:41 -0500	[thread overview]
Message-ID: <dbd14453-5be0-5b3e-8dd7-0e4576e070dd@simark.ca> (raw)
In-Reply-To: <8269783078cecf5fe7fb7bea8d546256aafc7071.camel@us.ibm.com>

On 2021-11-23 8:15 p.m., Carl Love wrote:
> Simon:
>
> On Tue, 2021-11-23 at 15:34 -0500, Simon Marchi wrote:
>> If you all agree that it's a bug, I would suggest reverting this
>> patch
>> and making a patch that kfails the test when on powerpc.  And
>> ideally,
>> someone should dig to understand why we don't see the return on
>> powerpc
>> (and fix it), but I'm not here to tell what other people should work
>> on :).
>
> OK, I think for powerpc the test should be a xfail.  Looking at the
> README, kfail is for gdb known issues, xfail is for issues in the
> environment including the OS.

If we can already determine that it's the kernel fault, then xfail is
appropriate.  But I haven't actually dug to find out who is at fault.

> I see xfail takes two arguments, the first one is the gdb bug number.
> So, I will need to file a bug before I finish this patch.

I just filed it here: https://sourceware.org/bugzilla/show_bug.cgi?id=28623

> I am hoping someone has a suggestion on how to improve my patch to add
> the xfail.  The issue is since Powerpc doesn't print the "Catchpoint 1
> (returned from syscall execve)" but rather stops at main, the test
> should not issue the continue command after the xfail.  In the case of
> the xfail, I need to pass 0 backup so the if statement in proc
> test_catch_syscall_execve can decide if the continue command should be
> issued or not.  The change is a bit messy having to pass the return
> value up.  Wondering if anyone has a better idea how to add the xfail?
>
> Note, so far I have only tested this on Powerpc.  Patch is not ready
> for committing.

I try to look at this later.  For now I will push a revert patch, since
we agree on the fact that this is a bug (and the test should not expect
the buggy behavior).

Simon

  reply	other threads:[~2021-11-24 19:29 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-17 23:30 Carl Love via Gdb-patches
2021-11-18 15:23 ` Tom Tromey
2021-11-18 18:10 ` Simon Marchi
2021-11-20  0:27   ` Carl Love via Gdb-patches
2021-11-22  1:07     ` Simon Marchi via Gdb-patches
2021-11-22 18:16       ` Carl Love via Gdb-patches
2021-11-22 17:01     ` John Baldwin
2021-11-23 20:34       ` Simon Marchi
2021-11-23 22:34         ` John Baldwin
2021-11-24 17:46           ` Carl Love via Gdb-patches
2021-11-24 17:51             ` John Baldwin
2021-11-24  1:15         ` Carl Love via Gdb-patches
2021-11-24 19:29           ` Simon Marchi [this message]
2021-11-29 16:46             ` Carl Love via Gdb-patches
2021-12-02 16:32               ` Ping " Carl Love via Gdb-patches
2021-12-10 18:36               ` Simon Marchi
2021-12-10 19:59                 ` [PATCH v2] " Carl Love via Gdb-patches
2021-12-11  0:21                   ` Simon Marchi via Gdb-patches

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=dbd14453-5be0-5b3e-8dd7-0e4576e070dd@simark.ca \
    --to=simark@simark.ca \
    --cc=cel@us.ibm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jhb@FreeBSD.org \
    --cc=rogealve@br.ibm.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