#13710: Debugger's ListView has problems with recursive functions
-----------------------------------+------------------------------
Reporter: KapiX | 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 |
-----------------------------------+------------------------------
If there is a recursive function on the stack, then clicking on them will
move to code for the first on top. Example:
- ...
- RemoveView(1)
- RemoveView(2)
- ...
Clicking on 2 for the first time will move to the code for 1. Clicking
second time works.
Can be tested by removing `->View()` from [1] and [2], then running [3]
script. Application will crash on exit and call stack should have two
`RemoveView` functions.
[1] https://github.com/KapiX/YAB/blob/tabview/src/YabInterface.cpp#L3465
[2] https://github.com/KapiX/YAB/blob/tabview/src/YabInterface.cpp#L3480
[3] https://github.com/KapiX/YAB/blob/tabview/yab-
IDE/Programs/Examples/AllInOne.yab
--
Ticket URL: <https://dev.haiku-os.org/ticket/13710>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.