[Lldb-commits] [PATCH] D58972: Introduce the "Formats" module and move LinuxProcMaps parser to it

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 5 08:20:23 PST 2019


labath created this revision.
labath added reviewers: zturner, jingham, JDevlieghere, clayborg, teemperor.
Herald added subscribers: arphaman, aprantl, mgorny.

This patch introduces a "Formats" library, whose goal is to contain
serialization and deserialization code for various textual and binary
formats that lldb needs to work with. The motivation is to enable
building various tools on top of this, which do not need to depend on
the entire lldb codebase. (I have written a slightly more elaborate
version of this is given in the lldb architecture docs, which I update
to mention the new library).

LinuxProcMaps is just the beginning here. As the next immediate step I
plan to move the Minidump parsing code (currently burried in
source/Plugins/Process/minidump) here as well, but in the future I think
this library could contain the gdb-remote protocol code (currently in
source/Plugins/Process/gdb-remote) and the debug info protocol code
(currently in Zach's head).


https://reviews.llvm.org/D58972

Files:
  docs/use/architecture.rst
  include/lldb/Formats/LinuxProcMaps.h
  include/lldb/module.modulemap
  source/CMakeLists.txt
  source/Formats/CMakeLists.txt
  source/Formats/LinuxProcMaps.cpp
  source/Plugins/Process/Linux/CMakeLists.txt
  source/Plugins/Process/Linux/NativeProcessLinux.cpp
  source/Plugins/Process/Utility/CMakeLists.txt
  source/Plugins/Process/Utility/LinuxProcMaps.cpp
  source/Plugins/Process/Utility/LinuxProcMaps.h
  source/Plugins/Process/minidump/CMakeLists.txt
  source/Plugins/Process/minidump/MinidumpParser.cpp
  unittests/CMakeLists.txt
  unittests/Formats/CMakeLists.txt
  unittests/Formats/LinuxProcMapsTest.cpp
  www/architecture/index.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58972.189330.patch
Type: text/x-patch
Size: 10328 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190305/4a354381/attachment.bin>


More information about the lldb-commits mailing list