[lldb-dev] Accessing DWARF information from C++
Greg Clayton via lldb-dev
lldb-dev at lists.llvm.org
Tue Nov 3 12:14:51 PST 2015
> On Oct 30, 2015, at 3:35 AM, Stefan Kratochwil via lldb-dev <lldb-dev at lists.llvm.org> wrote:
> Hi Greg,
> thanks for your reply.
> I am developing a dynamic software updating tool for dynamically linked C libraries (in short: I want to patch dynamic libraries in-memory).
> My goal is to achieve that without any code instrumentation. The main problem is the state transformation between the old and the new version - here I need as much type (and location) information as possible.
> I am currently unaware of what types of information I _really_ need, so for now, getting as much information as possible is my way to go. I guess that the most important types of information will be:
> - size of primitives
> - size of pointers
> - type hierarchies and
> - the in memory-structure of compound data types
> At the moment I am concentrating on the Linux / UNIX domain, so DWARF is my preferred format.
This is all available through the LLDB API, so I would suggest using LLDB and its debug info agnostic APIs. Let me know if you need to know how to find certain kinds of information from our API and I can help get you up and running.
More information about the lldb-dev