Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
automatic LLNODE_RANGESFILE #91
Currently we do this for v8 findjsobjects to work:
It might be nice if llnode could do this automatically, even if it means llnode shelling out to call readelf and scraping the output (if that's possible in lldb).
I added the memory region API to lldb a while ago: https://reviews.llvm.org/D20565, I think it was released in lldb 3.9.
On Mac it's more complicated as Apple change the version numbers so it's hard to map the version numbers of lldb across but I have confirmed the latest lldb in Xcode has that API and updated the installation script: #79
You can tell if it's enabled and you've built against the right headers as the #ifdef at: https://github.com/nodejs/llnode/blob/master/src/llnode.cc#L316 ensures the help text explaining to use the LLNODE_RANGESFILE env var is only printed if you need to set it.