public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "adrian.ratiu at collabora dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug server/30453] gdbserver cannot set breakpoints when /proc/pid/mem is not writable Date: Thu, 15 Feb 2024 19:06:39 +0000 [thread overview] Message-ID: <bug-30453-4717-Lu8hBPztee@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-30453-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=30453 Adrian Ratiu <adrian.ratiu at collabora dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |adrian.ratiu at collabora dot com --- Comment #8 from Adrian Ratiu <adrian.ratiu at collabora dot com> --- Hello, sorry for necro-bumping this, but I'm working on Chromebooks on behalf of Collabora and encountered this problem - of not having a functional remote debugger past GDB 9.2 (yes CrOS based systems are still using v9.2...). I got GDB working again by creating a kernel patch as you suggested above, to relax the /proc/pid/mem hardening restriction for ptrace-scoped processes, but it got rejected by ChromiumOS upstream as too risky. Please see the attached kernel patch and this reply [1] if you want more details on that. I also wrote a patch for gdbserver which adds back the the ptrace r/w as a fallback which works nicely for my test cases. I've attached the patch and tried to explain as best I can in the commit message. Please consider the perspective of ChromeOS/ChromiumOS users, for which users GDB has a regression because basic functionality used to work and is broken in more recent releases. Would the gdbserver patch be acceptable to fix this case? I can modify it if necessary to make it acceptable, for example after writing it I noticed that gdb/linux-nat.c contains proc_mem_file_is_writable () which does something similar, maybe I could reuse that logic? Thanks, Adrian [1] https://issuetracker.corp.google.com/issues/268356054#comment61 -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2024-02-15 19:06 UTC|newest] Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-05-16 16:00 [Bug server/30453] New: " manojgupta at google dot com 2023-05-16 16:02 ` [Bug server/30453] " manojgupta at google dot com 2023-05-16 18:17 ` pedro at palves dot net 2023-05-16 18:24 ` manojgupta at google dot com 2023-05-16 20:00 ` pedro at palves dot net 2023-05-16 20:13 ` manojgupta at google dot com 2023-05-17 19:03 ` manojgupta at google dot com 2023-05-18 11:50 ` pedro at palves dot net 2024-02-15 19:06 ` adrian.ratiu at collabora dot com [this message] 2024-02-15 19:07 ` adrian.ratiu at collabora dot com 2024-02-15 19:07 ` adrian.ratiu at collabora dot com 2024-02-15 19:13 ` adrian.ratiu at collabora dot com 2024-02-15 20:09 ` pedro at palves dot net 2024-02-15 20:18 ` pedro at palves dot net 2024-02-15 20:18 ` pedro at palves dot net 2024-02-16 2:54 ` tromey at sourceware dot org 2024-02-16 5:29 ` adrian.ratiu at collabora dot com 2024-02-16 5:40 ` adrian.ratiu at collabora dot com 2024-02-16 9:47 ` adrian.ratiu at collabora dot com 2024-02-16 17:33 ` tromey at sourceware dot org 2024-02-16 17:53 ` pedro at palves dot net 2024-02-16 17:56 ` pedro at palves dot net 2024-02-16 18:10 ` adrian.ratiu at collabora dot com 2024-02-16 18:17 ` pedro at palves dot net 2024-02-16 20:53 ` mark at klomp dot org 2024-02-16 21:36 ` pedro at palves dot net 2024-02-16 21:38 ` pedro at palves dot net 2024-02-16 21:57 ` tromey at sourceware dot org 2024-02-22 13:28 ` adrian.ratiu at collabora dot com 2024-02-23 17:01 ` cvs-commit at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-30453-4717-Lu8hBPztee@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).