debugging LLVM IR with LLDB -


i've developed llvm front-end generating llvm ir target code source-language x. if extend front-end embed debug information within generated ir, possible use lldb debugging source-language? mean lldb support any source-language targeting llvm ir?

you'll have dwarf language code , lldb recognize it. if dwarf unknown language, we'll ignore it...

then no more support, things work, others won't.

if emit correct line table information, should able map source, , should stepping working well. other things start getting hard.

the next hard part how going tell lldb type information. lldb uses clang's ast's internal storage type information in debugger. lldb translates dwarf type information clang ast's both printing local variables (with frame variable command) , use expression parser.

if language has type system looks kinda c lldb should able parse dwarf types. you'll plus correct variable information should frame variable working.

the expression parser (i.e. expression, print or po commands) requires lldb have parser language. can pretty big chunk of work.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -