mirror of
https://github.com/xemu-project/xemu.git
synced 2026-07-11 01:24:41 +02:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user