From 2c20c3ba85ead5191ed52e437fb6b4bd377b438a Mon Sep 17 00:00:00 2001 From: "SND\\kernelnet_cp" <SND\kernelnet_cp@9b283d60-5439-405e-af05-b73fd8c4d996> Date: Mon, 4 Jun 2012 16:17:47 +0000 Subject: [PATCH] [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 --- pykd/cpureg.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pykd/cpureg.cpp b/pykd/cpureg.cpp index e89a080..ccacd56 100644 --- a/pykd/cpureg.cpp +++ b/pykd/cpureg.cpp @@ -1,5 +1,7 @@ #include "stdafx.h" +#include <boost\algorithm\string\case_conv.hpp> + #include "cpureg.h" #include "dbgclient.h" @@ -14,7 +16,7 @@ CpuReg::CpuReg( IDebugClient4 *client, const std::string ®Name ) : 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 ) ) throw DbgException( "IDebugRegister::GetIndexByName", hres );