--- gforth/debugs.fs 2009/05/11 09:50:59 1.21 +++ gforth/debugs.fs 2011/04/20 17:24:31 1.23 @@ -1,6 +1,6 @@ \ Simple debugging aids -\ Copyright (C) 1995,1997,1999,2002,2003,2004,2005,2006,2007 Free Software Foundation, Inc. +\ Copyright (C) 1995,1997,1999,2002,2003,2004,2005,2006,2007,2009 Free Software Foundation, Inc. \ This file is part of Gforth. @@ -55,7 +55,15 @@ stderr value debug-fid ( -- fid ) ' (.debugline) IS .debugline : .debugline-directed ( nfile nline -- ) - ['] .debugline debug-fid outfile-execute ; + action-of type action-of emit { oldtype oldemit } + try + ['] (type) is type ['] (emit) is emit + ['] .debugline debug-fid outfile-execute + 0 + restore + oldemit is emit oldtype is type + endtry + throw ; :noname ( -- ) current-sourcepos .debugline-directed ;