Details
- Reviewers
aprantl JDevlieghere
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lldb/include/lldb/Symbol/ObjectFile.h | ||
---|---|---|
676 | Can you add a doxygen comment for the method? | |
677 | Should we call it GetCStringFromSection, or even better ReadCStringFromSection? | |
lldb/source/Symbol/ObjectFile.cpp | ||
558 | The fact that it's a C string seems to be not relevant to the function. It seems to just convert a file address to a load address? |
I don't think this implementation is sound. If you look at the implementation of ReadSectionData you'll see that there is a lot more involved in reading data from a section than just incrementing a pointer.
lldb/source/Symbol/ObjectFile.cpp | ||
---|---|---|
559 | Wouldn't it be better to use section->GetFileOffset() to access m_data? As this object contains data loaded from the file. |
Can you add a doxygen comment for the method?