Revision: 1000 Author: teawater Date: Wed Mar 28 09:27:51 2012 Log: Fix bug of add-ons/hotcode.py when it use with user space task. http://code.google.com/p/kgtp/source/detail?r=1000 Modified: /trunk/UPDATE /trunk/add-ons/hotcode.py ======================================= --- /trunk/UPDATE Wed Mar 28 06:02:28 2012 +++ /trunk/UPDATE Wed Mar 28 09:27:51 2012 @@ -9,6 +9,8 @@ * Update the GDB in http://code.google.com/p/gdbt/ (add static binary and change the source of code) to make people use it easily. +* Fix bug of add-ons/hotcode.py when it use with user space task. + *** 20120319 * https://lkml.org/lkml/2012/3/19/210 ======================================= --- /trunk/add-ons/hotcode.py Mon Mar 19 01:02:54 2012 +++ /trunk/add-ons/hotcode.py Wed Mar 28 09:27:51 2012 @@ -578,10 +578,16 @@ task_list_add_line(is_user, pid, line) except gdb.error, x: print("Drop one entry because", x) - gdb.execute("inferior 1", False, True) + try: + gdb.execute("inferior 1", False, True) + except: + pass except gdb.MemoryError, x: print("Drop one entry because", x) - gdb.execute("inferior 1", False, True) + try: + gdb.execute("inferior 1", False, True) + except: + pass try: gdb.execute("tfind 1", False, True) except: