From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 96149 invoked by alias); 9 Nov 2018 16:34:18 -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 96117 invoked by uid 89); 9 Nov 2018 16:34:16 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=BAYES_00,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 09 Nov 2018 16:34:15 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8D06758E2E; Fri, 9 Nov 2018 16:34:14 +0000 (UTC) Received: from [127.0.0.1] (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9F12A5C260; Fri, 9 Nov 2018 16:34:10 +0000 (UTC) Subject: Re: [PATCH v2 3/3] Update the FreeBSD system call table to match FreeBSD 12.0. To: John Baldwin , gdb-patches@sourceware.org References: <20181106175431.59832-1-jhb@FreeBSD.org> <20181106175431.59832-4-jhb@FreeBSD.org> From: Pedro Alves Message-ID: <485c1c69-66b8-fd50-eea0-c8b5b8e0fea5@redhat.com> Date: Fri, 09 Nov 2018 16:34:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181106175431.59832-4-jhb@FreeBSD.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2018-11/txt/msg00160.txt.bz2 On 11/06/2018 05:54 PM, John Baldwin wrote: > Add a script to generate the FreeBSD XML system call table from the > sys/sys/syscall.h file in the kernel source tree. For ABI > compatiblity system calls used by older binaries (such as > freebsd11_kevent()), the original system call name is used as an > alias. > > Run this script against the current syscall.h file in FreeBSD's head > branch which is expected to be the file used in 12.0 (head is > currently in code freeze as part of the 12.0 release process). > > gdb/ChangeLog: > > * syscalls/update-freebsd.sh: New file. > * syscalls/freebsd.xml: Regenerate. Can you make the script emit the usual make-read-only trick at the top of the generated file? See e.g., gdbarch.sh: /* *INDENT-OFF* */ /* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */ /* vi:set ro: */ or make-target-delegates: print "/* THIS FILE IS GENERATED -*- buffer-read-only: t -*- */\n"; print "/* vi:set ro: */\n\n"; > +++ b/gdb/syscalls/update-freebsd.sh > @@ -0,0 +1,77 @@ > +#! /bin/sh > + > +# Copyright (C) 2011-2018 Free Software Foundation, Inc. Curious, you had this script since 2011? Thanks, Pedro Alves