[Lldb-commits] [lldb] Read and store gnu build id from loaded core file (PR #92492)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Wed May 22 15:05:53 PDT 2024
================
@@ -570,11 +586,13 @@ static void ParseOpenBSDProcInfo(ThreadData &thread_data,
}
llvm::Expected<std::vector<CoreNote>>
-ProcessElfCore::parseSegment(const DataExtractor &segment) {
+ProcessElfCore::parseSegment(const DataExtractor &segment,
+ unsigned long segment_size) {
lldb::offset_t offset = 0;
std::vector<CoreNote> result;
-
- while (offset < segment.GetByteSize()) {
+ unsigned long note_size =
+ segment_size == 0 ? segment.GetByteSize() : segment_size;
+ while (offset < note_size) {
----------------
clayborg wrote:
revert this, we will trim the size of the data down before passing it in.
https://github.com/llvm/llvm-project/pull/92492
More information about the lldb-commits
mailing list