From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2BBA73856B73; Tue, 6 Dec 2022 11:04:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2BBA73856B73 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1670324658; bh=TOd0IS5gIvh2WNo1EbDIXsFJ2bTzFYDmRZpQ1W5SAu8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=v4q4yCXhLdmN95AiQgWTwlkGP3B/r07i7KPugJpVghPdUomUN02PERWOJqjfXqf/Y CdK7yqSDxKAgvmHmgbWEU5XIIS/K/Yoif/x82GNpfpbwxgSpTyeR2ut/c1rgek6Khi RYDTRUDTCcB9XWmksKbnu5A/ILYrnEEdK3ExuAZM= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/29850] [gdb, powerpc64le] FAIL: gdb.base/longjmp.exp: next over longjmp(1) Date: Tue, 06 Dec 2022 11:04:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 12.1 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=3D29850 --- Comment #3 from Tom de Vries --- (In reply to Tom de Vries from comment #1) > By inverting the branches: > ... > diff --git a/gdb/testsuite/gdb.base/longjmp.c > b/gdb/testsuite/gdb.base/longjmp.c > index 4139e49e6f1..ce6990ca99a 100644 > --- a/gdb/testsuite/gdb.base/longjmp.c > +++ b/gdb/testsuite/gdb.base/longjmp.c > @@ -46,14 +46,14 @@ main () > volatile int i =3D 0; >=20=20 > /* Pattern 1 - simple longjmp. */ > - if (setjmp (env) =3D=3D 0) /* patt1 */ > + if (setjmp (env) !=3D 0) /* patt1 */ > { > - longjmps++; > - longjmp (env, 1); > + resumes++; > } > else > { > - resumes++; > + longjmps++; > + longjmp (env, 1); > } >=20=20 > i =3D 1; /* miss_step_1 */ > ... > we can avoid getting lucky on x86_64, and get the same result as for > powerpc64le. https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dcommit;h=3D6e41445bb00= 6f3afc784862f8eb1bf0f2691a94a --=20 You are receiving this mail because: You are on the CC list for the bug.=