()
return ''
Retrieve the debug file directory path.

    The debug file directory path ('show debug-file-directory') is a comma-
    separated list of directories which GDB will look in to find the binaries
    currently loaded.
Retrieve the debug file directory path.
Retrieve the debug file directory path .
def get_directory():
    """
    Retrieve the debug file directory path.

    The debug file directory path ('show debug-file-directory') is a comma-
    separated list of directories which GDB will look in to find the binaries
    currently loaded.
    """
    result = gdb.execute('show debug-file-directory', to_string=True, from_tty=False)
    expr   = r'The directory where separate debug symbols are searched for is "(.*)".\n'

    match = re.search(expr, result)

    if match:
        return match.group(1)
    return ''
def get_directory ( ) : result = gdb . execute ( 'show debug-file-directory' , to_string = True , from_tty = False ) expr = r'The directory where separate debug symbols are searched for is "(.*)".\n' match = re . search ( expr , result ) if match : return match . group ( 1 ) return ''