Closed
Bug 1496870
Opened 7 years ago
Closed 7 years ago
Add a GDB pretty-printer for mozilla::EnumSet
Categories
(Firefox Build System :: General, enhancement)
Firefox Build System
General
Tracking
(firefox64 fixed)
RESOLVED
FIXED
mozilla64
| Tracking | Status | |
|---|---|---|
| firefox64 | --- | fixed |
People
(Reporter: botond, Assigned: botond)
References
Details
Attachments
(1 file)
After we transitioned the bitfield-style enum CompositorHitTestInfo to use mozilla::EnumSet in bug 1420996, it has come to my attention that EnumSet isn't very easy to work with in a debugger, in that determining the set of individual enumerator values that contribute to an EnumSet value can be laborious.
To make this better, I wrote a GDB pretty-printer for EnumSet.
Example output for a CompositorHitTestInfo:
(gdb) p hitResult
$5 = mozilla::gfx::CompositorHitTestInfo = {mozilla::gfx::CompositorHitTestFlags::eVisibleToHitTest, mozilla::gfx::CompositorHitTestFlags::eScrollbar,
mozilla::gfx::CompositorHitTestFlags::eScrollbarThumb, mozilla::gfx::CompositorHitTestFlags::eScrollbarVertical}
| Assignee | ||
Comment 1•7 years ago
|
||
Pushed by bballo@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/56b783db0fd3
Add a GDB pretty printer for mozilla::EnumSet. r=tromey
Comment 3•7 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in
before you can comment on or make changes to this bug.
Description
•