[Bug breakpoints/27423] Watchpoint could be hw but is sw
"cvs-commit at gcc dot gnu.org via Gdb-prs" <[email protected]>
| Newsgroups | gmane.comp.gdb.bugs.discuss |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://sourceware.org/bugzilla/show_bug.cgi?id=27423 --- Comment #5 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Hannes Domani <[email protected]>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7ee28b5aee4eaadffadf1df9a555a7737e5e744c commit 7ee28b5aee4eaadffadf1df9a555a7737e5e744c Author: Hannes Domani <[email protected]> Date: Sun Aug 23 18:51:23 2026 +0200 Prevent downgrading of hardware watchpoints if possible The lazy flag of a value can tell us if the value contents are available. But this could be either because it was simply never actually accessed, or it tried to be accessed, and failed. The latter are interesting for watchpoints, the former are not. Currently it only uses lazy values if they are at the head of the value chain, but this is fragile logic, and degrades some watchpoints to software watchpoints where it's actually not necessary. So this adds a new value flag 'm_fetch_lazy_failed' which tells if the watchpoint expression actually tried to access the value and failed. And this is used instead of the value chain location to tell if a lazy value should be used as a watchpoint location. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=27423 Tested-By: Guinevere Larsen <[email protected]> Reviewed-by: Thiago Jung Bauermann <[email protected]> Approved-By: Tom Tromey <[email protected]> -- You are receiving this mail because: You are on the CC list for the bug.