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:
parent
81c5a3f867
commit
fa2580f574
1 changed files with 2 additions and 0 deletions
|
|
@ -98,6 +98,8 @@ class BinaryFile:
|
||||||
size = f'{s.size:{addrx}}'
|
size = f'{s.size:{addrx}}'
|
||||||
if prefix_symbols:
|
if prefix_symbols:
|
||||||
name = f'{binary_name}:{s.name}'
|
name = f'{binary_name}:{s.name}'
|
||||||
|
else:
|
||||||
|
name = s.name
|
||||||
print(addr, size, 'T', name, file=sym_file)
|
print(addr, size, 'T', name, file=sym_file)
|
||||||
|
|
||||||
def generate_debug_file(self):
|
def generate_debug_file(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue