Browse Source

Added process ID to trap output

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@7001 8c9fc860-2736-0410-a75d-ab315db34111
skoster 8 years ago
parent
commit
fe60d6f213
1 changed files with 1 additions and 0 deletions
  1. 1 0
      source/Generic.Unix.Traps.Mod

+ 1 - 0
source/Generic.Unix.Traps.Mod

@@ -159,6 +159,7 @@ VAR
 				S.GET( sp, pc );   (* get return address on top of stack *)
 			END;
 			w.Ln;
+			w.String(" pid = "); w.Hex(process.id , -8 );
 			w.String( "    sp = " );  w.Address( sp );  w.String( ", fp = " );  w.Address( bp );
 			w.String( ", pc = " );  w.Address( pc );  w.Ln;
 			w.Ln;