'Get execution status of debugged program
Returns:
- current status of program (String)
STOPPED - not being run
BREAKPOINT - breakpoint hit
SIGXXX - stopped by signal XXX
UNKNOWN - unknown, not implemented'

def get_status(self):

    status = 'UNKNOWN'
    out = self.execute_redirect('info    program')
    for line in out.splitlines():
        if line.startswith('It    stopped'):
            if ('signal' in line):
                status = line.split('signal')[1].split(',')[0].strip()
                break
            if ('breakpoint' in line):
                status = 'BREAKPOINT'
                break
        if ('not    being    run' in line):
            status = 'STOPPED'
            break
    return status
