debugger: apply special formats for type 'foo' also to 'const foo'

This commit is contained in:
hjk
2010-08-23 12:45:19 +02:00
parent 02c331e0c4
commit 7dfcbe5f39

View File

@@ -911,6 +911,7 @@ class FrameCommand(gdb.Command):
if pos != -1:
type = base64.b16decode(f[0:pos], True)
typeformats[type] = int(f[pos+1:])
typeformats["const " + type] = int(f[pos+1:])
elif arg.startswith("formats:"):
for f in arg[pos:].split(","):
pos = f.find("=")