mbox series

[v2,0/2] gdb invalid memory access handling improvements

Message ID 20250317051605.1108128-1-npiggin@gmail.com (mailing list archive)
Headers show
Series gdb invalid memory access handling improvements | expand

Message

Nicholas Piggin March 17, 2025, 5:16 a.m. UTC
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.

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  | 37 ++++++++++++++++++++++---------------
 2 files changed, 43 insertions(+), 21 deletions(-)