From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11523 invoked by alias); 9 Nov 2018 04:27:45 -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 11511 invoked by uid 89); 9 Nov 2018 04:27:44 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=kevin 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 04:27:43 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 824027BDAA; Fri, 9 Nov 2018 04:27:42 +0000 (UTC) Received: from pinnacle.lan (ovpn-116-78.phx2.redhat.com [10.3.116.78]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 573EF6A6A8; Fri, 9 Nov 2018 04:27:42 +0000 (UTC) Date: Fri, 09 Nov 2018 04:27:00 -0000 From: Kevin Buettner To: gdb-patches@sourceware.org Cc: John Baldwin Subject: Re: [PATCH v2 1/3] Return a vector of integers from get_syscalls_by_group. Message-ID: <20181108212741.0efc6278@pinnacle.lan> In-Reply-To: <20181106175431.59832-2-jhb@FreeBSD.org> References: <20181106175431.59832-1-jhb@FreeBSD.org> <20181106175431.59832-2-jhb@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-11/txt/msg00141.txt.bz2 On Tue, 6 Nov 2018 09:54:29 -0800 John Baldwin wrote: > This removes the need for the caller to explicitly manage the memory > for the returned system call list. This change only returns the > numbers rather than a vector of syscall structures since the caller > only needs the numbers. > > gdb/ChangeLog: > > * break-catch-syscall.c (catch_syscall_split_args): Update for > get_syscalls_by_group returning a vector. > * xml-syscall.c [!HAVE_LIBEXPATH] (get_syscalls_by_group): Return s/HAVE_LIBEXPATH/HAVE_LIBEXPAT/ > empty vector. > [HAVE_LIBEXPAT] (xml_list_syscalls_by_group) > (get_syscalls_by_group): Return a vector of integers. > * xml-syscall.h (get_syscalls_by_group): Change return type to a > vector of integers. Otherwise, okay. Kevin