mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] scripts: gdb: fix missing pbl_barebox_break error message
@ 2026-08-17 14:13 Michael Tretter
  2026-08-19  7:04 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Tretter @ 2026-08-17 14:13 UTC (permalink / raw)
  To: Sascha Hauer, BAREBOX; +Cc: Bruno Knittel, Michael Tretter

From: Bruno Knittel <bruno.knittel@bruker.com>

If no pbl_barebox_break symbol is found in the file provided to
bb-load-symbols, the script is failing with a Python exception stating
that BBSymbols has no path attribute.

Fix the error handling to actually print the error message.

Signed-off-by: Bruno Knittel <bruno.knittel@bruker.com>
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
---
 scripts/gdb/helper.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/gdb/helper.py b/scripts/gdb/helper.py
index 40417898902e..e92b1fe65a57 100644
--- a/scripts/gdb/helper.py
+++ b/scripts/gdb/helper.py
@@ -33,7 +33,7 @@ class BBSymbols(gdb.Command):
         symbol = section.get_symbol_by_name("pbl_barebox_break")
         if not symbol:
             gdb.write("Symbol pbl_barebox_break in section {} in file {} not found\n"
-                      .format(section.name, self.path), gdb.STDERR)
+                      .format(section.name, path), gdb.STDERR)
             return
         symbol = symbol[0]
         pc = gdb.parse_and_eval("$pc")

---
base-commit: 3317ac1baff3b0226caba7f83f3da61bc407343a
change-id: 20260817-fix-gdb-script-error-message-2b213a0644c3

Best regards,
-- 
Michael Tretter <m.tretter@pengutronix.de>




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

* Re: [PATCH] scripts: gdb: fix missing pbl_barebox_break error message
  2026-08-17 14:13 [PATCH] scripts: gdb: fix missing pbl_barebox_break error message Michael Tretter
@ 2026-08-19  7:04 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2026-08-19  7:04 UTC (permalink / raw)
  To: BAREBOX, Michael Tretter; +Cc: Bruno Knittel


On Mon, 17 Aug 2026 16:13:26 +0200, Michael Tretter wrote:
> If no pbl_barebox_break symbol is found in the file provided to
> bb-load-symbols, the script is failing with a Python exception stating
> that BBSymbols has no path attribute.
> 
> Fix the error handling to actually print the error message.
> 
> 
> [...]

Applied, thanks!

[1/1] scripts: gdb: fix missing pbl_barebox_break error message
      https://git.pengutronix.de/cgit/barebox/commit/?id=44012c886e94 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




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

end of thread, other threads:[~2026-08-19  7:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-17 14:13 [PATCH] scripts: gdb: fix missing pbl_barebox_break error message Michael Tretter
2026-08-19  7:04 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox