PINCE icon indicating copy to clipboard operation
PINCE copied to clipboard

Added basic pointer type support

Open brkzlr opened this issue 2 years ago • 1 comments

GDB_Engine.py now has read_pointer function which can read a PointerType class containing a base_address and an offsets list. Calling this function will return the final pointed address after traversing the pointer (together with it's offsets, if it has any).

For now this PR doesn't contain offsets support in the GUI as it's a tricky feature to implement right now and have it's design similar to CE in the same time.

This is how the Add Address Dialog will look like now: image

brkzlr avatar Jul 17 '22 16:07 brkzlr

Do you have an example of the pointer offsets list, or a way I could create one via editing the PCT file or even just hard-coding one to test? I'm willing to take a crack at the GUI updates, but I want to make sure I'm understanding the proper way to encode the struct fields into the pointer type.

jaredballou avatar Jul 24 '22 14:07 jaredballou

Thanks for the contribution, very neat feature!

korcankaraokcu avatar Aug 11 '22 19:08 korcankaraokcu