This adds .debug=1 attribute for GDB's phys mem access mode, adds memory transaction error handling for it so it reports cannot access memory instead of silent success, and silences warning logs for invalid memory access coming from the debugger.
Changes since v1: - Move phys_memory_rw_debug() into gdbstub/system.c and update patch changelog to match. Since v2: - Change to use Philippe's suggestion for log condition. - Fixed flipped test noticed by Richard (sorry, forgot to actually test after rebasing). Thanks, Nick Nicholas Piggin (2): gdbstub: Improve physical memory access handling memory: suppress INVALID_MEM logs caused by debug access gdbstub/system.c | 27 +++++++++++++++++++++------ system/memory.c | 10 +++++++--- 2 files changed, 28 insertions(+), 9 deletions(-) -- 2.47.1