diff --git a/pykd/dbgext.cpp b/pykd/dbgext.cpp index 42a9658..bbe2732 100644 --- a/pykd/dbgext.cpp +++ b/pykd/dbgext.cpp @@ -213,6 +213,8 @@ BOOST_PYTHON_MODULE( pykd ) "Return current processor mode as string: X86, ARM, IA64 or X64" ); boost::python::def( "setProcessorMode", &setProcessorMode, "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, "Add new synthetic symbol for virtual address" ); boost::python::def( "delAllSynSymbols", &delAllSyntheticSymbols, diff --git a/pykd_2008.sln b/pykd_2008.sln index e339971..cd63036 100644 --- a/pykd_2008.sln +++ b/pykd_2008.sln @@ -10,16 +10,10 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "targetapp", "test\targetapp EndProject Global GlobalSection(TeamFoundationVersionControl) = preSolution - SccNumberOfProjects = 3 + SccNumberOfProjects = 1 SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C} SccTeamFoundationServer = https://tfs.codeplex.com/tfs/TFS08 SccLocalPath0 = . - SccProjectUniqueName1 = pykd\\pykd_2008.vcproj - SccProjectName1 = pykd - SccLocalPath1 = pykd - SccProjectUniqueName2 = test\\targetapp\\targetapp.vcproj - SccProjectName2 = test/targetapp - SccLocalPath2 = test\\targetapp EndGlobalSection GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 diff --git a/samples/portmsg.py b/samples/portmsg.py index 7f4ce83..591a946 100644 --- a/samples/portmsg.py +++ b/samples/portmsg.py @@ -53,8 +53,6 @@ def PrintPortMesage(messageAddr, printFormat="b", use32=False): clientIdType.append(dynPtr, "UniqueProcess") clientIdType.append(dynPtr, "UniqueThread") - print clientIdType - portMsgType = typeInfo("portmsg~_PORT_MESSAGE") portMsgType.append(ushort_t, "DataLength") portMsgType.append(ushort_t, "TotalLength") @@ -62,7 +60,7 @@ def PrintPortMesage(messageAddr, printFormat="b", use32=False): portMsgType.append(ushort_t, "DataInfoOffset") portMsgType.append(clientIdType, "ClientId") portMsgType.append(ulong_t, "MessageId") - portMsgType.append(ulong_t, "CallbackId") + portMsgType.append(ulonglong_t, "ClientViewSize") return portMsgType def buildPortMessage32Type(): @@ -78,7 +76,7 @@ def PrintPortMesage(messageAddr, printFormat="b", use32=False): portMsgType.append(ushort_t, "DataInfoOffset") portMsgType.append(clientIdType, "ClientId") portMsgType.append(ulong_t, "MessageId") - portMsgType.append(ulong_t, "CallbackId") + portMsgType.append(ulong_t, "ClientViewSize") return portMsgType @@ -109,7 +107,7 @@ def PrintPortMesage(messageAddr, printFormat="b", use32=False): else: 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( "View/Callback : %d (0x%x)" % (messageHeader.CallbackId, messageHeader.CallbackId) ) + dprintln( "View/Callback : %d (0x%x)" % (messageHeader.ClientViewSize, messageHeader.ClientViewSize) ) if (printFormat not in DispFormatsLength): dprintln( "WARRING: Unknown (" + printFormat + ") diplay fromat. Use \"b\"" ) printFormat = "b"