From: Simon Marchi <simark@simark.ca>
To: Tom de Vries <tdevries@suse.de>, gdb-patches@sourceware.org
Subject: Re: [PATCH][gdb] Update syscalls/{amd64,i386}-linux.xml
Date: Mon, 9 May 2022 10:48:45 -0400 [thread overview]
Message-ID: <cc79536e-9c53-4c86-5d3a-4dd252be387e@simark.ca> (raw)
In-Reply-To: <0cfc1896-7b42-01cf-dbdf-ceb14f53c5a5@suse.de>
On 2022-05-09 06:39, Tom de Vries wrote:
> [ was: Re: [PATCH][gdb/tdep] Support catch syscall pipe2 for i386 ]
>
> On 5/5/22 15:20, Simon Marchi wrote:
>> I suppose we are missing more syscalls than that, given that new
>> syscalls are added regularly, e.g. rseq:
>>
>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d7822b1e24f2
>>
>> As long as rseq is not listed in this file, it means a user wouldn't be
>> able to use "catch syscall rseq", I suppose? We would need a procedure
>> to add new syscalls periodically.
>>
>
> I've wrote a script gdb/syscalls/update-linux.sh that can be used to do the update automatically. The idea being that target maintainers can run the script on their platform and do the update.
>
> AFAICT, the previous approach was to generate directly from kernel sources. The benefit there is that you don't need access to a specific platform to do the update (but you'd still need access to test I suppose).
>
> [ FWIW, it seems the linux kernel migrated to some syscall.tbl approach, and perhaps generating from there could be an option. ]
>
> Anyway, this script at least adds one option to do the update.
>
> WDYT?
One flake8 warning:
gen-header.py:9:1: F401 're' imported but unused
I would also suggest running shellcheck on the .sh script and
fix the issues, it gives generally good suggestions.
LGTM otherwise.
So, was this:
- <syscall name="madvise1" number="220"/>
- <syscall name="getdents64" number="221" groups="descriptor"/>
- <syscall name="fcntl64" number="222" groups="descriptor"/>
+ <syscall name="getdents64" number="220" groups="descriptor"/>
+ <syscall name="fcntl64" number="221" groups="descriptor"/>
an existing mistake in our syscall list?
Simon
next prev parent reply other threads:[~2022-05-09 14:48 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-03 14:57 [PATCH][gdb/testsuite] Handle pipe2 syscall in gdb.base/catch-syscall.exp Tom de Vries
2022-05-05 11:47 ` [PATCH, v2][gdb/testsuite] " Tom de Vries
2022-05-05 11:49 ` [PATCH][gdb/tdep] Support catch syscall pipe2 for i386 Tom de Vries
2022-05-05 13:20 ` Simon Marchi
2022-05-09 10:26 ` [PATCH][gdb] Add gdb/syscalls/Makefile Tom de Vries
2022-05-09 14:41 ` Simon Marchi
2022-05-09 14:46 ` Tom de Vries
2022-05-09 10:39 ` [PATCH][gdb] Update syscalls/{amd64,i386}-linux.xml Tom de Vries
2022-05-09 14:48 ` Simon Marchi [this message]
2022-05-09 15:29 ` Tom de Vries
2022-05-09 15:40 ` Andreas Schwab
2022-05-09 15:42 ` Tom de Vries
2022-05-09 15:45 ` Andreas Schwab
2022-05-09 16:04 ` Tom de Vries
2022-05-09 17:19 ` Tom Tromey
2022-05-10 11:39 ` Tom de Vries
2022-05-12 9:00 ` Tom de Vries
2022-05-10 11:53 ` Tom de Vries
2022-05-16 16:07 ` Tom Tromey
2022-05-18 9:58 ` [committed][gdb/tdep] Add gdb/syscalls/update-linux-from-src.sh Tom de Vries
2022-05-05 13:23 ` [PATCH, v2][gdb/testsuite] Handle pipe2 syscall in gdb.base/catch-syscall.exp Simon Marchi
2022-05-09 10:18 ` Tom de Vries
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=cc79536e-9c53-4c86-5d3a-4dd252be387e@simark.ca \
--to=simark@simark.ca \
--cc=gdb-patches@sourceware.org \
--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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).