Skip to content

Commit

Permalink
libraries: libcore[coredumpread]
Browse files Browse the repository at this point in the history
  • Loading branch information
krishpranav committed Sep 30, 2023
1 parent fad02d1 commit 2ff4976
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions libraries/libcoredump/coredumpread.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,35 @@ class CoreDumpRead
Optional<uint32_t> peek_memory(FlatPtr address) const;

private:

class NotesEntryIterator
{
public:
/**
* @param notes_data
*/
NotesEntryIterator(const u8* notes_data);

/**
* @return ELF::Core::NotesEntryHeader::Type
*/
ELF::Core::NotesEntryHeader::Type type() const;

/**
* @return const ELF::Core::NotesEntry*
*/
const ELF::Core::NotesEntry* current() const;

void next();

bool at_end() const;

private:
const ELF::Core::NotesEntry* m_current { nullptr };
const u8* start { nullptr };
}; // class NotesEntryIterator


OwnPtr<MappedFile> m_coredump_file;
ELF::Image m_coredump_image;
ssize_t m_notes_segment_index { -1 };
Expand Down

0 comments on commit 2ff4976

Please sign in to comment.