When trying to trace a riscv64 stack, addr2line reported warning on
stdout when symbolizing addresses:
warning: address range table at offset 0x8a0 has a premature terminator entry at offset 0x9c0
warning: address range table at offset 0x1700 has a premature terminator entry at offset 0x1750
Ignore any warning, similar to the error we ignored previously.
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
---
contrib/plugins/uftrace_symbols.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/contrib/plugins/uftrace_symbols.py b/contrib/plugins/uftrace_symbols.py
index 9f0095e73b9..2b931c49a83 100755
--- a/contrib/plugins/uftrace_symbols.py
+++ b/contrib/plugins/uftrace_symbols.py
@@ -63,7 +63,8 @@ def find_symbols_locations(elf_file, symbols):
out = out.strip().split('\n')
# filter out some addr2line error messages
skip_err='addr2line: DWARF error: mangled line number section (bad file number)'
- out = [src for src in out if src != skip_err]
+ out = [src for src in out
+ if src != skip_err and not src.startswith('warning:')]
assert len(out) == len(symbols)
for i in range(len(symbols)):
s = symbols[i]
--
2.47.3