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
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@ class DbgCommand(gdb.Command):
|
|||||||
args_ = []
|
args_ = []
|
||||||
for a in args:
|
for a in args:
|
||||||
# pass flags as is
|
# pass flags as is
|
||||||
if a.startswith('-'):
|
if a.startswith('-') or a.startswith('+'):
|
||||||
args_.append(a)
|
args_.append(a)
|
||||||
|
|
||||||
# parse and eval
|
# parse and eval
|
||||||
|
|||||||
Reference in New Issue
Block a user