Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def swap_endianess_16(x):
- return int.from_bytes(x.to_bytes(2, byteorder='little'), byteorder='big', signed=False)
- class uint16bg_t_print:
- def __init__(self, val):
- self.val = val
- def to_string(self):
- return self.val['val'].string()
- def lookup_type_uint16bg_t (val):
- if 'uint16bg_t' in str(val.type):
- return uint16bg_t_print(val)
- return None
- gdb.pretty_printers.append(lookup_type_uint16bg_t)
- # gdb.pretty_printers.append(lookup_type_uint32bg_t)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement