Bug 193023

Summary: [lldb-webkit] Remove broken code to print WTF::OptionSet::m_storage
Product: WebKit Reporter: Daniel Bates <dbates>
Component: Tools / TestsAssignee: Daniel Bates <dbates>
Status: RESOLVED FIXED    
Severity: Normal CC: ddkilzer, lforschler, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=193024
Attachments:
Description Flags
Patch none

Daniel Bates
Reported 2018-12-24 16:14:26 PST
The WTF::OptionSet pretty printer contains code to print the value of WTF::OptionSet::m_storage. Due to an off-by-one error this code is broken and as a result we never print the value of WTF::OptionSet::m_storage when pretty printing the option set. Having said that, it does not seem very meaningful to print the value of m_storage as it is just the sum of the values of the enumerators in the set and I find it would just be noise if printed. We should just remove the code that tried to print WTF::OptionSet::m_storage. If there is someone that likes knowing m_storage then we should still remove the current code and re-implement this functionality as part of the summary string for WTF::OptionSet so that we do not print m_storage as if it was an item in the set. For completeness, if the code had worked then pretty printed output would look like: (WTF::OptionSet<ExampleFlags>) $0 = { size = 3 } { A = 1 C = 4 D = 8 m_storage = 13 } Currently it looks like: (WTF::OptionSet<ExampleFlags>) $0 = { size = 3 } { A = 1 C = 4 D = 8 }
Attachments
Patch (2.18 KB, patch)
2018-12-24 16:16 PST, Daniel Bates
no flags
Daniel Bates
Comment 1 2018-12-24 16:16:48 PST
Simon Fraser (smfr)
Comment 2 2019-01-02 10:34:17 PST
Comment on attachment 358049 [details] Patch No tests?
Daniel Bates
Comment 3 2019-01-02 10:36:16 PST
(In reply to Simon Fraser (smfr) from comment #2) > Comment on attachment 358049 [details] > Patch > > No tests? No tests, because I am removing functionality.
Daniel Bates
Comment 4 2019-01-02 10:50:20 PST
Comment on attachment 358049 [details] Patch Clearing flags on attachment: 358049 Committed r239570: <https://trac.webkit.org/changeset/239570>
Daniel Bates
Comment 5 2019-01-02 10:50:21 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 6 2019-01-02 10:51:25 PST
Note You need to log in before you can comment on or make changes to this bug.