From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 83D333858415 for ; Mon, 29 Aug 2022 16:29:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 83D333858415 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 27TGTR2c015276 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Aug 2022 12:29:32 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 27TGTR2c015276 Received: from simark.localdomain (unknown [217.28.27.60]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id B0AA41E13B; Mon, 29 Aug 2022 12:29:27 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Subject: [PATCH v2 0/3] fileio error cleanups Date: Mon, 29 Aug 2022 12:29:23 -0400 Message-Id: <20220829162926.3752040-1-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220826195459.2540898-1-simon.marchi@efficios.com> References: <20220826195459.2540898-1-simon.marchi@efficios.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Mon, 29 Aug 2022 16:29:27 +0000 X-Spam-Status: No, score=-3184.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2022 16:29:40 -0000 This is a v2 of: https://inbox.sourceware.org/gdb-patches/20220826195459.2540898-1-simon.marchi@efficios.com/ I only updated patch 3: - The commit message claimed the function was renamed, but the code didn't actually rename it. Now it does. - I noticed that remote.c contained an identical fileio error to errno function, so change remote.c to use the common function too. Simon Marchi (3): gdbsupport: move include/gdb/fileio.h contents to fileio.h gdbsupport: convert FILEIO_* macros to an enum gdbsupport: move fileio_errno_to_host to fileio.{h,cc} and rename gdb/gdb_bfd.c | 70 +++----------------- gdb/inf-child.c | 14 ++-- gdb/inf-child.h | 14 ++-- gdb/linux-nat.c | 6 +- gdb/linux-nat.h | 6 +- gdb/linux-tdep.c | 2 +- gdb/remote.c | 139 +++++++++++++-------------------------- gdb/sparc64-tdep.c | 8 +-- gdb/target.c | 48 +++++++------- gdb/target.h | 29 +++++---- gdbserver/hostio.cc | 2 +- gdbserver/win32-low.cc | 2 +- gdbsupport/fileio.cc | 55 +++++++++++++++- gdbsupport/fileio.h | 120 +++++++++++++++++++++++++++++++++- include/gdb/fileio.h | 144 ----------------------------------------- 15 files changed, 293 insertions(+), 366 deletions(-) delete mode 100644 include/gdb/fileio.h base-commit: 27d582267a1d06e94661979f8893799ac235a768 -- 2.37.2