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

(cherry picked from commit 7dfcbe5f39)
This commit is contained in:
hjk
2010-08-23 12:45:19 +02:00
parent 461f8d5e60
commit 0a2b06f884

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("=")