From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 66365 invoked by alias); 9 Nov 2018 17:36:50 -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 66351 invoked by uid 89); 9 Nov 2018 17:36:49 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-7.2 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_3,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=ham version=3.3.2 spammy=vim X-HELO: mail.baldwin.cx Received: from bigwig.baldwin.cx (HELO mail.baldwin.cx) (96.47.65.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 09 Nov 2018 17:36:48 +0000 Received: from John-Baldwins-MacBook-Pro-2.local (ralph.baldwin.cx [66.234.199.215]) by mail.baldwin.cx (Postfix) with ESMTPSA id 14AE410AFCD; Fri, 9 Nov 2018 12:36:45 -0500 (EST) Subject: Re: [PATCH v2 3/3] Update the FreeBSD system call table to match FreeBSD 12.0. To: Pedro Alves , gdb-patches@sourceware.org References: <20181106175431.59832-1-jhb@FreeBSD.org> <20181106175431.59832-4-jhb@FreeBSD.org> <485c1c69-66b8-fd50-eea0-c8b5b8e0fea5@redhat.com> From: John Baldwin Openpgp: preference=signencrypt Message-ID: <7e77cc04-4e70-6977-0839-3aa197aa6f0d@FreeBSD.org> Date: Fri, 09 Nov 2018 17:36:00 -0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <485c1c69-66b8-fd50-eea0-c8b5b8e0fea5@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2018-11/txt/msg00163.txt.bz2 On 11/9/18 8:34 AM, Pedro Alves wrote: > 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? I ended up having to do it in a kind of ugly way to get a file that libexpat would parse and Emacs would still recognize as read-only. This version libexpat failed to parse: This version Emacs didn't mark read-only: So I'm using this: I haven't tested in vim though. >> +++ 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? Oops, I just copied the license block from update-gnulib.sh I think. Fixed. -- John Baldwin                                                                            Â