Skip to content
Snippets Groups Projects
Commit 938151a0 authored by hjk's avatar hjk
Browse files

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


Change-Id: I46602fe6691471427d9f95925e8f88e99ab962f4
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 1a2baecf
No related branches found
No related tags found
No related merge requests found
...@@ -2151,6 +2151,13 @@ class Dumper: ...@@ -2151,6 +2151,13 @@ class Dumper:
self.listAnonymous(value, "#%d" % self.anonNumber, type) self.listAnonymous(value, "#%d" % self.anonNumber, type)
return 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: if type.code != StructCode and type.code != UnionCode:
warn("WRONG ASSUMPTION HERE: %s " % type.code) warn("WRONG ASSUMPTION HERE: %s " % type.code)
check(False) check(False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment