mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix gdb helper for Au printer
This commit is contained in:
parent
6184c13f95
commit
370b1a2d72
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ class AuPrinter:
|
|||
def to_string(self):
|
||||
i32_type = gdb.lookup_type("i32")
|
||||
au = self.val.cast(i32_type);
|
||||
return "{0}px ({1} au)".format(au / 60.0, au)
|
||||
return "{0}px".format(au / 60.0)
|
||||
|
||||
# Print a U8 bitfield as binary
|
||||
class BitFieldU8Printer:
|
||||
|
@ -120,7 +120,7 @@ class TestPrinter:
|
|||
return "[UNKNOWN - type = {0}]".format(str(self.val.type))
|
||||
|
||||
type_map = [
|
||||
('Au', AuPrinter),
|
||||
('struct Au', AuPrinter),
|
||||
('FlowFlags', BitFieldU8Printer),
|
||||
('IntrinsicWidths', ChildPrinter),
|
||||
('PlacementInfo', ChildPrinter),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue