Message ID | yddzfk40xqi.fsf@CeBiTec.Uni-Bielefeld.DE |
---|---|
State | New |
Headers |
Return-Path: <gdb-patches-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4AF883858CDA for <patchwork@sourceware.org>; Mon, 6 Jan 2025 15:27:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4AF883858CDA Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=cebitec.uni-bielefeld.de header.i=@cebitec.uni-bielefeld.de header.a=rsa-sha256 header.s=20200306 header.b=BpfGT099 X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) by sourceware.org (Postfix) with ESMTPS id 3FBA13858D21 for <gdb-patches@sourceware.org>; Mon, 6 Jan 2025 15:26:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3FBA13858D21 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cebitec.uni-bielefeld.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3FBA13858D21 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=129.70.160.84 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736177207; cv=none; b=Ws0AOQL8uYJACD208thq/vD2/KH09dCOhZFc02Zk5JeFoe7C9NfzzzS16K1lA/sYSEt7iHr9A053ofUqIEFlSqDG5721JUM/UFogyzRKZxXJyYb5avwzmoRhkhfFB7nBh/1NnzIQY2IzBXDX/LeyawPFIcVBwdS+zQKIqxnVKkE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736177207; c=relaxed/simple; bh=Vet27SN1mdib4NDu4tcblLPDmcfSFZckh2GyflS2UNc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=FlrKHogb8qgO6tKAS/8OxhhCMfKj8e+KPfMVETFhlzZvj8kBSS8w4XnKSL3NPCFforiT6VYiaPooD/mLCNs3xAGpUmuTM/vbX7g1YoqsNe9g4irgwtSAlHA/5k47CaWr+RDkqV15qxrt5R+xgNU/MNmYa+i8PHAQ+zAxJfBtIrQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3FBA13858D21 Received: from localhost (localhost [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 646D0CE67C; Mon, 6 Jan 2025 16:26:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= cebitec.uni-bielefeld.de; h=content-type:content-type :mime-version:user-agent:message-id:date:date:subject:subject :from:from:received:received; s=20200306; t=1736177206; bh=Vet27 SN1mdib4NDu4tcblLPDmcfSFZckh2GyflS2UNc=; b=BpfGT0995Xf7qp++uQ8eP 16dteyaEFRJt6nD89PCQ84PldCwgkbH17POlYYw5or9flkZcbo8smO709KFHRbyk P8i3WFoVDX51h3oRHcK8cWPn2ZGYVtQ3Xpjf/k8b3ReTrV+GJP3x3Eu2MJgAPx1E IL4oh6NefnzYusf3PzYFGbLWDrIT1/W+nXmPpCiscIiz1xQMiKNumjwOamS1PDKY V789bCW6bBfFzBzrJBnIlvicYCX2+pkuatnCzSBLaCDYb38Y2/5SqD/kJaWukIv5 jHKfYlmN3qp86PdbM0MWU9w3YwZzgubNmJxpRUgBO1IHoSFrfzkBDUJ+e6Fu5ctn Q== X-Virus-Scanned: amavisd-new at cebitec.uni-bielefeld.de Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ZHExDFXCTtcd; Mon, 6 Jan 2025 16:26:46 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p4fddb7e0.dip0.t-ipconnect.de [79.221.183.224]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id E7F0CCEC9C; Mon, 6 Jan 2025 16:26:45 +0100 (CET) From: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> To: gdb-patches@sourceware.org Cc: Tom de Vries <tdevries@suse.de>, Joel Brobecker <brobecker@adacore.com> Subject: [COMMITTED PATCH] Fix procfs.c compilation Date: Mon, 06 Jan 2025 16:26:45 +0100 Message-ID: <yddzfk40xqi.fsf@CeBiTec.Uni-Bielefeld.DE> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Status: No, score=-3786.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP 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.30 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces~patchwork=sourceware.org@sourceware.org |
Series |
[COMMITTED] Fix procfs.c compilation
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 | fail | Patch failed to apply |
linaro-tcwg-bot/tcwg_gdb_build--master-arm | fail | Patch failed to apply |
Commit Message
Rainer Orth
Jan. 6, 2025, 3:26 p.m. UTC
procfs.c compilation is currently broken on Solaris: /vol/src/gnu/gdb/hg/gdb-16-branch/git/gdb/procfs.c: In member function ‘virtual ptid_t procfs_target::wait(ptid_t, target_waitstatus*, target_wait_flags)’: /vol/src/gnu/gdb/hg/gdb-16-branch/git/gdb/procfs.c:2067:34: error: ‘wait’ is not a member of ‘gdb’; did you mean ‘wait’? 2067 | wait_retval = gdb::wait (&wstat); | ^~~~ In file included from ../gnulib/import/sys/wait.h:28, from /usr/include/stdlib.h:16, from /usr/gcc/14/include/c++/14.2.0/cstdlib:79, from /vol/src/gnu/gdb/hg/gdb-16-branch/git/gdb/../gdbsupport/common-defs.h:99, from /vol/src/gnu/gdb/hg/gdb-16-branch/git/gdb/defs.h:26, from <command-line>: /usr/include/sys/wait.h:85:14: note: ‘wait’ declared here 85 | extern pid_t wait(int *); | ^~~~ /vol/src/gnu/gdb/hg/gdb-16-branch/git/gdb/procfs.c:2154:41: error: ‘wait’ is not a member of ‘gdb’; did you mean ‘wait’? 2154 | int temp = gdb::wait (&wstat); | ^~~~ /usr/include/sys/wait.h:85:14: note: ‘wait’ declared here 85 | extern pid_t wait(int *); | ^~~~ /vol/src/gnu/gdb/hg/gdb-16-branch/git/gdb/procfs.c: In function ‘void unconditionally_kill_inferior(procinfo*)’: /vol/src/gnu/gdb/hg/gdb-16-branch/git/gdb/procfs.c:2566:12: error: ‘wait’ is not a member of ‘gdb’; did you mean ‘wait’? 2566 | gdb::wait (NULL); | ^~~~ /usr/include/sys/wait.h:85:14: note: ‘wait’ declared here 85 | extern pid_t wait(int *); | ^~~~ The use of gdb::wait was introduced in commit 4e4dfc4728622d83c5d600949024449e21de868a Author: Tom de Vries <tdevries@suse.de> Date: Fri Nov 22 17:44:29 2024 +0100 [gdb] Add gdb::wait but obviously never tested. Fixed by including gdbsupport/eintr.h to provide the declaration. Tested on amd64-pc-solaris2.11 and sparcv9-sun-solaris2.11. Committed to master and gdb-16-branch. Rainer
diff --git a/gdb/procfs.c b/gdb/procfs.c --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -46,6 +46,7 @@ #include "gdbsupport/scoped_fd.h" #include "gdbsupport/pathstuff.h" #include "gdbsupport/buildargv.h" +#include "gdbsupport/eintr.h" #include "cli/cli-style.h" /* This module provides the interface between GDB and the