Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries via Gdb-patches <gdb-patches@sourceware.org>
To: Carl Love <cel@us.ibm.com>, gdb-patches@sourceware.org
Subject: Re: PATCH] Update syscalls/{ppc64,ppc}-linux.xml
Date: Wed, 11 May 2022 09:45:40 +0200	[thread overview]
Message-ID: <a0f75eb1-3d73-7a7e-a20f-d8cd36dba938@suse.de> (raw)
In-Reply-To: <58d5119f8edf4cff1fb7b1d23d419553251f510d.camel@us.ibm.com>

On 5/10/22 22:18, Carl Love wrote:
> Tom:
> 
> On Tue, 2022-05-10 at 11:01 +0200, Tom de Vries via Gdb-patches
>> wrote:
>>> On 5/9/22 17:48, Tom de Vries wrote:
>>>> Hi,
>>>>
>>>> Regenerate syscalls/{ppc64,ppc}-linux.xml on a system with 5.14
>>>> kernel.
>>>>
>>>> Note btw that it does not only add, but also renumbers, f.i.:
>>>> ...
>>>> -  <syscall name="unlinkat" number="286"/>
>>>> +  <syscall name="unlinkat" number="292"/>
>>>> ...
>>>>
>>>> Currently testing.
>>>>
>>>
>>> Here's a v2, with a gdb.base/catch-syscall.exp test-case fix
>>> included.
>>>
>>> Testing on ppc64le revealed:
>>> ...
>>> (gdb) catch syscall 286^M
>>> Catchpoint 2 (syscall 'openat' [286])^M
>>> (gdb) FAIL: gdb.base/catch-syscall.exp: multiple targets: insert
>>> catch
>>> syscall on syscall 286\
>>>    -- unlinkat on powerpc:common64
>>> ...
>>>
>>> FWIW, I've wrote a patch that exposes the same problem on x86_64-
>>> linux (
>>> https://sourceware.org/pipermail/gdb-patches/2022-May/188881.html  ).
>>>
>>> Any comments?
>>
>> I have looked at the patch.  I don't see anything that is an
>> issue/problem on PowerPC.
> 
> Per Will's comment, to the extent that I can tell the syscall numbers
> are consistent with what I saw last year.  I did note that you add
> syscall 359 getrandom.  In other unrelated work on gdb record I get
> messages from gdb record about a couple of system calls that are not
> supported.  Number 359 was one of them, I don't recall the other one
> off the top of my head.  I had yet to run down what the name of the
> syscall is for 359 but hopefully it is getrandom.  Not sure if your
> patch will fix the gdb record issue or not.  I need to get back to
> digging into that more to find out.

Hi Carl,

AFAICT, there are two different gdb bits dealing with syscalls:
- catch syscall
- recording
.

The xml stuff seems to be used only for the catch syscall part, so I 
expect that this won't fix the recording issue.

Thanks,
- Tom

      reply	other threads:[~2022-05-11  7:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-09 15:48 [PATCH][PATCH] " Tom de Vries via Gdb-patches
2022-05-10  9:01 ` Tom de Vries via Gdb-patches
2022-05-10 18:02   ` Kevin Buettner via Gdb-patches
2022-05-10 19:19     ` will schmidt via Gdb-patches
2022-05-11  7:22     ` Tom de Vries via Gdb-patches
2022-05-10 18:32   ` Carl Love via Gdb-patches
2022-05-10 20:18     ` PATCH] " Carl Love via Gdb-patches
2022-05-11  7:45       ` Tom de Vries via Gdb-patches [this message]

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=a0f75eb1-3d73-7a7e-a20f-d8cd36dba938@suse.de \
    --to=gdb-patches@sourceware.org \
    --cc=cel@us.ibm.com \
    --cc=tdevries@suse.de \
    /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