The Trunk: Tools-fbs.284.mcz

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

The Trunk: Tools-fbs.284.mcz

commits-2
Levente Uzonyi uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-fbs.284.mcz

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

Name: Tools-fbs.284
Author: fbs
Time: 2 December 2010, 5:42:26.979 pm
UUID: 13b11c52-520e-b94a-83a4-a182cd1f2383
Ancestors: Tools-ul.282

When a method changes out from under your feet in the Debugger (e.g., you remove an instvar triggering a recompile of a method through which you've stepped), the Debugger blanks out contents. In the UI, this manifests as a blank code pane.

This change resets the contents ivar by setting it to the new, recompiled, CompiledMethod as a side effect of calling self selectedMessage.

This version is Eliot Miranda's improved version of my (fbs) initial submission.

=============== Diff against Tools-ul.282 ===============

Item was changed:
  ----- Method: Debugger>>contents (in category 'accessing') -----
  contents
  "Depending on the current selection, different information is retrieved.
  Answer a string description of that information.  This information is the
  method in the currently selected context."
 
+ ^contents ifNil:
+ [self selectedContext
+ ifNotNil: [self selectedMessage]
+ ifNil: [String new]] !
- contents == nil ifTrue: [^ String new].
- ^ contents copy!