Commit ee7fcd72 authored by Ian Lynagh's avatar Ian Lynagh

When doing :l, abandon all breakpoints before we unload everything

I'm not 100% sure if this is the right fix, but it seems sensible and
stops break008 segfaulting for me on amd64/Linux.
parent 2a20c642
......@@ -1053,6 +1053,7 @@ loadModule' files = do
prev_context <- io $ GHC.getContext session
-- unload first
io $ GHC.abandonAll session
io (GHC.setTargets session [])
io (GHC.load session LoadAllTargets)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment