1 # Change $r27 to whatever BaseReg is mapped to
3 print *(StgRegTable *)$r27
7 print *((StgRegTable*)$r27)->rCurrentTSO
11 print (((StgRegTable)MainRegTable).rR1)
14 print (((StgRegTable)MainRegTable).rR2)
17 print (((StgRegTable)MainRegTable).rR3)
20 print (((StgRegTable)MainRegTable).rR4)
23 print (((StgRegTable)MainRegTable).rR5)
26 print (((StgRegTable)MainRegTable).rR6)
29 print (((StgRegTable)MainRegTable).rR7)
32 print (((StgRegTable)MainRegTable).rR8)
35 print (StgFloat) (((StgRegTable)MainRegTable).rFlt1)
38 print (StgDouble) (((StgRegTable)MainRegTable).rDbl1)
42 print (((StgRegTable)MainRegTable).rSp)
45 print (((StgRegTable)MainRegTable).rSu)
48 print (((StgRegTable)MainRegTable).rSpLim)
52 print (((StgRegTable)MainRegTable).rHp)
55 print (((StgRegTable)MainRegTable).rHpLim)
58 # Change $r22 to whatever Sp is mapped to
69 set $mem = ((unsigned long)$arg0) & (sizeof(void*)==8 ? ~7 : ~3)
72 x/1a (((long *)$mem) +$i)
89 set $mem = $arg0 & (sizeof(void*)==8 ? ~7 : ~3)
92 x/1a (((int *)$mem) + $i)
106 p *((StgInfoTable *)$arg0-1)
110 p *((StgConInfoTable *)$arg0-1)
114 p *((StgRetInfoTable *)$arg0-1)
118 p *((StgFunInfoTable *)$arg0-1)
122 p sizeof(void *)==8 ? (* ((bdescr *)((($arg0 & 0xfffffffffff00000) | (($arg0 & 0xff000) >> 6)) & 0xffffffffffffffc0))) : * ((bdescr *)((($arg0 & 0xfff00000) | (($arg0 & 0xff000) >> 7)) & 0xffffffe0))
126 p generations[((bdescr *)((($arg0 & 0xfff00000) | (($arg0 & 0xff000) >> 7)) & 0xffffffe0))->gen_no]
127 p * ((bdescr *)((($arg0 & 0xfff00000) | (($arg0 & 0xff000) >> 7)) & 0xffffffe0))->step
131 set $bd = (bdescr *)((($arg0 & 0xfff00000) | (($arg0 & 0xff000) >> 7)) & 0xffffffe0)
132 set $offset = (StgPtr)$arg0 - $bd->start
133 set $bitmap_word = $bd->u.bitmap + ($offset / 32)
134 set $mask = 1 << ($offset & 31)
135 p (*$bitmap_word & $mask) != 0
139 set $bd = (bdescr *)((($arg0 & 0xfffffffffff00000) | (($arg0 & 0xff000) >> 6)) & 0xffffffffffffffc0)
140 set $offset = (StgPtr)$arg0 - $bd->start
141 set $bitmap_word = $bd->u.bitmap + ($offset / 64)
142 set $mask = 1 << ($offset & 63)
143 p (*$bitmap_word & $mask) != 0
147 handle SIGPIPE nostop noprint ignore
150 p RtsFlags.DebugFlags.interpreter=1
151 p RtsFlags.DebugFlags.apply=1
152 p RtsFlags.DebugFlags.sanity=1
156 p RtsFlags.DebugFlags.interpreter=1
157 p RtsFlags.DebugFlags.sanity=1
161 p RtsFlags.DebugFlags.sanity=1