Commit 938151a0 authored by hjk's avatar hjk

Debugger: Enable pretty-printing of FORTRAN character*n types

Change-Id: I46602fe6691471427d9f95925e8f88e99ab962f4
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 1a2baecf
......@@ -2151,6 +2151,13 @@ class Dumper:
self.listAnonymous(value, "#%d" % self.anonNumber, type)
return
if type.code == StringCode:
# FORTRAN strings
size = type.sizeof
data = self.readRawMemory(value.address, size)
self.putValue(data, Hex2EncodedLatin1, 1)
self.putType(type)
if type.code != StructCode and type.code != UnionCode:
warn("WRONG ASSUMPTION HERE: %s " % type.code)
check(False)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment