Open ptomin opened 8 years ago
I'm thinking this is best done by exposing a node in the browser tree under each segment called "Global data". Clicking on the node will display the global variables in a listing similar to what happens when you select a procedure in the browser tree. Creating a tree node for each global variable could be extremely overwhelming.
So, to implement this:
Program
, perhaps called Program.AddGlobal
and Program.RenameGlobal
which raise the event GlobalAdded
and GlobalRenamed
respectively.CodeView
, called GlobalsView
which displays all the globals of a given Program
.GlobalsView
listen to Program.GlobalDiscovered
and when the event is received, it should invalidate its model and invalidate its client rectangle. GlobalsView.OnPaint
method should check for an invalidated model and recreate it before painting.This needs to be expanded to handle x86 segmented binaries. In that case the "Globals" node is specific to each x86 segment.
We have a "Procedures" tab now. Perhaps it is time to create a related "Global data" tab?
Nice idea!
It would be nice to view decompiled global variables in Reko GUI