Changes between Version 53 and Version 54 of NewGhciDebugger


Ignore:
Timestamp:
Apr 9, 2007 3:28:59 PM (8 years ago)
Author:
guest
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NewGhciDebugger

    v53 v54  
    222222}}}
    223223
    224    Suppose we have a breakpoint set somewhere inside the computation done by `foo`, but there are no breakpoints in the computation done by `bar`. When we run this program in GHCi the following things happen:
    225     * `foo` gets forked and `foo` and `bar` begin their work
    226     * `bar` completes its job and we return to the GHCi prompt (uh oh!)
    227     * `foo` eventually hits a breakpoint and attempts to return to the command line, but it can't because we are already there (in the previous step).
     224Suppose we have a breakpoint set somewhere inside the computation done by `foo`, but there are no breakpoints in the computation done by `bar`. When we run this program in GHCi the following things happen:
     225    - `foo` gets forked and `foo` and `bar` begin their work
     226    - `bar` completes its job and we return to the GHCi prompt (uh oh!)
     227    - `foo` eventually hits a breakpoint and attempts to return to the command line, but it can't because we are already there (in the previous step).
    228228
    229229Now the foo thread is blocked, so we can't witness the breakpoint.
     230
     231 * foober
    230232
    231233