[Lldb-commits] [PATCH] D128069: [lldb] add SBSection.alignment to python bindings

David M. Lary via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 22 10:11:42 PDT 2022


dmlary added a comment.

> We should test any APIs we add in a python test IMHO.  Also testing that the ".alignment" property works

Ok, I'll add tests for the added python function and property.

Now for the hard part, what's the recommended way to access elf section details within python without using the function added in this commit?  I do not think it is safe to hard code the expected alignment in the test case as the default alignment may vary across architectures.  Shelling out to `readelf` and parsing is possible, but feels clunky; is there an existing function to get this data?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D128069



More information about the lldb-commits mailing list