Example #1
0
def startInteraction():
    flag = True
    initBkPoint()
    setPC(parsehelper.getPC())
    #print getPC()
    #print getCurrentInstNumber()
    print '------------------------------------'
    print 'The entry address for execution is: ' + hex(parsehelper.getPC())
    print 'The starting address of .text section is: ' + parsehelper.getStartAddress()
    print "Debug mode started. Type 'help' for list of options."
    while flag:
        print '------------------------------------'
        print '(debug) : ',
        x=raw_input()
        x=x.strip().lower()
        if x=='exit':
            flag=False
        else:
            parseCommand(x)
Example #2
0
def startRunEngine():
    initBkPoint()
    setPC(parsehelper.getPC())
    executeRUN()