From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 29BE13875B7A; Mon, 12 Dec 2022 09:48:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 29BE13875B7A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1670838483; bh=TO3KBfYyfh87lNhrGc9/nzFqK9+9BjiJobI8ZA6Js7w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gv8gYTmGp3MX42Zcr6twnodU0/BGMj/uw1U5l2o0ZR/CHv2GKfV2C5SihxBsw3Y0I 8J/DmSiSHCf62yPVamN3EXb+RqldNl9dE0ciBtW0KoYPPv+UXleGOFHhnfIIr+WLwb GMrjtVycB5WdQ62/+zjYObdf3w6NC5752Nk0+odY= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug tdep/29868] [gdb/tdep, s390x] breakpoint.c:5784: internal-error: bpstat_stop_status_nowatch: Assertion `!target_stopped_by_watchpoint ()' Date: Mon, 12 Dec 2022 09:48:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tdep X-Bugzilla-Version: HEAD 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=3D29868 --- Comment #4 from Tom de Vries --- I found this bit of code in aarch64_linux_nat_target::stopped_data_address: ... diff --git a/gdb/s390-linux-nat.c b/gdb/s390-linux-nat.c index 96833e804e9..02b797e422f 100644 --- a/gdb/s390-linux-nat.c +++ b/gdb/s390-linux-nat.c @@ -673,6 +673,13 @@ s390_linux_nat_target::stopped_by_watchpoint () if (state->watch_areas.empty ()) return false; + siginfo_t siginfo; + if (!linux_nat_get_siginfo (inferior_ptid, &siginfo)) + return false; + if (siginfo.si_signo !=3D SIGTRAP + || (siginfo.si_code & 0xffff) !=3D TRAP_HWBKPT) + return false; + parea.len =3D sizeof (per_lowcore); parea.process_addr =3D (addr_t) & per_lowcore; parea.kernel_addr =3D offsetof (struct user_regs_struct, per_info.lowcor= e); ... and it fixes the test-case. --=20 You are receiving this mail because: You are on the CC list for the bug.=