Re: [Dwarf-Discuss] variable locations - safe use as lvalues

2020-01-24 Thread Bishop, John E via Dwarf-Discuss
> (1) What if the user chose the first of these options and the program > changed the variable multiple times between lines 112 and 120? That's a user error (or misunderstanding), just as in the case where the code was far simpler: Line Source 10A = 10 11A = 11 12B = A ...an

Re: [Dwarf-Discuss] variable locations - safe use as lvalues

2020-01-24 Thread Andreas Arnez via Dwarf-Discuss
On Fri, Jan 24 2020, Bishop, John E via Dwarf-Discuss wrote: > With split lifetimes, the debugger can ask the user which of the > lifetimes the user wants to set. > > debugger-prompt> set A = 3 > Variable 'A' has more than one location. Choose which to set: > 1.The location us

Re: [Dwarf-Discuss] variable locations - safe use as lvalues

2020-01-24 Thread Frank Ch. Eigler via Dwarf-Discuss
Hi - > With split lifetimes, the debugger can ask the user which of the > lifetimes the user wants to set. [...] ...based on looking at the > 'assign' location list. Yup, those are reasonable user-interface ideas. (I'm not sure we'd require a whole separate location list, versus tagging the ex

Re: [Dwarf-Discuss] variable locations - safe use as lvalues

2020-01-24 Thread Bishop, John E via Dwarf-Discuss
With split lifetimes, the debugger can ask the user which of the lifetimes the user wants to set. debugger-prompt> set A = 3 Variable 'A' has more than one location. Choose which to set: 1. The location used in lines 112 and 120 2. The location used in line 111 3. All loc