'Show/set ASLR setting of GDB
Usage:
MYNAME [on|off]'

def aslr(self, *arg):

    (option,) = normalize_argv(arg, 1)
    if (option is None):
        out = peda.execute_redirect('show    disable-randomization')
        if (not out):
            warning_msg('ASLR    setting    is    unknown    or    not    available')
            return
        if ('is    off' in out):
            msg(('ASLR    is    %s' % green('ON')))
        if ('is    on' in out):
            msg(('ASLR    is    %s' % red('OFF')))
    else:
        option = option.strip().lower()
        if (option in ['on', 'off']):
            peda.execute(('set    disable-randomization    %s' % ('off' if (option == 'on') else 'on')))
    return
