()
return symtab.fullname()
Retrieve the symbol table’s source absolute file name from the selected frame.

    In case of missing symbol table or frame information, None is returned.
Retrieve the symbol table’s source absolute file name from the selected frame.
Retrieve the symbol table’s source absolute file name from the selected frame .
def selected_frame_source_absolute_filename():
    """
    Retrieve the symbol table’s source absolute file name from the selected frame.

    In case of missing symbol table or frame information, None is returned.
    """
    try:
        frame = gdb.selected_frame()
    except gdb.error:
        return None

    if not frame:
        return None

    sal = frame.find_sal()
    if not sal:
        return None

    symtab = sal.symtab
    if not symtab:
        return None

    return symtab.fullname()
def selected_frame_source_absolute_filename ( ) : try : frame = gdb . selected_frame ( ) except gdb . error : return None if not frame : return None sal = frame . find_sal ( ) if not sal : return None symtab = sal . symtab if not symtab : return None return symtab . fullname ( )