addr2line_backtrace: fix error printing absolute paths are relative

This commit is contained in:
Campbell Barton 2023-09-27 16:50:49 +10:00
parent a9f0d19197
commit 8d58b86228
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ def addr2line_fn(arg_pair: Tuple[Tuple[str, str, bool], Sequence[str]]) -> Seque
del output_lines[:2]
line_list = []
for line in output_lines_for_addr:
if line.startswith(base_path):
if base_path and line.startswith(base_path):
line = "." + os.sep + line[len(base_path):]
line_list.append(line)
output = ": ".join(reversed(line_list))