[haiku-bugs] [Haiku] #11459: [Debugger] Handle previous value save/restore more intelligently

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Wed, 12 Nov 2014 13:01:52 -0000

#11459: [Debugger] Handle previous value save/restore more intelligently
-----------------------------------+------------------------------
 Reporter:  anevilyak              |        Owner:  anevilyak
     Type:  bug                    |       Status:  new
 Priority:  normal                 |    Milestone:  Unscheduled
Component:  Applications/Debugger  |      Version:  R1/Development
 Keywords:                         |   Blocked By:
 Blocking:                         |  Has a Patch:  0
 Platform:  All                    |
-----------------------------------+------------------------------
 Currently, VariablesView saves and restores its view state on every frame
 change, including those triggered by simply selecting a different frame in
 the same stack trace. However, while this is necessary in order to ensure
 that things like selected formats and expanded nodes are preserved, it has
 an undesired side effect, namely that it also overwrites the previous
 saved values of those nodes. Consequently, after switching back to the
 frame, it will no longer show the value changes that it did just before.

 We need to detect this situation and not update the saved values in such a
 circumstance, only doing so when the thread in question has actually
 resumed execution. A simple solution may be to check if the frame is being
 changed from one non-null value to another, as we normally clear the frame
 when execution continues.

--
Ticket URL: <https://dev.haiku-os.org/ticket/11459>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: