From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 87660 invoked by alias); 28 Nov 2018 18:31:21 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 87635 invoked by uid 89); 28 Nov 2018 18:31:20 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 28 Nov 2018 18:31:18 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gS4cA-0004IF-Go for gdb-patches@sourceware.org; Wed, 28 Nov 2018 13:31:16 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46839) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gS4c9-0004HG-S0; Wed, 28 Nov 2018 13:31:10 -0500 Received: from [176.228.60.248] (port=2623 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gS4c9-0000aQ-9g; Wed, 28 Nov 2018 13:31:09 -0500 Date: Wed, 28 Nov 2018 18:31:00 -0000 Message-Id: <83o9a9dpfr.fsf@gnu.org> From: Eli Zaretskii To: John Baldwin CC: palves@redhat.com, gdb-patches@sourceware.org In-reply-to: <24c28a03-e548-daac-1ad9-47d0f31eb13e@FreeBSD.org> (message from John Baldwin on Wed, 28 Nov 2018 10:00:48 -0800) Subject: Re: [PATCH v3 2/3] Add an optional "alias" attribute to syscall entries. References: <20181109200432.84491-1-jhb@FreeBSD.org> <20181109200432.84491-3-jhb@FreeBSD.org> <83efbuattx.fsf@gnu.org> <650590ef-3036-57a8-6cd5-abaa5654add3@FreeBSD.org> <34fcc769-4533-31bf-d258-36c6110037e0@redhat.com> <766d8293-d021-ce40-219e-f5a832b46fa7@FreeBSD.org> <83r2f5drm4.fsf@gnu.org> <24c28a03-e548-daac-1ad9-47d0f31eb13e@FreeBSD.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-IsSubscribed: yes X-SW-Source: 2018-11/txt/msg00521.txt.bz2 > Cc: palves@redhat.com, gdb-patches@sourceware.org > From: John Baldwin > Date: Wed, 28 Nov 2018 10:00:48 -0800 > > Oh, I was just referring to Pedro's version being shorter. I'm fine with > moving it. This is a bit longer as it restores a bit of the FreeBSD-specific > note about syscall ABIs but that seemed relevant when moving it: > > diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo > index 944a2c4383..c60c2b80c4 100644 > --- a/gdb/doc/gdb.texinfo > +++ b/gdb/doc/gdb.texinfo > @@ -22329,6 +22329,7 @@ configurations. > * Cygwin Native:: Features specific to the Cygwin port > * Hurd Native:: Features specific to @sc{gnu} Hurd > * Darwin:: Features specific to Darwin > +* FreeBSD:: Features specific to FreeBSD > @end menu > > @node BSD libkvm Interface > @@ -23214,6 +23215,26 @@ better understand the cause of a fault. The default is off. > Show the current state of exceptions trapping. > @end table > > +@node FreeBSD > +@subsection FreeBSD > +@cindex FreeBSD > + > +When the ABI of a system call is changed in the FreeBSD kernel, this > +is implemented by leaving a compatibility system call using the old > +ABI at the existing number and allocating a new system call number for > +the version using the new ABI. As a convenience, when a system call > +is caught by name, compatibility system calls are also caught. > + > +For example, FreeBSD 12 introduced a new variant of the @code{kevent} > +system call and catching the @code{kevent} system call by name catches > +both variants: > + > +@smallexample > +(@value{GDBP}) catch syscall kevent > +Catchpoint 1 (syscalls 'freebsd11_kevent' [363] 'kevent' [560]) > +(@value{GDBP}) > +@end smallexample This is fine with me, but let's hear what Pedro thinks.