depthcharge icon indicating copy to clipboard operation
depthcharge copied to clipboard

Add `global data` inspection payload helper

Open jynik opened this issue 5 years ago • 0 comments

Currently, the host-side Python code drives global data structure inspection, provided a means to read the gd pointer (e.g. bdinfo, RegisterReader) and a MemoryReader implementation to read the gd structure and potential jump table.

Currently, the memory and register reader payloads must have the jump table address passed to them. This is fine for built-in payloads, given that it gives us more visibility into failures.

However, it's definitely desirable to allow payloads to be made more self-sufficient. The same general approach should be implemented as a payload helper that can be included in any new payloads. (I'm thinking a static inline function in payloads/include/u-boot.h)

jynik avatar Jul 15 '20 00:07 jynik