[Bug breakpoints/34381] Emit an error message when CONFIG_PROC_MEM_NO_FORCE=y causes attach failure

"adrian.ratiu at collabora dot com via Gdb-prs" <[email protected]>
Newsgroups gmane.comp.gdb.bugs.discuss
Message-ID <[email protected]/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=34381

--- Comment #8 from Adrian Ratiu <adrian.ratiu at collabora dot com> ---
> The aforementioned comment explains why gdb does not use these...

Thanks and yes, that's where my investigation into the issue has stopped, due
to lack of time.

Long-term we need to figure out a solution to make them work, or find/add some
other mechanism (for example I tried adding ptrace() fallbacks to gdbserver,
however that was NAK'ed by GDB devs back in the day, you can find my patches on
the GDB mailing list).

Another avenue of research is to see how other projects do it (e.g. LLVM /
lldb).

Short-term, like you suggested initially, a runtime probe would likely be a
good solution to avoid the current confusing "Cannot insert breakpoint"
message.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.