From: Sönke Holz Date: Fri, 5 Dec 2025 10:56:14 +0000 (+0100) Subject: contrib/plugins/uftrace_symbols.py: unbreak --no-prefix-symbols X-Git-Tag: v10.2.0-rc3~3^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fa2580f5741da3e80e523910faf20914d572be1e;p=thirdparty%2Fqemu.git 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 Reviewed-by: Pierrick Bouvier Message-ID: <20251205105614.13673-1-sholz8530@gmail.com> Signed-off-by: Alex Bennée --- 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):