Skip to content

Commit

Permalink
Fix size of the tag on 32bit platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
godunko committed Jul 8, 2024
1 parent ad90a73 commit c1b975a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gdb/vss_pp.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ def to_string(self):

if text.type == utf8static_type:
# GDB is unable to resolve "storage" component of the record,
# so skip first implicit component of 8 bytes and decode.
return decode_utf8(text.bytes[8:], text["size"])
# so skip first implicit component of System.Address and decode.
return decode_utf8(
text.bytes[gdb.lookup_type("system.address").sizeof :], text["size"]
)

elif text.type == utf8dynamic_type:
data = text["pointer"].dereference()
Expand Down

0 comments on commit c1b975a

Please sign in to comment.