URL
https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk
Subversion Repositories riscv_vhdl
[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [common/] [coreservices/] [ielfreader.h] - Rev 4
Compare with Previous | Blame | View Log
/** * @file * @copyright Copyright 2016 GNSS Sensor Ltd. All right reserved. * @author Sergey Khabarov - sergeykhbr@gmail.com * @brief Interface of elf-file reader. */ #ifndef __DEBUGGER_ELFREADER_H__ #define __DEBUGGER_ELFREADER_H__ #include <stdint.h> #include <iface.h> #include <attribute.h> namespace debugger { static const char *const IFACE_ELFREADER = "IElfReader"; class IElfReader : public IFace { public: IElfReader() : IFace(IFACE_ELFREADER) {} virtual int readFile(const char *filename) = 0; virtual unsigned loadableSectionTotal() = 0; virtual const char *sectionName(unsigned idx) = 0; virtual uint64_t sectionAddress(unsigned idx) = 0; virtual uint64_t sectionSize(unsigned idx) = 0; virtual uint8_t *sectionData(unsigned idx) = 0; }; } // namespace debugger #endif // __DEBUGGER_ELFREADER_H__