diff --git a/snapshot/mac/module_snapshot_mac.cc b/snapshot/mac/module_snapshot_mac.cc index d04c0e2e..19c4759d 100644 --- a/snapshot/mac/module_snapshot_mac.cc +++ b/snapshot/mac/module_snapshot_mac.cc @@ -187,7 +187,9 @@ std::map ModuleSnapshotMac::AnnotationsSimpleMap() std::vector ModuleSnapshotMac::AnnotationObjects() const { INITIALIZATION_STATE_DCHECK_VALID(initialized_); - return {}; + MachOImageAnnotationsReader annotations_reader( + process_reader_, mach_o_image_reader_, name_); + return annotations_reader.AnnotationsList(); } std::set> ModuleSnapshotMac::ExtraMemoryRanges() const { diff --git a/snapshot/win/module_snapshot_win.cc b/snapshot/win/module_snapshot_win.cc index c3a83fdf..8b6bb646 100644 --- a/snapshot/win/module_snapshot_win.cc +++ b/snapshot/win/module_snapshot_win.cc @@ -192,7 +192,9 @@ std::map ModuleSnapshotWin::AnnotationsSimpleMap() std::vector ModuleSnapshotWin::AnnotationObjects() const { INITIALIZATION_STATE_DCHECK_VALID(initialized_); - return {}; + PEImageAnnotationsReader annotations_reader( + process_reader_, pe_image_reader_.get(), name_); + return annotations_reader.AnnotationsList(); } std::set> ModuleSnapshotWin::ExtraMemoryRanges() const {