GhciMonad.resume should restore the program's argv and progname
authorSimon Marlow <marlowsd@gmail.com>
Wed, 21 Oct 2009 12:52:40 +0000 (12:52 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 21 Oct 2009 12:52:40 +0000 (12:52 +0000)
commit7068f60cc7aefef514f02d5927d5abbdcd5c94d4
tree5d00de66c440e3f8fc68420c9858982d429f3898
parente542d75c0a4b529aeafc0fc51038d670a8adc74c
GhciMonad.resume should restore the program's argv and progname
I discovered that single-stepping over getArgs gave the wrong answer
sometimes, because we were forgetting to set the program's argv and
progname when resuming at a breakpoint.

Test is ghci.debugger/scripts/getargs.script.
ghc/GhciMonad.hs