[Lldb-commits] [lldb] [llvm] [Obj2Yaml] Add support for minidump generation with 64b memory ranges. (PR #101272)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 31 02:06:40 PDT 2024
================
@@ -550,7 +588,7 @@ Stream::create(const Directory &StreamDesc, const object::MinidumpFile &File) {
llvm_unreachable("Unhandled stream kind!");
}
-Expected<Object> Object::create(const object::MinidumpFile &File) {
+Expected<Object> Object::create(object::MinidumpFile &File) {
----------------
labath wrote:
Yeah, this doesn't seem completely ideal. Looking at the code, it looks like the only place where you're accessing these, is when you're iterating over them anyway, so maybe some sort of an iterator would be in order?
It could store the current offset in its state without modifying the underlying container. And perhaps its value_type could be `std::pair<MemoryDescriptor_64, ArrayRef<uint8_t>>` ? It might also need to be an `llvm::fallible_iterator` so it can report errors it encounters mid-flight.
https://github.com/llvm/llvm-project/pull/101272
More information about the lldb-commits
mailing list