qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] contrib/plugins/uftrace_symbols.py: unbreak --no-prefix-symbols
@ 2025-12-05 10:56 Sönke Holz
  2025-12-05 14:02 ` Pierrick Bouvier
  2025-12-05 15:18 ` Alex Bennée
  0 siblings, 2 replies; 4+ messages in thread
From: Sönke Holz @ 2025-12-05 10:56 UTC (permalink / raw)
  To: qemu-devel
  Cc: Sönke Holz, Alex Bennée, Alexandre Iooss,
	Mahmoud Mandour, Pierrick Bouvier

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>
---
 contrib/plugins/uftrace_symbols.py | 2 ++
 1 file changed, 2 insertions(+)

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 @@ 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):
-- 
2.52.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-12-05 15:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-05 10:56 [PATCH] contrib/plugins/uftrace_symbols.py: unbreak --no-prefix-symbols Sönke Holz
2025-12-05 14:02 ` Pierrick Bouvier
2025-12-05 14:03   ` Pierrick Bouvier
2025-12-05 15:18 ` Alex Bennée

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).