contrib/plugins/uftrace_symbols.py: unbreak --no-prefix-symbols
Quoted 13 lines · Sönke Holz
Since
8a545a336d,nameis unbound if --no-prefix-symbols is passed, causing this script to break when that option is set.Signed-off-by Sönke Holz <[email protected]>--- contrib/plugins/uftrace_symbols.py | 2 ++ 1 file changed, 2 insertions(+)contrib/plugins/uftrace_symbols.py +0
-0
contrib/plugins/uftrace_symbols.py def generate_symbol_file(self, prefix_symbols): · line 105
Quoted 8 lines
contrib/plugins/uftrace_symbols.py +2
-0@@ -98,6 +98,8 @@ def generate_symbol_file(self, prefix_symbols): 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):
Thanks for catching it, I was indeed always using this option for testing.
Quoted 21 lines · Pierrick Bouvier
Quoted 20 lines · Sönke Holz
Since
8a545a336d,nameis unbound if --no-prefix-symbols is passed, causing this script to break when that option is set.Signed-off-by Sönke Holz <[email protected]>--- contrib/plugins/uftrace_symbols.py | 2 ++ 1 file changed, 2 insertions(+)contrib/plugins/uftrace_symbols.py +2
-0@@ -98,6 +98,8 @@ def generate_symbol_file(self, prefix_symbols): 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)
Quoted 5 lines
contrib/plugins/uftrace_symbols.py def generate_symbol_file(self, prefix_symbols): · line 105
Quoted 1 line
contrib/plugins/uftrace_symbols.py +0
-0def generate_debug_file(self):Thanks for catching it, I was indeed always using this option for testing.
Reviewed-by Pierrick Bouvier <[email protected]>
@alex.bennée, any chance it can be integrated for release, when you will pull Final fixes for 10.2?
Thanks,
Pierrick
PATCH 1/1 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.
--- contrib/plugins/uftrace_symbols.py | 2 ++ 1 file changed, 2 insertions(+)
contrib/plugins/uftrace_symbols.py +2 -0
@@ -98,6 +98,8 @@ def generate_symbol_file(self, prefix_symbols): 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):
Signature · 1 line
2.52.0
Alex Bennée
AppliedQuoted 4 lines · Sönke Holz
Since
8a545a336d,nameis unbound if --no-prefix-symbols is passed, causing this script to break when that option is set.Signed-off-by Sönke Holz <[email protected]>
Queued to pr/051225-10.2-final-fixes-1, thanks.
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro