From: Markus Walser Date: 2003-07-26T02:47:12+09:00 Subject: Re: Bug 1060 > Check the value of klass by > > (gdb) p *(struct RClass*)klass (gdb) bt #0 st_lookup (table=0x60000000000fb380, key=0x37fd
, value=0x600000fffffe3210) at st.c:253 #1 0x4000000000014770 in ev_const_get (cref=0x20000000004e5498, id=14333, self=2305843009217626888) at eval.c:1469 #2 0x400000000001daa0 in rb_eval (self=2305843009217626888, n=0x20000000003d8d18) at eval.c:2040 #3 0x4000000000014770 in ev_const_get (cref=0x600000fffffed360, id=0, self=2305843009215401808) at eval.c:1469 #4 0x0000000000000001 in ?? () #5 0x4000000000014770 in ev_const_get (cref=0x600000fffffea780, id=2305843009217918968, self=1) at eval.c:1469 #6 0x20000000003dd0c0 in ?? () #7 0x4000000000014770 in ev_const_get (cref=0x0, id=0, self=0) at eval.c:1469 #8 0x600000000000b858 in ruby_dln_librefs () warning: Can't fetch instructions for slot numbers greater than 2. Using slot 0 instead #9 0x4000000000014770 in ev_const_get (cref=0x0, id=2305843009215401808, self=6917529027641129048) at eval.c:1469 #10 0x0000000000000000 in ?? () (gdb) select 1 (gdb) p *(struct RClass*)klass No symbol "klass" in current context. (gdb) p *((struct RClass*)(cbase->u1.value)) $1 = {basic = {flags = 512, klass = 2305843009217626808}, iv_tbl = 0x60000000000fb380, m_tbl = 0x60000000000fb300, super = 2305843009218026048} (gdb) p *((struct RClass*)(cbase->u1.value))->iv_tbl $2 = {type = 0x60000000000fb2f0, num_bins = 11, num_entries = 1, bins = 0x60000000000fb3a0} (gdb) p ((struct RClass*)(cbase->u1.value))->iv_tbl $3 = (struct st_table *) 0x60000000000fb380 (gdb) p *((struct RClass*)(cbase->u1.value))->iv_tbl->type $4 = {compare = 0, hash = 0x21} (gdb) p ((struct RClass*)(cbase->u1.value))->iv_tbl->type $5 = (struct st_hash_type *) 0x60000000000fb2f0 Markus