Re: python API to trigger a "select-frame" like event with a given location
Tom Tromey <[email protected]> Fri, 03 Oct 2025 13:40:17 -0600
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "Andrew" == Andrew Burgess via Gdb <[email protected]> writes: >> If not: could there be an extension to "select-frame level" >> >> select-frame level LOCATION >> >> select-frame level -- Select a stack frame by level and show LOCATION in >> the UI >> >> or a new command >> >> show-location LOCATION >> >> that executes what select-frame does, but _without_ selecting anything >> (calling interps_notify() with the location as "selection")? Andrew> If I understand what you need, then you are looking for way to implement Andrew> your 'myup' and 'mydown' commands such that GDB will appear to move Andrew> though the artificial frames (e.g. 0.0, 0.1, 0.2, 0.3, etc). To do this Andrew> you need to select the real frame (#0), but then want some way such that Andrew> GDB will notify the various UI's to indicate that their focus should Andrew> shift to the source locations corresponding to the artificial frames, Andrew> right? Andrew> You mention, but seem to dismiss, using 'list'. Can you expand on why Andrew> this doesn't meet your needs? Andrew> Which UIs in particular is it that you are interested in seeing update? Andrew> I ask because I'm wondering which events it is that would need to be Andrew> emitted. Could you expand with some user stories, which UI is the user Andrew> looking at, what actions do they perform, and what is updated as a Andrew> consequence. FWIW there was some discussion of some related ideas in https://sourceware.org/bugzilla/show_bug.cgi?id=18567 My view is that it would be good to have more features in this area, and that the main barrier is just implementing them, with maybe the main secondary problem being having convenient ways to turn them off. thanks, Tom