30 #if !defined(_SRecordSourceFile_h_) 31 #define _SRecordSourceFile_h_ 33 #include "SourceFile.h" 34 #include "StSRecordFile.h" 35 #include "StExecutableImage.h" 72 virtual bool supportsNamedSections()
const {
return false; }
73 virtual bool supportsNamedSymbols()
const {
return false; }
104 #endif // _SRecordSourceFile_h_ Definition: apps/elftosb/common/StSRecordFile.h:44
Definition: BlfwkErrors.h:16
StSRecordFile * m_file
S-record parser instance.
Definition: src/blfwk/SRecordSourceFile.h:92
virtual bool hasEntryPoint()
Returns true if an entry point was set in the file.
Definition: src/blfwk/src/SRecordSourceFile.cpp:97
static bool isSRecordFile(std::istream &stream)
Test whether the stream contains a valid S-record file.
Definition: src/blfwk/src/SRecordSourceFile.cpp:53
StExecutableImage * m_image
Memory image of the S-record file.
Definition: src/blfwk/SRecordSourceFile.h:93
void buildMemoryImage()
Build memory image of the S-record file.
Definition: src/blfwk/src/SRecordSourceFile.cpp:130
S-record parser.
Definition: apps/elftosb/common/StSRecordFile.h:38
virtual ~SRecordSourceFile()
Destructor.
Definition: src/blfwk/SRecordSourceFile.h:57
Used to build a representation of memory regions.
Definition: apps/elftosb/common/StExecutableImage.h:27
Abstract base class for a source file containing executable code.
Definition: src/blfwk/SourceFile.h:56
virtual DataSource * createDataSource()
Returns data source for the entire file.
Definition: src/blfwk/src/SRecordSourceFile.cpp:89
Executable file in the Motorola S-record format.
Definition: src/blfwk/SRecordSourceFile.h:50
virtual void open()
Opens the file.
Definition: src/blfwk/src/SRecordSourceFile.cpp:59
bool m_hasEntryRecord
Whether an S7,8,9 record was found.
Definition: src/blfwk/SRecordSourceFile.h:94
virtual uint32_t getEntryPointAddress()
Returns the entry point address.
Definition: src/blfwk/src/SRecordSourceFile.cpp:108
virtual void close()
Closes the file.
Definition: src/blfwk/src/SRecordSourceFile.cpp:76
SRecordSourceFile(const std::string &path)
Default constructor.
Definition: src/blfwk/src/SRecordSourceFile.cpp:46
Abstract base class for data sources.
Definition: src/blfwk/DataSource.h:56
StSRecordFile::SRecord m_entryRecord
Record for the entry point.
Definition: src/blfwk/SRecordSourceFile.h:95