All pastes #262784 Raw Edit

Miscellany

public text v1 · immutable
#262784 ·published 2006-11-30 22:01 UTC
rendered paste body
#0  mono_class_from_mono_type (type=0x0) at class.c:3334
3334            switch (type->type) {
(gdb) up
#1  0x08138a06 in mono_compile_create_var (cfg=0x82a2200, type=0x0, opcode=319) at mini.c:1592
1592            inst->klass = mono_class_from_mono_type (type);
(gdb)
#2  0x08153ede in mini_method_compile (method=0x82687bc, opts=5335551, domain=0x21ed8, run_cctors=<value optimized out>,
    compile_aot=<value optimized out>, parts=0) at mini.c:9444
9444                    mono_compile_create_var (cfg, header->locals [i], OP_LOCAL);
(gdb) p header->locals [i]
$8 = (MonoType *) 0x820d694
(gdb) p *header->locals [i]
$9 = {data = {klass = 0x820d5fc, type = 0x820d5fc, array = 0x820d5fc, method = 0x820d5fc, generic_param = 0x820d5fc,
    generic_class = 0x820d5fc}, attrs = 0, type = 24, num_mods = 0, byref = 0, pinned = 0, modifiers = 0x820d69c}
(gdb) p *header->locals [i].data.klass
$10 = {image = 0x820c4f0, enum_basetype = 0x0, element_class = 0x820d5fc, cast_class = 0x820d5fc, rank = 0 '\0', inited = 1,
  init_pending = 0, size_inited = 1, valuetype = 1, enumtype = 0, blittable = 1, unicode = 0, wastypebuilder = 0, min_align = 4,
  packing_size = 0, ghcimpl = 1, has_finalize = 0, marshalbyref = 0, contextbound = 0, delegate = 0, gc_descr_inited = 1,
  has_cctor = 0, has_references = 1, has_static_refs = 1, no_special_static_fields = 0, is_com_object = 0, exception_type = 0 '\0',
  exception_data = 0x0, declsec_flags = 0, parent = 0x820cb2c, nested_in = 0x0, nested_classes = 0x0, type_token = 33554469,
  name = 0xb7bbeeed "IntPtr", name_space = 0xb7bbe8be "System", supertypes = 0x820d6b4, idepth = 3, interface_count = 1,
  interface_id = 0, max_interface_id = 3, interface_offsets = 0x822245c, interfaces = 0x820d6cc, instance_size = 12, vtable_size = 5,
  sizes = {class_size = 4, element_size = 4}, flags = 1057033, field = {first = 81, count = 2}, method = {first = 635, count = 20},
  property = {first = 0, count = 0}, event = {first = 0, count = 0}, marshal_info = 0x824dbe4, fields = 0x823c63c, properties = 0x0,
  events = 0x0, methods = 0x824d8fc, this_arg = {data = {klass = 0x820d5fc, type = 0x820d5fc, array = 0x820d5fc, method = 0x820d5fc,
      generic_param = 0x820d5fc, generic_class = 0x820d5fc}, attrs = 0, type = 24, num_mods = 0, byref = 1, pinned = 0,
    modifiers = 0x820d694}, byval_arg = {data = {klass = 0x820d5fc, type = 0x820d5fc, array = 0x820d5fc, method = 0x820d5fc,
      generic_param = 0x820d5fc, generic_class = 0x820d5fc}, attrs = 0, type = 24, num_mods = 0, byref = 0, pinned = 0,
    modifiers = 0x820d69c}, generic_class = 0x0, generic_container = 0x0, reflection_info = 0x0, gc_descr = 0x20000001,
  runtime_info = 0x824dc04, vtable = 0x824dbcc}