class NoteReader
Defined at line 46 of file ../../third_party/crashpad/src/snapshot/elf/elf_image_reader.h
This class enables reading note segments from an ELF image.
Objects of this class should be created by calling
ElfImageReader::Notes() or ElfImageReader::NotesWithNameAndType().
Public Methods
void NoteReader (const NoteReader & )
Defined at line 48 of file ../../third_party/crashpad/src/snapshot/elf/elf_image_reader.h
NoteReader & operator= (const NoteReader & )
Defined at line 49 of file ../../third_party/crashpad/src/snapshot/elf/elf_image_reader.h
void ~NoteReader ()
Result NextNote (std::string * name, NoteType * type, std::string * desc, VMAddress * desc_addr)
Searches for the next note in the image.
Parameters
name [out] The name of the note owner, if not `nullptr`.
type [out] A type for the note, if not `nullptr`.
desc [out] The note descriptor.
desc_addr [out] The address in the remote process' address space was read from.
Returns
a #Result value.
and
are
only valid if this method returns Result::kSuccess.
void NoteReader (const ElfImageReader * elf_reader_, const ProcessMemoryRange * range, const ProgramHeaderTable * phdr_table, size_t max_note_size, const std::string & name_filter, NoteType type_filter, bool use_filter)
private
Enumerations
enum Result
| Name | Value |
|---|---|
| kError | 0 |
| kSuccess | 1 |
| kNoMoreNotes | 2 |
The return value for NextNote().
Defined at line 54 of file ../../third_party/crashpad/src/snapshot/elf/elf_image_reader.h