[project @ 2003-08-22 22:24:12 by sof]
authorsof <unknown>
Fri, 22 Aug 2003 22:24:16 +0000 (22:24 +0000)
committersof <unknown>
Fri, 22 Aug 2003 22:24:16 +0000 (22:24 +0000)
commitcffcb52b7b7518db39d64394270392d06215cf90
tree84ab1a425b2dcd1d9cc36200d6003b885e209de0
parent3c6b9911369deda84fcc74a31372e6f51e0cb054
[project @ 2003-08-22 22:24:12 by sof]
setupRtsFlags(): don't overwrite argv[0] with its basename:
   - argv[] may not point to writeable memory
   - System.Environment.getProgName strips off the 'dirname' portion
     anyway.
   - Not possible to get at the untransformed argv[0] from
     Haskell code, should such a need arise.

Uses of prog_argv[0] within the RTS has now been replaced with prog_name,
which is the basename of prog_argv[0].
ghc/includes/Stg.h
ghc/rts/ProfHeap.c
ghc/rts/Profiling.c
ghc/rts/RtsFlags.c
ghc/rts/RtsStartup.c
ghc/rts/RtsUtils.c