Lines Matching full:code
3 # Disassemble the Code: line in Linux oopses
23 code=
29 *Code:*)
30 code=$i
37 code="$code $xdump"
47 if [ -z "$code" ]; then
52 echo $code
53 code=`echo $code | sed -e 's/.*Code: //'`
55 width=`expr index "$code" ' '`
93 marker=`expr index "$code" "\<"`
95 marker=`expr index "$code" "\("`
100 echo All code >> $T.oo
102 beforemark=`echo "$code"`
109 # and fix code at-and-after marker
110 code=`echo "$code" | cut -c$((${marker} + 1))-`
112 echo Code starting with the faulting instruction > $T.aa
114 code=`echo $code | sed -e 's/ [<(]/ /;s/[>)] / /;s/ /,0x/g; s/[>)]$//'`
116 echo $code >> $T.s
120 # (lines of whole $T.oo) - (lines of $T.aa, i.e. "Code starting") + 3,