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" ' '`
86 marker=`expr index "$code" "\<"`
88 marker=`expr index "$code" "\("`
93 echo All code >> $T.oo
95 beforemark=`echo "$code"`
102 # and fix code at-and-after marker
103 code=`echo "$code" | cut -c$((${marker} + 1))-`
105 echo Code starting with the faulting instruction > $T.aa
107 code=`echo $code | sed -e 's/ [<(]/ /;s/[>)] / /;s/ /,0x/g; s/[>)]$//'`
109 echo $code >> $T.s
113 # (lines of whole $T.oo) - (lines of $T.aa, i.e. "Code starting") + 3,