ssbssa / heob

Detects buffer overruns and memory leaks.
Boost Software License 1.0
156 stars 25 forks source link

support Stack walk with function with FPO #18

Closed isugarhome closed 4 years ago

isugarhome commented 4 years ago

do you have plan to support Stack walk with FPO(Frame Pointer optimization) function,

ssbssa commented 4 years ago

I suppose you mean for 32bit, because for 64bit it shouldn't matter if FPO is enabled or not.

The problem is, to get correct stacktraces with FPO for 32bit, you would have to use the debug information as well, because it should contain the frame location of the current IP. It's possible to do, but as a result the program gets a LOT slower.

Nowadays most programs are 64bit (or at least they should be), and for 32bit you can still disable FPO as you said, thus I saw no real gain to implement that.