[~] getProcessorType

[~] remove debug print, correct struct size

git-svn-id: https://pykd.svn.codeplex.com/svn@70204 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\EreTIk_cp 2011-10-04 12:37:25 +00:00
parent 37ce97f561
commit d7cbbd016a
3 changed files with 6 additions and 12 deletions

View File

@ -213,6 +213,8 @@ BOOST_PYTHON_MODULE( pykd )
"Return current processor mode as string: X86, ARM, IA64 or X64" ); "Return current processor mode as string: X86, ARM, IA64 or X64" );
boost::python::def( "setProcessorMode", &setProcessorMode, boost::python::def( "setProcessorMode", &setProcessorMode,
"Set current processor mode by string (X86, ARM, IA64 or X64)" ); "Set current processor mode by string (X86, ARM, IA64 or X64)" );
boost::python::def( "getProcessorType", &getProcessorType,
"Return type of physical processor: X86, ARM, IA64 or X64" );
boost::python::def( "addSynSymbol", &addSyntheticSymbol, boost::python::def( "addSynSymbol", &addSyntheticSymbol,
"Add new synthetic symbol for virtual address" ); "Add new synthetic symbol for virtual address" );
boost::python::def( "delAllSynSymbols", &delAllSyntheticSymbols, boost::python::def( "delAllSynSymbols", &delAllSyntheticSymbols,

View File

@ -10,16 +10,10 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "targetapp", "test\targetapp
EndProject EndProject
Global Global
GlobalSection(TeamFoundationVersionControl) = preSolution GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 3 SccNumberOfProjects = 1
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C} SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = https://tfs.codeplex.com/tfs/TFS08 SccTeamFoundationServer = https://tfs.codeplex.com/tfs/TFS08
SccLocalPath0 = . SccLocalPath0 = .
SccProjectUniqueName1 = pykd\\pykd_2008.vcproj
SccProjectName1 = pykd
SccLocalPath1 = pykd
SccProjectUniqueName2 = test\\targetapp\\targetapp.vcproj
SccProjectName2 = test/targetapp
SccLocalPath2 = test\\targetapp
EndGlobalSection EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32 Debug|Win32 = Debug|Win32

View File

@ -53,8 +53,6 @@ def PrintPortMesage(messageAddr, printFormat="b", use32=False):
clientIdType.append(dynPtr, "UniqueProcess") clientIdType.append(dynPtr, "UniqueProcess")
clientIdType.append(dynPtr, "UniqueThread") clientIdType.append(dynPtr, "UniqueThread")
print clientIdType
portMsgType = typeInfo("portmsg~_PORT_MESSAGE") portMsgType = typeInfo("portmsg~_PORT_MESSAGE")
portMsgType.append(ushort_t, "DataLength") portMsgType.append(ushort_t, "DataLength")
portMsgType.append(ushort_t, "TotalLength") portMsgType.append(ushort_t, "TotalLength")
@ -62,7 +60,7 @@ def PrintPortMesage(messageAddr, printFormat="b", use32=False):
portMsgType.append(ushort_t, "DataInfoOffset") portMsgType.append(ushort_t, "DataInfoOffset")
portMsgType.append(clientIdType, "ClientId") portMsgType.append(clientIdType, "ClientId")
portMsgType.append(ulong_t, "MessageId") portMsgType.append(ulong_t, "MessageId")
portMsgType.append(ulong_t, "CallbackId") portMsgType.append(ulonglong_t, "ClientViewSize")
return portMsgType return portMsgType
def buildPortMessage32Type(): def buildPortMessage32Type():
@ -78,7 +76,7 @@ def PrintPortMesage(messageAddr, printFormat="b", use32=False):
portMsgType.append(ushort_t, "DataInfoOffset") portMsgType.append(ushort_t, "DataInfoOffset")
portMsgType.append(clientIdType, "ClientId") portMsgType.append(clientIdType, "ClientId")
portMsgType.append(ulong_t, "MessageId") portMsgType.append(ulong_t, "MessageId")
portMsgType.append(ulong_t, "CallbackId") portMsgType.append(ulong_t, "ClientViewSize")
return portMsgType return portMsgType
@ -109,7 +107,7 @@ def PrintPortMesage(messageAddr, printFormat="b", use32=False):
else: else:
procFindStr = "%d(0x%x)" % (messageHeader.ClientId.UniqueProcess, messageHeader.ClientId.UniqueProcess) procFindStr = "%d(0x%x)" % (messageHeader.ClientId.UniqueProcess, messageHeader.ClientId.UniqueProcess)
dprintln( "Client ID : process= " + procFindStr + ", thread= %d(0x%x)" % (messageHeader.ClientId.UniqueThread, messageHeader.ClientId.UniqueThread), isKernelDebugging()) dprintln( "Client ID : process= " + procFindStr + ", thread= %d(0x%x)" % (messageHeader.ClientId.UniqueThread, messageHeader.ClientId.UniqueThread), isKernelDebugging())
dprintln( "View/Callback : %d (0x%x)" % (messageHeader.CallbackId, messageHeader.CallbackId) ) dprintln( "View/Callback : %d (0x%x)" % (messageHeader.ClientViewSize, messageHeader.ClientViewSize) )
if (printFormat not in DispFormatsLength): if (printFormat not in DispFormatsLength):
dprintln( "WARRING: Unknown (" + printFormat + ") diplay fromat. Use \"b\"" ) dprintln( "WARRING: Unknown (" + printFormat + ") diplay fromat. Use \"b\"" )
printFormat = "b" printFormat = "b"