@@ -476,24 +476,20 @@ indicate that you are in a break loop.
476476<P />
477477<Log ><![CDATA[
478478gap> 1/0;
479- Rational operations: <divisor> must not be zero
480- not in any function
481- Entering break read-eval-print loop ...
482- you can 'quit;' to quit to outer loop, or
483- you can replace <divisor> via 'return <divisor>;' to continue
479+ Error, Rational operations: <divisor> must not be zero
480+ not in any function at *stdin*:2
481+ type 'quit;' to quit to outer loop
484482]]> </Log >
485483<P />
486484If errors occur within a break loop &GAP; enters another break loop at a
487485<E >deeper level</E >. This is indicated by a number appended to <C >brk</C >:
488486<P />
489487<Log ><![CDATA[
490488brk> 1/0;
491- Rational operations: <divisor> must not be zero
492- not in any function
493- Entering break read-eval-print loop ...
494- you can 'quit;' to quit to outer loop, or
495- you can replace <divisor> via 'return <divisor>;' to continue
496- brk_02>
489+ Error, Rational operations: <divisor> must not be zero
490+ not in any function at *stdin*:2
491+ type 'quit;' to quit to outer loop
492+ brk_2>
497493]]> </Log >
498494<P />
499495There are two ways to leave a break loop,
@@ -511,7 +507,7 @@ Note that &GAP; code between <C>quit;</C> and the end of the input line
511507is ignored.
512508<P />
513509<Log ><![CDATA[
514- brk_02 > quit;
510+ brk_2 > quit;
515511brk>
516512]]> </Log >
517513<P />
@@ -750,25 +746,30 @@ same as <Ref Func="Where"/> while also showing the arguments and local
750746variables of each function.
751747<P />
752748<Log ><![CDATA[
753- gap> StabChain(SymmetricGroup(100)); # After this we typed ^C
754- user interrupt at
755- bpt := S.orbit[1];
756- called from
757- SiftedPermutation( S, (g * rep) ^ -1 ) called from
758- StabChainStrong( S.stabilizer, [ sch ], options ); called from
759- StabChainStrong( S.stabilizer, [ sch ], options ); called from
760- StabChainStrong( S, GeneratorsOfGroup( G ), options ); called from
761- StabChainOp( G, rec(
762- ) ) called from
763- ...
764- Entering break read-eval-print loop ...
765- you can 'quit;' to quit to outer loop, or
766- you can 'return;' to continue
749+ gap> StabChain(SymmetricGroup(1000)); # After this we typed ^C
750+ Error, user interrupt
751+ *[1] genlabels := Filtered( genlabels, function ( x )
752+ return pnt ^ sgs[x] = pnt;
753+ end );
754+ @ GAPROOT/lib/stbc.gi:426
755+ [2] StabChainBaseStrongGenerators( dom{[ 1 .. Length( dom ) - 1 ]}, sgs, () )
756+ @ GAPROOT/lib/gpprmsya.gi:2006
757+ [3] StabChainOp( G, rec(
758+ ) )
759+ @ GAPROOT/lib/stbc.gi:28
760+ [4] StabChainImmutable( arg[1] )
761+ @ GAPROOT/lib/stbc.gi:18
762+ <function "StabChain">( <arguments> )
763+ called from read-eval loop at *stdin*:2
764+ you can 'return;'
767765brk> Where(2);
768- called from
769- SiftedPermutation( S, (g * rep) ^ -1 ) called from
770- StabChainStrong( S.stabilizer, [ sch ], options ); called from
771- ...
766+ *[1] genlabels := Filtered( genlabels, function ( x )
767+ return pnt ^ sgs[x] = pnt;
768+ end );
769+ @ GAPROOT/lib/stbc.gi:426
770+ [2] StabChainBaseStrongGenerators( dom{[ 1 .. Length( dom ) - 1 ]}, sgs, () )
771+ @ GAPROOT/lib/gpprmsya.gi:2006
772+ ... at *errin*:1
772773]]> </Log >
773774<P />
774775Note that the variables displayed even in the first line of the
@@ -836,10 +837,14 @@ Error, !
836837you can 'quit;' to quit to outer loop, or
837838you can 'return;' to continue
838839brk> Where();
839- *[1] Error( "!\n" ); at *stdin*:3 called from
840- [2] test( n + 1 ); at *stdin*:3 called from
841- [3] test( n + 1 ); at *stdin*:3 called from
842- [4] test( n + 1 ); at *stdin*:3 called from
840+ *[1] Error( "!\n" );
841+ @ *stdin*:4
842+ [2] test( n + 1 );
843+ @ *stdin*:4
844+ [3] test( n + 1 );
845+ @ *stdin*:4
846+ [4] test( n + 1 );
847+ @ *stdin*:4
843848<function "test">( <arguments> )
844849 called from read-eval loop at *errin*:1
845850brk> n;
@@ -848,20 +853,28 @@ brk> DownEnv();
848853brk> n;
8498543
850855brk> Where();
851- [1] Error( "!\n" ); at *stdin*:3 called from
852- *[2] test( n + 1 ); at *stdin*:3 called from
853- [3] test( n + 1 ); at *stdin*:3 called from
854- [4] test( n + 1 ); at *stdin*:3 called from
856+ [1] Error( "!\n" );
857+ @ *stdin*:4
858+ *[2] test( n + 1 );
859+ @ *stdin*:4
860+ [3] test( n + 1 );
861+ @ *stdin*:4
862+ [4] test( n + 1 );
863+ @ *stdin*:4
855864<function "test">( <arguments> )
856865 called from read-eval loop at *errin*:5
857866brk> DownEnv( 2 );
858867brk> n;
8598681
860869brk> Where();
861- [1] Error( "!\n" ); at *stdin*:3 called from
862- [2] test( n + 1 ); at *stdin*:3 called from
863- [3] test( n + 1 ); at *stdin*:3 called from
864- *[4] test( n + 1 ); at *stdin*:3 called from
870+ [1] Error( "!\n" );
871+ @ *stdin*:4
872+ [2] test( n + 1 );
873+ @ *stdin*:4
874+ [3] test( n + 1 );
875+ @ *stdin*:4
876+ *[4] test( n + 1 );
877+ @ *stdin*:4
865878<function "test">( <arguments> )
866879 called from read-eval loop at *errin*:8
867880brk> DownEnv( -2 );
@@ -894,10 +907,13 @@ gap> fun := function() local x; x := 3; bar(); end;
894907function( ) ... end
895908gap> fun();
896909Error, !!
897- called from
898- bar( ); called from
899- <function>( <arguments> ) called from read-eval-loop
900- Entering break read-eval-print loop ...
910+ Stack trace:
911+ *[1] Error( "!!\n" );
912+ @ *stdin*:4
913+ [2] bar( );
914+ @ *stdin*:7
915+ <function "fun">( <arguments> )
916+ called from read-eval loop at *stdin*:8
901917you can 'quit;' to quit to outer loop, or
902918you can 'return;' to continue
903919brk> x;
0 commit comments