mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[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:
parent
a7e9463dc4
commit
2c20c3ba85
@ -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 ®Name ) :
|
|||||||
|
|
||||||
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 );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user