From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 31A993857C56; Fri, 16 Feb 2024 17:34:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 31A993857C56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1708104840; bh=bdC6aMqy+LNJByY+FI92yoklAR+1SKVaDdxsnLpY+A0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Q0+kgevVBU/vtm8jAKOR19Qyto6J1MIJUuAa/T2fU0WLTsWls3YUrePlxZG9OZV87 P34inD7oDrL2Y9vg+IvyMQu9BrkQ05zzrDWobuxnIGHNmuRR6Fh7WEa+pSWF8SoH80 Zd3+NtBJD2yNdDHlKTdbwIUqvM5+1Pq71tAUNMnc= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug server/30453] gdbserver cannot set breakpoints when /proc/pid/mem is not writable Date: Fri, 16 Feb 2024 17:33:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: server X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX 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=3D30453 --- Comment #19 from Tom Tromey --- I wonder if it would be possible to change ptrace to lift the restriction here. Like IIUC the problem is that ptrace can't read/write memory while the inferior is running, but /proc/pid/mem can. If ptrace had this capability, then using it as a fallback seems possible. --=20 You are receiving this mail because: You are on the CC list for the bug.=