Only add files in GlobSymbolsDir.
I previously skipped directories, but that can still lead to problems. So instead, only add paths that are files. Test: Ran over a stack that failed when trying to run llvm-readelf Test: on a directory. After this fix, everything get line numbers. Change-Id: Ide39c5a118d78a822057cc3977d0f532595f798b
This commit is contained in:
@@ -319,8 +319,7 @@ class TraceConverter:
|
|||||||
def GlobSymbolsDir(self, symbols_dir):
|
def GlobSymbolsDir(self, symbols_dir):
|
||||||
files_by_basename = {}
|
files_by_basename = {}
|
||||||
for path in sorted(pathlib.Path(symbols_dir).glob("**/*")):
|
for path in sorted(pathlib.Path(symbols_dir).glob("**/*")):
|
||||||
if os.path.isdir(path):
|
if os.path.isfile(path):
|
||||||
next
|
|
||||||
files_by_basename.setdefault(path.name, []).append(path)
|
files_by_basename.setdefault(path.name, []).append(path)
|
||||||
return files_by_basename
|
return files_by_basename
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user