From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 397573858C3A; Thu, 14 Mar 2024 08:34:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 397573858C3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1710405282; bh=8ppeWAnLvuCNVmPJXZIXO5O+DWM6L5ndfJOhau2jl7I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=U7Aie5yagJ9MvPINuJSTYYQ+dkW8g9CAxwn2ZM0qSyVu27MB/3Xj60FHwtrVlrSOk qCkQOrGPoS0NpUQuARtZC0ZrscYHW/iQek2PwY6NpW5g5uISh09EyYcGLsRGm61fIH Ns2OgQge44AL+xHdM4ZgIU9pB/JGAiEsSOQH3/2Y= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug build/31483] [gdb/build, postmarketos] error: 'W_EXITCODE' was not declared in this scope Date: Thu, 14 Mar 2024 08:34:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31483 --- Comment #1 from Tom de Vries --- In gdbsupport/gdb_wait.h, we have: ... #ifndef WSETEXIT # ifdef W_EXITCODE #define WSETEXIT(w,status) ((w) =3D W_EXITCODE(status,0)) # else #define WSETEXIT(w,status) ((w) =3D (0 | ((status) << 8))) # endif #endif ... so this should probably work: ... diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc index 9d5a6242803..aaa7bbc2a4c 100644 --- a/gdbserver/linux-low.cc +++ b/gdbserver/linux-low.cc @@ -1904,7 +1904,9 @@ linux_process_target::check_zombie_leaders () thread_info *leader_thread =3D get_lwp_thread (leader_lp); if (report_exit_events_for (leader_thread)) { - mark_lwp_dead (leader_lp, W_EXITCODE (0, 0), true); + int wstat; + WSETEXIT (wstat, 0); + mark_lwp_dead (leader_lp, wstat, true); new_pending_event =3D true; } else ... --=20 You are receiving this mail because: You are on the CC list for the bug.=