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

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [common/] [coreservices/] [ielfreader.h] - Diff between revs 2 and 4

Show entire file | Details | Blame | View Log

Rev 2 Rev 4
Line 7... Line 7...
 
 
#ifndef __DEBUGGER_ELFREADER_H__
#ifndef __DEBUGGER_ELFREADER_H__
#define __DEBUGGER_ELFREADER_H__
#define __DEBUGGER_ELFREADER_H__
 
 
#include <stdint.h>
#include <stdint.h>
#include "iface.h"
#include <iface.h>
#include "attribute.h"
#include <attribute.h>
 
 
namespace debugger {
namespace debugger {
 
 
static const char *const IFACE_ELFREADER = "IElfReader";
static const char *const IFACE_ELFREADER = "IElfReader";
 
 
enum ESymbolType {
 
    SYMBOL_TYPE_FILE     = 0x01,
 
    SYMBOL_TYPE_FUNCTION = 0x02,
 
    SYMBOL_TYPE_DATA     = 0x04
 
};
 
 
 
enum ESymbolInfoListItem {
 
    Symbol_Name,
 
    Symbol_Addr,
 
    Symbol_Size,
 
    Symbol_Type,
 
    Symbol_Total
 
};
 
 
 
 
 
class IElfReader : public IFace {
class IElfReader : public IFace {
public:
public:
    IElfReader() : IFace(IFACE_ELFREADER) {}
    IElfReader() : IFace(IFACE_ELFREADER) {}
 
 
    virtual int readFile(const char *filename) =0;
    virtual int readFile(const char *filename) =0;
Line 44... Line 29...
    virtual uint64_t sectionAddress(unsigned idx) =0;
    virtual uint64_t sectionAddress(unsigned idx) =0;
 
 
    virtual uint64_t sectionSize(unsigned idx) =0;
    virtual uint64_t sectionSize(unsigned idx) =0;
 
 
    virtual uint8_t *sectionData(unsigned idx) =0;
    virtual uint8_t *sectionData(unsigned idx) =0;
 
 
    virtual void getSymbols(AttributeType *list) =0;
 
 
 
    virtual void addressToSymbol(uint64_t addr, AttributeType *info) =0;
 
};
};
 
 
}  // namespace debugger
}  // namespace debugger
 
 
#endif  // __DEBUGGER_ELFREADER_H__
#endif  // __DEBUGGER_ELFREADER_H__

powered by: WebSVN 2.1.0

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