From 347c7b7290232da199575aac96b5c23b9cd8b46d Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Fri, 5 Dec 2025 00:40:19 -0600 Subject: [PATCH] scripts: gdb: Forward +flags to dbg scripts dbgflags.py now uses +flags to indicate flag namespaces, but our gdb script only forwarded -f/--flags, which made dbgflags a bit of a pain to use in the debugger! Fortunately an easy fix. Now this works: (gdb) dbgflags +t trv.gc.t.h.flags LFS3_T_RDWR 0x00000000 Open traversal as read and write LFS3_T_MKCONSISTENT 0x00000100 Make the filesystem consistent LFS3_T_LOOKAHEAD 0x00000200 Repopulate lookahead buffer LFS3_t_TRAVERSAL 0x60000000 Type = traversal LFS3_t_MDIR 0x00010000 Btype = mdir --- scripts/dbg.gdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dbg.gdb.py b/scripts/dbg.gdb.py index d053951c..3a3a18ad 100644 --- a/scripts/dbg.gdb.py +++ b/scripts/dbg.gdb.py @@ -60,7 +60,7 @@ class DbgCommand(gdb.Command): args_ = [] for a in args: # pass flags as is - if a.startswith('-'): + if a.startswith('-') or a.startswith('+'): args_.append(a) # parse and eval