binaryninja-api icon indicating copy to clipboard operation
binaryninja-api copied to clipboard

Display placement information in "Variable" pane

Open whitequark opened this issue 7 months ago • 2 comments

What is the feature you'd like to have?

"Display variable types at top of function" mostly just introduces noise due to sheer amount of nearly-identical, mostly-information-free variables that interfere with browsing the linear view. For me it is useful almost exclusively for one thing: to find out where, exactly, a variable (often, a named argument) is allocated.

Toggling the former feature via the menu is pretty annoying. This information feels like a perfect fit for the Variables pane, and would make it a lot more useful as well.

Image

whitequark avatar Apr 20 '25 14:04 whitequark

Perhaps a tooltip would be acceptable?

plafosse avatar May 27 '25 14:05 plafosse

A tooltip would be an improvement, but is there a reason not to add this information permanently? It's essential to correlating variable names to assembly and stack layout, and is not easily accessible otherwise.

whitequark avatar May 27 '25 14:05 whitequark

Added in versions >= 5.1.7872. Setting to show variable placement info is available in the settings or from the hamburger menu added to the top right of the variable list.

spoonmilk avatar Jul 08 '25 18:07 spoonmilk

Brilliant, really excited to try it out :D

whitequark avatar Jul 08 '25 19:07 whitequark

I'm on 5.1.7873-test and I don't see the hamburger menu, where is it?

whitequark avatar Jul 08 '25 19:07 whitequark

You'll want to grab a dev build of 7872 or newer.

While the test build has a higher build number, it does not contain all of the changes from a dev build with a lower number. This is because test builds are built from branches prior to being merged into dev. The branch point of the test branch could be from earlier in the day or even the prior day.

You should typically only use test builds for testing functionality that is being added in that specific test build. For anything else you should prefer dev.

bdash avatar Jul 08 '25 19:07 bdash

Thanks, works perfecty!

whitequark avatar Jul 08 '25 20:07 whitequark