From fa2580f5741da3e80e523910faf20914d572be1e Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B6nke=20Holz?= Date: Fri, 5 Dec 2025 11:56:14 +0100 Subject: [PATCH] contrib/plugins/uftrace_symbols.py: unbreak --no-prefix-symbols MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Pierrick Bouvier Message-ID: <20251205105614.13673-1-sholz8530@gmail.com> Signed-off-by: Alex Bennée --- contrib/plugins/uftrace_symbols.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/plugins/uftrace_symbols.py b/contrib/plugins/uftrace_symbols.py index 45fb79c7a5..21704541a6 100755 --- a/contrib/plugins/uftrace_symbols.py +++ b/contrib/plugins/uftrace_symbols.py @@ -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): -- 2.47.3