contrib/plugins/uftrace_symbols.py: unbreak --no-prefix-symbols

Since 8a545a336d, `name` is unbound if --no-prefix-symbols is passed,
causing this script to break when that option is set.

Signed-off-by: Sönke Holz <sholz8530@gmail.com>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-ID: <20251205105614.13673-1-sholz8530@gmail.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
This commit is contained in:
Sönke Holz 2025-12-05 11:56:14 +01:00 committed by Alex Bennée
parent 81c5a3f867
commit fa2580f574

View file

@ -98,6 +98,8 @@ class BinaryFile:
size = f'{s.size:{addrx}}'
if prefix_symbols:
name = f'{binary_name}:{s.name}'
else:
name = s.name
print(addr, size, 'T', name, file=sym_file)
def generate_debug_file(self):