Re: new-ui, the console, and synchronization by the front end

Bob Rossi <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
On Sat, Apr 11, 2020 at 04:42:04PM +0100, Pedro Alves wrote:
> On 4/11/20 3:36 PM, Bob Rossi wrote:
> > - Can CGDB hook into gdb to run commands between
> >   the user console commands? (For instance, 'up' in gdb doesn't
> >   produce an mi async command to tell you the source file
> >   position has changed. Annotate=1 will alert you of this.
> >   So CGDB may want to run -file-list-exec-source-file
> >   between each user command to get the new file position.)
> 
> Maybe you're using an old GDB.  Current GDB emits a =thread-selected
> async notification in response to "up", and that notification
> includes information about the current frame and source file
> position.

Hi Pedro,

I really appreciate the responses, very helpful!

The only remaining question I have is about preventing
the user from running more than one command at a time.

The only way I know to do that is to intercept each of the
commands a user sends and queue them in CGDB itself.
Then to use prompt annotations using annotate=2 or 3
to determine when the next command is ready by GDB.

Does anyone know of another way to accomplish this?

Thanks,
Bob Rossi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.