-
- self.hinfo['ostype'] = 'macosx'
- if self.cputype != CPU_TYPE_X86_64 and self.cputype != CPU_TYPE_I386:
+ dbg_message = "process:%s is64bit:%d ptrsize:%d cputype:0x%x cpusubtype:0x%x" % (hex(self.proc), int(dataregisters64bit), ptrsize, self.cputype, self.cpusubtype)
+ self.proc_platform = int(self.proc.p_platform)
+ if self.proc_platform == xnudefines.P_PLATFORM_MACOS:
+ self.hinfo['ostype'] = 'macosx'
+ elif self.proc_platform == xnudefines.P_PLATFORM_WATCHOS:
+ self.hinfo['ostype'] = 'watchos'
+ elif self.proc_platform == xnudefines.P_PLATFORM_TVOS:
+ self.hinfo['ostype'] = 'tvos'
+ else: