commit | 55b770795fae5d2baf20b54e3ba9f375528bcbbe | [log] [tgz] |
---|---|---|
author | Yifei Teng <yifeit@google.com> | Wed Sep 08 13:28:30 2021 -0700 |
committer | CQ Bot <commit-bot@chromium.org> | Wed Sep 08 23:25:47 2021 +0000 |
tree | 75707c582fc13fc2483aac0d3b7fb7cdbe11d62a | |
parent | 6eaf778035c4e06aee8d77a786bd1c0d999d95ab [diff] |
Support DW_FORM_strx3 Already upstreaming this change at: https://github.com/google/bloaty/pull/286, but it's faster to land this here first. Change-Id: I2033f5dc98543d80881570d812aef8967ec07dfc Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/bloaty/+/578983 Reviewed-by: Anthony Fandrianto <atyfto@google.com> Commit-Queue: Yifei Teng <yifeit@google.com> Fuchsia-Auto-Submit: Yifei Teng <yifeit@google.com>
diff --git a/src/dwarf/attr.cc b/src/dwarf/attr.cc index 6cb359c..b794fd1 100644 --- a/src/dwarf/attr.cc +++ b/src/dwarf/attr.cc
@@ -125,6 +125,8 @@ return AttrValue::UnresolvedString(form, ReadFixed<uint8_t>(data)); case DW_FORM_strx2: return AttrValue::UnresolvedString(form, ReadFixed<uint16_t>(data)); + case DW_FORM_strx3: + return AttrValue::UnresolvedString(form, ReadFixed<uint32_t, 3>(data)); case DW_FORM_strx4: return AttrValue::UnresolvedString(form, ReadFixed<uint32_t>(data)); case DW_FORM_strx: