LLNL / CcNav

CcNav is a web-based tool for visualizing compiler optimizations in binaries.
MIT License
2 stars 1 forks source link

Variable Renamer not working #5

Open Prapti-044 opened 2 years ago

Prapti-044 commented 2 years ago

The variable renamer seems to take the 64-bit addresses. But, the assembly code shows the addresses in 32-bit. I think the expected behavior is to rename the addresses of assembly by the corresponding variable names. A demo picture is given below:

image

mplegendre commented 2 years ago

The best solution is probably to convert the offsets in the assembly view and the variable renamer into signed decimal formats. That would also make it easier for users to read. But the assembly view offsets come out of Dyninst as hex view strings. So we'd either have to do some string formatting work, or modify Dyninst.

The easier solution would be to convert offsets to 32-bits in the variable renamer. That shouldn't be difficult, but isn't as great as an end solution.