From: Gary Benson Date: Mon, 1 Oct 2018 09:37:39 +0000 (+0100) Subject: gdb_proc_service.h comment and whitespace synchronization X-Git-Tag: users/ARM/embedded-binutils-master-2018q4~591 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3795e814428a269a3528d3d9a86da957449fc5b6;p=platform%2Fupstream%2Fbinutils.git gdb_proc_service.h comment and whitespace synchronization 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b1724a0..01ae331 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2018-10-01 Gary Benson + + * gdb_proc_service.h: Whitespace change. + 2018-10-01 Tom Tromey * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H. 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/ChangeLog b/gdb/gdbserver/ChangeLog index 9e7f917..8a21850 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2018-10-01 Gary Benson + + * gdb_proc_service.h: Synchronize comments and whitespace with + GDB's version of this file. + 2018-09-25 Tom Tromey * configure: Rebuild. 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