diff options
author | Enrico Granata <egranata@apple.com> | 2014-09-11 23:09:55 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2014-09-11 23:09:55 +0000 |
commit | 13460a59fd354beff0aee560bb465654851cbe17 (patch) | |
tree | 99d5c7ab2b6912132bb3bdc52b40eda57f23ee39 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp | |
parent | 6f8525d8a6c650d6dd75c029f731e72a916bdbb4 (diff) | |
download | llvm-13460a59fd354beff0aee560bb465654851cbe17.zip llvm-13460a59fd354beff0aee560bb465654851cbe17.tar.gz llvm-13460a59fd354beff0aee560bb465654851cbe17.tar.bz2 |
Add a ProcessStructReader utility class to LLDB
The purpose of a ProcessStructReader is to allow intelligent reading of data from the underlying process
Traditionally, the way this has been handled is to have a load_address and shuffle it around, and use Process::ReadMemory()-kind APIs
With a ProcessStructReader one can define a clang type that matches exactly the definition of the thing they are trying to ingest from the inferior process, and then just point LLDB at where the data is
Since this work is done in terms of clang types, one can honor packed/aligned attributes, sizes of types on the inferior architecture, and similar tricky caveats without having to hardcode them
llvm-svn: 217644
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp')
0 files changed, 0 insertions, 0 deletions