OpenCores
URL https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [common/] [coreservices/] [ielfreader.h] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 sergeykhbr
/**
2
 * @file
3
 * @copyright  Copyright 2016 GNSS Sensor Ltd. All right reserved.
4
 * @author     Sergey Khabarov - sergeykhbr@gmail.com
5
 * @brief      Interface of elf-file reader.
6
 */
7
 
8
#ifndef __DEBUGGER_ELFREADER_H__
9
#define __DEBUGGER_ELFREADER_H__
10
 
11
#include <stdint.h>
12
#include <iface.h>
13
#include <attribute.h>
14
 
15
namespace debugger {
16
 
17
static const char *const IFACE_ELFREADER = "IElfReader";
18
 
19
class IElfReader : public IFace {
20
 public:
21
    IElfReader() : IFace(IFACE_ELFREADER) {}
22
 
23
    virtual int readFile(const char *filename) = 0;
24
 
25
    virtual unsigned loadableSectionTotal() = 0;
26
 
27
    virtual const char *sectionName(unsigned idx) = 0;
28
 
29
    virtual uint64_t sectionAddress(unsigned idx) = 0;
30
 
31
    virtual uint64_t sectionSize(unsigned idx) = 0;
32
 
33
    virtual uint8_t *sectionData(unsigned idx) = 0;
34
};
35
 
36
}  // namespace debugger
37
 
38
#endif  // __DEBUGGER_ELFREADER_H__

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.