Subversion Repositories freemyipod

Rev

Rev 137 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 137 Rev 139
Line 768... Line 768...
768
      if (structver == 1):   # Process information struct version == 1
768
      if (structver == 1):   # Process information struct version == 1
769
        ptr = 0
769
        ptr = 0
770
        process_n = 0
770
        process_n = 0
771
        retval = []
771
        retval = []
772
        while ptr < len(processinfo):
772
        while ptr < len(processinfo):
773
          if struct.unpack("<I", processinfo[ptr:ptr + 4])[0] == 0: continue    # THREAD_FREE
773
          if struct.unpack("<I", processinfo[ptr + 68:ptr + 72])[0] == 0:    # THREAD_FREE
-
 
774
            ptr += 120
-
 
775
            process_n += 1
-
 
776
            continue
774
          
777
          
775
          retval.append({})
778
          retval.append({})
776
          
779
          
777
          retval[process_n]['regs'] = struct.unpack("<IIIIIIIIIIIIIIII", processinfo[ptr:ptr + 64])
780
          retval[process_n]['regs'] = struct.unpack("<IIIIIIIIIIIIIIII", processinfo[ptr:ptr + 64])
778
          ptr += 16 * 0x4
781
          ptr += 16 * 0x4