'Runs gdb with the command line given by *args.
Returns its stdout, stderr'

def run_gdb(self, *args):

    (out, err) = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
    return (out, err)
