From patchwork Fri Sep 28 14:49:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Benson X-Patchwork-Id: 29569 Received: (qmail 69072 invoked by alias); 28 Sep 2018 14:50:16 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 69027 invoked by uid 89); 28 Sep 2018 14:50:15 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, KAM_SHORT, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=3130 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, 28 Sep 2018 14:50:14 +0000 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6A9F085363 for ; Fri, 28 Sep 2018 14:50:13 +0000 (UTC) Received: from blade.nx (ovpn-117-194.ams2.redhat.com [10.36.117.194]) by smtp.corp.redhat.com (Postfix) with ESMTP id 301A8675FC for ; Fri, 28 Sep 2018 14:50:13 +0000 (UTC) Received: from blade.com (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id 442C280B0921 for ; Fri, 28 Sep 2018 15:50:12 +0100 (BST) From: Gary Benson To: gdb-patches@sourceware.org Subject: [PATCH 1/5] gdb_proc_service.h comment and whitespace synchronization Date: Fri, 28 Sep 2018 15:49:57 +0100 Message-Id: <1538146201-16374-2-git-send-email-gbenson@redhat.com> In-Reply-To: <1538146201-16374-1-git-send-email-gbenson@redhat.com> References: <1538146201-16374-1-git-send-email-gbenson@redhat.com> X-IsSubscribed: yes This commit updates comments and whitespace in GDB's and gdbserver's gdb_proc_service.h. gdb/ChangeLog: * gdb_proc_service.h: Whitespace change. gdb/gdbserver/ChangeLog: * gdb_proc_service.h: Synchronize comments and whitespace with GDB's version of this file. --- gdb/ChangeLog | 4 ++++ gdb/gdb_proc_service.h | 2 +- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/gdb_proc_service.h | 40 ++++++++++++++++++++++++++++++++-------- 4 files changed, 42 insertions(+), 9 deletions(-) diff --git a/gdb/gdb_proc_service.h b/gdb/gdb_proc_service.h index 41175a6..39f0e03 100644 --- a/gdb/gdb_proc_service.h +++ b/gdb/gdb_proc_service.h @@ -70,7 +70,7 @@ EXTERN_C_PUSH typedef enum { PS_OK, /* Generic "call succeeded". */ - PS_ERR, /* Generic error. */ + PS_ERR, /* Generic error. */ PS_BADPID, /* Bad process handle. */ PS_BADLID, /* Bad LWP identifier. */ PS_BADADDR, /* Bad address. */ diff --git a/gdb/gdbserver/gdb_proc_service.h b/gdb/gdbserver/gdb_proc_service.h index b3e7004..54ff59d 100644 --- a/gdb/gdbserver/gdb_proc_service.h +++ b/gdb/gdbserver/gdb_proc_service.h @@ -31,7 +31,30 @@ EXTERN_C_PUSH EXTERN_C_POP -#else +#else /* HAVE_PROC_SERVICE_H */ + +/* The following fallback definitions have been imported and adjusted + from glibc's proc_service.h */ + +/* Callback interface for libthread_db, functions users must define. + Copyright (C) 1999,2002,2003 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +/* The definitions in this file must correspond to those in the debugger. */ #ifdef HAVE_SYS_PROCFS_H #include @@ -48,15 +71,16 @@ EXTERN_C_POP EXTERN_C_PUSH +/* Functions in this interface return one of these status codes. */ typedef enum { - PS_OK, /* Success. */ - PS_ERR, /* Generic error. */ - PS_BADPID, /* Bad process handle. */ - PS_BADLID, /* Bad LWP id. */ - PS_BADADDR, /* Bad address. */ - PS_NOSYM, /* Symbol not found. */ - PS_NOFREGS /* FPU register set not available. */ + PS_OK, /* Generic "call succeeded". */ + PS_ERR, /* Generic error. */ + PS_BADPID, /* Bad process handle. */ + PS_BADLID, /* Bad LWP identifier. */ + PS_BADADDR, /* Bad address. */ + PS_NOSYM, /* Could not find given symbol. */ + PS_NOFREGS /* FPU register set not available for given LWP. */ } ps_err_e; #ifndef HAVE_LWPID_T