[Lldb-commits] [PATCH] D75925: [lldb] reject `.debug_arange` sections with nonzero segment size

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Mar 11 05:08:57 PDT 2020


labath added a comment.

In D75925#1915693 <https://reviews.llvm.org/D75925#1915693>, @clayborg wrote:

> Change looks good, just needs a test. Should be easy to take a simple binary that has a .debug_aranges, and run obj2yaml on it, and tweak the segment size as needed?


In this case I think the cleanest solution would be to write a c++ unit test: create a simple debug_aranges header (just hardcode bytes, nothing fancy), pass it to DWARFDebugArangesSet::extract, and check the result.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75925/new/

https://reviews.llvm.org/D75925





More information about the lldb-commits mailing list