(type_name, addr)
return gdb.Value(addr).cast(gdb_type.pointer()).dereference()
Read the memory contents at addr and interpret them as a GDB value with the given type
Read the memory contents at addr and interpret them as a GDB value with the given type
Read the memory contents at addr and interpret them as a GDB value with the given type
def read_gdbvalue(type_name, addr):
    """ Read the memory contents at addr and interpret them as a GDB value with the given type """
    gdb_type = pwndbg.typeinfo.load(type_name)
    return gdb.Value(addr).cast(gdb_type.pointer()).dereference()
def read_gdbvalue ( type_name , addr ) : gdb_type = pwndbg . typeinfo . load ( type_name ) return gdb . Value ( addr ) . cast ( gdb_type . pointer ( ) ) . dereference ( )