def get_dbg_fname(dbgdata): """ Parse the MSIC header using construct. Parameter: * (bytes) dbgdata, the raw bytes header Return : * (str) the .dbg filename """ from pdbparse.dbgold import IMAGE_DEBUG_MISC dbgstruct = IMAGE_DEBUG_MISC.parse(dbgdata) raw_filename = dbgstruct.Strings[0].decode('ascii') return ntpath.basename(raw_filename)
def get_dbg_fname(dbgdata): from pdbparse.dbgold import IMAGE_DEBUG_MISC dbgstruct = IMAGE_DEBUG_MISC.parse(dbgdata) return dbgstruct.Strings[0].split('\\')[-1]
def get_dbg_fname(dbgdata): from pdbparse.dbgold import IMAGE_DEBUG_MISC dbgstruct = IMAGE_DEBUG_MISC.parse(dbgdata) return ntpath.basename(dbgstruct.Strings[0])