sys icon indicating copy to clipboard operation
sys copied to clipboard

Map LLVM bug paths back to source

Open deian opened this issue 5 years ago • 1 comments

deian avatar Aug 12 '20 03:08 deian

I will look into it when I have time:

This could be helpful: github.com/avast/retdec

Or

https://llvm.org/docs/SourceLevelDebugging.html

@deian and others: have you make some thoughts how to achieve llvm mapping to code?

For both I can assume you have to disable compiler optimizations and for second compile with debug symbols (-g). Llvm seems to store this info in ll file (debug metadata with lines & column info). Still digesting how to get the corresponsing code source locations.

I can assume you can get last path item from bug path and point to code?

marcinguy avatar Apr 04 '21 13:04 marcinguy