Revision: 929 Author: teawater Date: Wed Feb 22 06:15:39 2012 Log: Adding hotcode http://code.google.com/p/kgtp/source/detail?r=929 Modified: /branches/hotcode/hotcode.py ======================================= --- /branches/hotcode/hotcode.py Wed Feb 22 05:26:42 2012 +++ /branches/hotcode/hotcode.py Wed Feb 22 06:15:39 2012 @@ -72,6 +72,7 @@ print "User hotcode:" for c in dict_sort(task_list[pid][3]): print c[0], "\t\t", c[1] + print gdb.execute("set target-async on", True, False) gdb.execute("set pagination off", True, False) @@ -250,16 +251,10 @@ if filename_offset > 0: function += sym[filename_offset:] task_list_add_function(is_user, pid, function) - error_again = 0 - pack_num += 1 except gdb.error, x: print("Drop one entry because", x) - error_again += 1 - print error_again, pack_num except gdb.MemoryError, x: print("Drop one entry because", x) - error_again += 1 - print error_again, pack_num try: gdb.execute("tfind 1", False, True) except: