This patch adds a new Dexter command, DexDeclareAddress, which is used to test the relative values of pointer variables. The motivation for adding this command is to allow meaningful assertions to be made about pointers that go beyond checking variable availability and null equality.
The full explanation and syntax is given in Commands.md, but as an example the following code tests that the pointer foo is equal to bar, and baz is equal to foo + 16:
DexDeclareAddress('my_addr') DexExpectWatchValue('foo', address('my_addr')) DexExpectWatchValue('bar', address('my_addr')) DexExpectWatchValue('baz', address('my_addr', 16))
I wonder if there's a better way of sharing access to the address_resolutions dict? This doesn't feel quite right but (unhelpfully) no suggestion comes to mind.