Пример #1
0
         if len(breakpoints) > 0:
             for i in range(len(breakpoints)):
                 print i+1, "\t", hex(breakpoints[i])
                 
         else:
             print "No breakpoints have been set yet."
 
 elif input[0] == "bt":
     c.print_backtrace()
 
 elif input[0] == "c" or input[0] == "continue":
     c.run()
 
 elif input[0] == "d" or input[0] == "delete":
     if len(input) > 1:
         c.delete_breakpoint(input[1:])
     else:
         print "No breakpoints specified."
 
 elif input[0] == "dw":
     if len(input) > 1:
         c.delete_watchpoints(input[1:])
     else:
         print "No watchpoints specified."
 
 elif input[0] == "h" or input[0] == "help":
     print_help()
 
 elif input[0] == "i" or input[0] == "info":
     c.print_status()