I want to debug Clang plugin.
However, I can’t find informations about debugging of Clang plugin.
If you know how to debug Clang plugin, Could you tell me that information?
thanks.
I want to debug Clang plugin. However, I can’t find informations about debugging of
Share
Just a small outline as i’m trying this myself atm. I am using lldb.
I am currently able to stop at any given function in the plugin but the source code is missing. It only shows the assembly.
When you invoke
clangwith-Xclang -plugin (...)it will fork into a child process. When invoking your plugin pass also the-voption to see the child process command line. Then use this command line in the debugger.Original command line:
should output:
This is the part you need:
Now you invoke lldb with:
And then in the lldb prompt you do
And that should work.