addr2line_backtrace: fix error printing absolute paths are relative
This commit is contained in:
parent
a9f0d19197
commit
8d58b86228
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue