From 394e5f18b6fb034b04fae0f35575dc24a4a1d620 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Wed, 16 Mar 2022 04:13:18 +1100 Subject: Fixed some debugger memory view annoyances and cleaned up Lua bindings. Made the debugger memory view not depend on isprint which is affected by the global locale. Assume the OSD will display as ISO-8869-1 and replace problematic printable characters. Started changing Lua function bindings to use set_function to avoid potential issues related to ThePhD/sol2#608, and worked out what was causing problems with symbol table read_memory/write_memory. (They aren't really essential - you can do the same thing with the address space object itself, but they're easier to parameterise.) --- docs/source/techspecs/luareference.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docs/source/techspecs') diff --git a/docs/source/techspecs/luareference.rst b/docs/source/techspecs/luareference.rst index 0ffbe310157..e2e33b362f0 100644 --- a/docs/source/techspecs/luareference.rst +++ b/docs/source/techspecs/luareference.rst @@ -3237,6 +3237,18 @@ symbols:set_memory_value(name, space, offset, value, size, disable_se) The access size is specified in bytes, and must be 1, 2, 4 or 8. The ``disable_se`` argument specifies whether memory access side effects should be disabled. +symbols:read_memory(space, address, size, apply_translation) + Read a value from an address space. The access size is specified in bytes, + and must be 1, 2, 4, or 8. If the ``apply_translation`` argument is true, + the address will be translated with debug read intention. Returns a value + of the requested size with all bits set if address translation fails. +symbols:write_memory(space, address, data, size, apply_translation) + Write a value to an address space. The access size is specified in bytes, + and must be 1, 2, 4, or 8. If the ``apply_translation`` argument is true, + the address will be translated with debug write intention. The symbol + table’s memory modified function will be called after the value is written. + The value will not be written and the symbol table’s memory modified + function will not be called if address translation fails. Properties ^^^^^^^^^^ -- cgit v1.2.3-70-g09d2