[0.1.x] fixed : issue #10852 ( reg("REGISTER_NAME") raises exception if a register name is upcased )

git-svn-id: https://pykd.svn.codeplex.com/svn@76944 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2012-06-04 16:17:47 +00:00 committed by Mikhail I. Izmestev
parent a7e9463dc4
commit 2c20c3ba85

View File

@ -1,5 +1,7 @@
#include "stdafx.h" #include "stdafx.h"
#include <boost\algorithm\string\case_conv.hpp>
#include "cpureg.h" #include "cpureg.h"
#include "dbgclient.h" #include "dbgclient.h"
@ -14,7 +16,7 @@ CpuReg::CpuReg( IDebugClient4 *client, const std::string &regName ) :
m_name = regName; m_name = regName;
hres = m_registers->GetIndexByName( m_name.c_str(), &m_index ); hres = m_registers->GetIndexByName( boost::to_lower_copy(m_name).c_str(), &m_index );
if ( FAILED( hres ) ) if ( FAILED( hres ) )
throw DbgException( "IDebugRegister::GetIndexByName", hres ); throw DbgException( "IDebugRegister::GetIndexByName", hres );