Commit ba832699 authored by ussrhero's avatar ussrhero
Browse files

Merge branch 'fix_typo' into 'dev-1.0'

fix typo

See merge request kdlibcpp/kdlibcpp!23
parents e9c27b1d bbc81853
......@@ -120,7 +120,7 @@ enum BasicTypes
////////////////////////////////////////////////////////////////////////////////
enum RegRealativeIds
enum RegRelativeIds
{
rriInstructionPointer,
rriStackFrame,
......@@ -205,7 +205,7 @@ public:
virtual bool isVirtualBaseClass() = 0;
virtual bool isVirtual() = 0;
virtual unsigned long getRegisterId() = 0;
virtual unsigned long getRegRealativeId() = 0; // <- RegRealativeId
virtual unsigned long getRegRelativeId() = 0; // <- RegRelativeId
virtual SymbolPtr getObjectPointerType() = 0; // "this" for method
virtual unsigned long getCallingConvention() = 0; // <- CallingConventionType
virtual SymbolPtr getClassParent() = 0; // "this" for method
......
......@@ -505,7 +505,7 @@ public:
NOT_IMPLEMENTED();
}
virtual ULONG getRegRealativeId()
virtual ULONG getRegRelativeId()
{
NOT_IMPLEMENTED();
}
......
......@@ -425,18 +425,18 @@ ULONG DiaSymbol::getRegisterId()
////////////////////////////////////////////////////////////////////////////////
unsigned long DiaSymbol::getRegRealativeId()
unsigned long DiaSymbol::getRegRelativeId()
{
switch (m_machineType)
{
case IMAGE_FILE_MACHINE_AMD64:
return getRegRealativeIdImpl(g_DiaRegToRegRelativeAmd64);
return getRegRelativeIdImpl(g_DiaRegToRegRelativeAmd64);
case IMAGE_FILE_MACHINE_I386:
return getRegRealativeIdImpl(g_DiaRegToRegRelativeI386);
return getRegRelativeIdImpl(g_DiaRegToRegRelativeI386);
case IMAGE_FILE_MACHINE_ARM64:
return getRegRealativeIdImpl(g_DiaRegToRegRelativeArm64);
return getRegRelativeIdImpl(g_DiaRegToRegRelativeArm64);
case IMAGE_FILE_MACHINE_ARMNT:
return getRegRealativeIdImpl(g_DiaRegToRegRelativeArm);
return getRegRelativeIdImpl(g_DiaRegToRegRelativeArm);
}
throw DiaException(L"Unsupported machine type");
}
......@@ -467,7 +467,7 @@ SymbolPtr DiaSymbol::getClassParent()
////////////////////////////////////////////////////////////////////////////////
ULONG DiaSymbol::getRegRealativeIdImpl(const DiaRegToRegRelativeBase &DiaRegToRegRelative)
ULONG DiaSymbol::getRegRelativeIdImpl(const DiaRegToRegRelativeBase &DiaRegToRegRelative)
{
const DWORD registerId = callSymbol(get_registerId);
DiaRegToRegRelativeBase::const_iterator it = DiaRegToRegRelative.find(registerId);
......
......@@ -110,7 +110,7 @@ public:
ULONG getRegisterId() override;
unsigned long getRegRealativeId() override;
unsigned long getRegRelativeId() override;
SymbolPtr getObjectPointerType() override;
......@@ -161,7 +161,7 @@ public:
protected:
ULONG getRegRealativeIdImpl(const DiaRegToRegRelativeBase &DiaRegToRegRelative);
ULONG getRegRelativeIdImpl(const DiaRegToRegRelativeBase &DiaRegToRegRelative);
bool isUndecorated(const std::wstring &undecName);
......
......@@ -228,7 +228,7 @@ class ExportSymbolBase : public Symbol
NOT_IMPLEMENTED();
}
virtual ULONG getRegRealativeId()
virtual ULONG getRegRelativeId()
{
NOT_IMPLEMENTED();
}
......
......@@ -113,7 +113,7 @@ TypedVarPtr StackFrameImpl::getTypedParam(unsigned long index)
{
MEMOFFSET_REL relOffset = sym->getOffset();
RELREG_ID regRel = sym->getRegRealativeId();
RELREG_ID regRel = sym->getRegRelativeId();
MEMOFFSET_64 offset = getOffset(regRel, relOffset);
......@@ -167,7 +167,7 @@ TypedVarPtr StackFrameImpl::getTypedParam(const std::wstring& paramName)
{
MEMOFFSET_REL relOffset = sym->getOffset();
RELREG_ID regRel = sym->getRegRealativeId();
RELREG_ID regRel = sym->getRegRelativeId();
MEMOFFSET_64 offset = getOffset(regRel, relOffset);
......@@ -246,7 +246,7 @@ TypedVarPtr StackFrameImpl::getLocalVar(unsigned long index)
{
MEMOFFSET_REL relOffset = sym->getOffset();
RELREG_ID regRel = sym->getRegRealativeId();
RELREG_ID regRel = sym->getRegRelativeId();
MEMOFFSET_64 offset = getOffset(regRel, relOffset);
......@@ -300,7 +300,7 @@ TypedVarPtr StackFrameImpl::getLocalVar(const std::wstring& paramName)
{
MEMOFFSET_REL relOffset = sym->getOffset();
RELREG_ID regRel = sym->getRegRealativeId();
RELREG_ID regRel = sym->getRegRelativeId();
MEMOFFSET_64 offset = getOffset(regRel, relOffset);
......
......@@ -1889,7 +1889,7 @@ RELREG_ID SymbolFunction::getElementOffsetRelativeReg(size_t index )
{
SymbolPtr paramSym = getChildSymbol(index);
return paramSym->getRegRealativeId();
return paramSym->getRegRelativeId();
}
///////////////////////////////////////////////////////////////////////////////
......@@ -1927,7 +1927,7 @@ RELREG_ID SymbolFunction::getElementOffsetRelativeReg(const std::wstring& paramN
{
SymbolPtr paramSym = m_symbol->getChildByName(paramName);
return paramSym->getRegRealativeId();
return paramSym->getRegRelativeId();
}
///////////////////////////////////////////////////////////////////////////////
......@@ -1982,7 +1982,7 @@ unsigned long SymbolFunction::getElementReg(const std::wstring& fieldName)
{
SymbolPtr paramSym = m_symbol->getChildByName(fieldName);
return paramSym->getRegRealativeId();
return paramSym->getRegRelativeId();
}
///////////////////////////////////////////////////////////////////////////////
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment