Skip to content

gdb invalid memory access handling improvements

Nicholas Piggin qemu-devel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v22 patches 2 repliesSuperseded
  3. v12 patches 7 repliesSuperseded

Changes in v3 from the cover letter

- Change to use Philippe's suggestion for log condition.
- Fixed flipped test noticed by Richard (sorry, forgot to actually test after rebasing).

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2gdbstub: Improve physical memory access handlinggdbstub/system.c+21 -60 replies
2/2memory: suppress INVALID_MEM logs caused by debug accesssystem/memory.c+7 -30 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDavid HildenbrandRichard Henderson
1/2R-b R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] gdb invalid memory access handling improvements

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(-)
Signature · 1 line
2.47.1