From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CB28F3858004; Wed, 21 Jun 2023 07:00:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CB28F3858004 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1687330817; bh=0naYPvaWhUSXlSiiMHd5RE2qy9ShHI5bdHoXjYaFO0c=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xFcHEQq6dcZ3+5imOrbS1IlfcT8Q2BOEJg5wsAwlcKFfdeBCenpwnAykFflkFepPd 4pruo00mLmYgT8TB4iGSDLBJTN0phluRk5lDWs0oB3FMiWELmKeAPV8JsB6aCtYMG4 YfRsCocqol+8Cadmt/r3Xix3L6wJzWgSils8LeXM= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/30562] [gdb] FAIL: gdb.threads/watchthreads2.exp: watch x Date: Wed, 21 Jun 2023 07:00:17 +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: 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=3D30562 --- Comment #1 from Tom de Vries --- Fixed by: ... diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c index ef3fa008adf..5f0cafdae50 100644 --- a/gdb/arm-linux-nat.c +++ b/gdb/arm-linux-nat.c @@ -608,6 +608,8 @@ arm_linux_get_hwbp_cap (void) int tid; unsigned int val; + if (inferior_ptid =3D=3D null_ptid) + return nullptr; tid =3D inferior_ptid.lwp (); if (ptrace (PTRACE_GETHBPREGS, tid, 0, &val) < 0) available =3D 0; ... --=20 You are receiving this mail because: You are on the CC list for the bug.=