Diff for /gforth/dis-gdb.fs between versions 1.6 and 1.11

version 1.6, 2007/12/31 19:02:24 version 1.11, 2011/01/09 20:04:15
Line 1 Line 1
 \ dis-gdb.fs    disassembler using gdb  \ dis-gdb.fs    disassembler using gdb
 \  \
 \ Copyright (C) 2004,2007 Free Software Foundation, Inc.  \ Copyright (C) 2004,2007,2008,2010 Free Software Foundation, Inc.
   
 \ This file is part of Gforth.  \ This file is part of Gforth.
   
Line 24 Line 24
   
 : disasm-gdb { addr u -- }  : disasm-gdb { addr u -- }
     base @ >r hex      base @ >r hex
     s\" type mktemp >/dev/null && type gdb >/dev/null && file=`mktemp -t gforthdis.XXXXXXXXXX` && file2=`mktemp -t gforthdis.XXXXXXXXXX` && echo \"set verbose off\nset logging file $file\nset logging on\ndisas " save-mem ( addr u addr1 u1 )      s\" type mktemp >/dev/null && type gdb >/dev/null && file=`mktemp -t gforthdis.XXXXXXXXXX` && file2=`mktemp -t gforthdis.XXXXXXXXXX` && echo \"set verbose off\nset logging file $file\nset logging on\nset interactive-mode off\ndisas " save-mem ( addr u addr1 u1 )
     addr 0 <<# bl hold # #s 'x hold # #> append-extend-string #>>      addr 0 <<# ',' hold # #s 'x hold # #> append-extend-string #>>
     addr u + 0 <<# # #s 'x hold # #> append-extend-string #>>      addr u + 0 <<# # #s 'x hold # #> append-extend-string #>>
     r> base ! cr      r> base ! cr
     s\" \nset logging off\nquit\n\" >$file2 && gdb -nx -q -p $PPID -x $file2 2>/dev/null >/dev/null && rm $file2 && grep -v \"of assembler\" $file && rm $file" append-extend-string      s\" \nset logging off\nquit\n\" >$file2 && gdb -nx -q -p `ps -p $$ -o ppid=` -x $file2 2>/dev/null >/dev/null && rm $file2 && grep -v \"of assembler\" $file && rm $file" append-extend-string
     2dup (system) 2swap drop free throw throw if      2dup (system) 2swap drop free throw throw if
         addr u dump          addr u dump
     endif ;      endif ;

Removed from v.1.6  
changed lines
  Added in v.1.11


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>