]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
contrib/plugins/uftrace_symbols.py: unbreak --no-prefix-symbols
authorSönke Holz <sholz8530@gmail.com>
Fri, 5 Dec 2025 10:56:14 +0000 (11:56 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Fri, 5 Dec 2025 15:26:39 +0000 (15:26 +0000)
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>
contrib/plugins/uftrace_symbols.py

index 45fb79c7a58c9e85ad460b1dd531d759e066ba19..21704541a6c161bd4fd22faf0e310189755a6b2a 100755 (executable)
@@ -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):