Bug 203495 - Add pretty printer for CompactPointerTuple
Summary: Add pretty printer for CompactPointerTuple
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Daniel Bates
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-10-28 11:35 PDT by Daniel Bates
Modified: 2019-10-30 15:22 PDT (History)
7 users (show)

See Also:


Attachments
Patch and unit tests (14.60 KB, patch)
2019-10-28 11:46 PDT, Daniel Bates
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bates 2019-10-28 11:35:03 PDT
Add a LLDB pretty printer for CompactPointerTuple.
Comment 1 Daniel Bates 2019-10-28 11:46:02 PDT
Created attachment 382091 [details]
Patch and unit tests
Comment 2 Daniel Bates 2019-10-28 11:47:33 PDT
Now we will print something like:

        (WTF::CompactPointerTuple<WTF::String *, unsigned char>) $0 = { type = 7 } {
          [0] = 0x00007ffeefbff220 { length = 8, contents = 'résumé' }
          [1] = 7
        }

for aCompactPointerTuple defined like this:

        String aString { "résumé" };
        CompactPointerTuple<String*, uint8_t> aCompactPointerTuple { &aString, 7 };
Comment 3 Daniel Bates 2019-10-30 15:21:12 PDT
Comment on attachment 382091 [details]
Patch and unit tests

Clearing flags on attachment: 382091

Committed r251813: <https://trac.webkit.org/changeset/251813>
Comment 4 Daniel Bates 2019-10-30 15:21:15 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Radar WebKit Bug Importer 2019-10-30 15:22:16 PDT
<rdar://problem/56760637>