The Trunk: Kernel-eem.931.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Kernel-eem.931.mcz

commits-2
Eliot Miranda uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-eem.931.mcz

==================== Summary ====================

Name: Kernel-eem.931
Author: eem
Time: 1 July 2015, 4:22:19.817 pm
UUID: edffee09-d6f1-4ae8-b10b-59fe640b5dfe
Ancestors: Kernel-eem.930

When an error occurs during complete:, which is used by the Debugger, raise a Notification to allow the Debugger to learn of the error's description.

=============== Diff against Kernel-eem.930 ===============

Item was changed:
  ----- Method: Process>>complete: (in category 'changing suspended state') -----
  complete: aContext
  "Run self until aContext is popped or an unhandled error is raised.  Return self's new top context, unless an unhandled error was raised then return the signaler context (rather than open a debugger)."
 
  | ctxt pair error |
  ctxt := suspendedContext.
  suspendedContext := nil.  "disable this process while running its stack in active process below"
  pair := Processor activeProcess
  evaluate: [ctxt runUntilErrorOrReturnFrom: aContext]
  onBehalfOf: self.
  suspendedContext := pair first.
  error := pair second.
+ error ifNotNil:
+ ["Give a debugger a chance to update its title to reflect the new exception"
+ Notification new
+ tag: {aContext. error};
+ signal.
+ ^error signalerContext].
- error ifNotNil: [^ error signalerContext].
  ^ suspendedContext!