Skip to content

Instantly share code, notes, and snippets.

@timo
Created June 2, 2015 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timo/b3948e713e46d7923e39 to your computer and use it in GitHub Desktop.
Save timo/b3948e713e46d7923e39 to your computer and use it in GitHub Desktop.
(gdb) print ((MVMObject *)c)[0]
$22 = {header = {sc_forward_u = {forwarder = 0xffffffff00000007, sc = {sc_idx = 7, idx = 4294967295},
st = 0xffffffff00000007}, owner = 1, flags = 10, size = 184}, st = 0x7ffff7f5cf40 <this_repr>}
(gdb) print ((MVMObject *)c)[0].st[0]
$23 = {header = {sc_forward_u = {forwarder = 0x7ffff7b8c34b <type_object_for>, sc = {sc_idx = 4156080971,
idx = 32767}, st = 0x7ffff7b8c34b <type_object_for>}, owner = 4156080934, flags = 32767, size = 0},
REPR = 0x7ffff7b8b992 <initialize>, REPR_data = 0x7ffff7b8c3eb <copy_to>, size = 4156085461,
type_check_cache_length = 32767, mode_flags = 0, type_check_cache = 0x7ffff7b8d2a3 <bind_attribute>,
method_cache = 0x7ffff7b8b39d <hint_for>, type_cache_id = 140737349468864,
container_spec = 0x7ffff7b8b93f <set_int>, container_data = 0x7ffff7b8b8ee <get_int>,
boolification_spec = 0x7ffff7b8b89b <set_num>, hll_owner = 0x7ffff7b8b84a <get_num>, hll_role = 140737349466103,
invoke = 0x7ffff7b8b7a6 <get_str>, invocation_spec = 0x7ffff7b8b727 <get_boxed_ref>,
WHAT = 0x7ffff7b8b6d3 <at_pos>, WHO = 0x7ffff7b8b67c <bind_pos>, HOW = 0x7ffff7b8b634 <set_elems>, paramet = {
ric = {parameterizer = 0x0, lookup = 0x7ffff7b8b5e8 <push>}, erized = {parametric_type = 0x0,
parameters = 0x7ffff7b8b5e8 <push>}}, HOW_sc = 0x7ffff7b8b59c <pop>, HOW_idx = 4156077392,
method_cache_offset = 32767, method_cache_sc = 0x7ffff7b8b504 <shift>}
(gdb) print ((MVMObject *)c)[0].st[0].REPR[0]
$24 = {type_object_for = 0x5355544155415641, allocate = 0x4c185e8b48fd8949, initialize = 0x440f4ce4854d218b,
copy_to = 0x89494c74db8548e1, attr_funcs = {get_attribute = 0xb70f40438b48d6, bind_attribute = 0x2bd4e78c08566,
hint_for = 0x8b48c0bf0f480000, is_attribute_initialized = 0x8b4cc2348b482053}, box_funcs = {
set_int = 0xb70f18538b481046, get_int = 0xf2894ce1014c420c, set_num = 0x481050ff41ef894c,
get_num = 0x482804b70f40438b, set_str = 0xca79c0856602c583, get_str = 0x784c5358d4811eb,
get_boxed_ref = 0xb3e800000000b800}, pos_funcs = {at_pos = 0x415c415d5bfffb33, bind_pos = 0x53555441c35e415d,
set_elems = 0xfed8548186e8b48, exists_pos = 0xf489490000013584, push = 0x74db8548385d8b48,
pop = 0x16840f003b834856, unshift = 0x48087b8b48000001, shift = 0xfaebb5e80d74ff85, splice = 0x843c748ff,
get_elem_storage_spec = 0xff8548107b8b4800}, ass_funcs = {at_key = 0x48fffaeb9fe80d74,
bind_key = 0x48000000001043c7, exists_key = 0x75003b834820c383, delete_key = 0xff8548387d8b48ca,
get_value_storage_spec = 0x48fffaeb7fe80d74}, elems = 0x48000000003845c7, get_storage_spec = 0xd74ff8548187d8b,
change_type = 0x45c748fffaeb69e8, serialize = 0x7d8b480000000018, deserialize = 0x53e80d74ff854820,
serialize_repr_data = 0x2045c748fffaeb, deserialize_repr_data = 0x48287d8b48000000,
deserialize_stable_size = 0xfaeb3de80d74ff85, gc_mark = 0x2845c748ff, gc_free = 0xff8548307d8b4800,
gc_cleanup = 0x48fffaeb27e80d74, gc_mark_repr_data = 0x48000000003045c7, gc_free_repr_data = 0xd74ff8548107d8b,
compose = 0x45c748fffaeb11e8, spesh = 0x7d8b480000000010,
name = 0xfbe80d74ff854840 <error: Cannot access memory at address 0xfbe80d74ff854840>, ID = 1224735466,
refs_frames = 4212167}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment