Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jan Vrany <jan.vrany@fit.cvut.cz>
To: Simon Marchi <simark@simark.ca>,
	David Griffiths <dgriffiths@undo.io>,
	       GDB <gdb@sourceware.org>
Subject: Re: GDB/MI executing a python command
Date: Fri, 24 May 2019 12:08:00 -0000	[thread overview]
Message-ID: <75ba88f0d3dc96d4f1e4f9ad6520a5b2f848d6d6.camel@fit.cvut.cz> (raw)
In-Reply-To: <7e9d7546-2f5a-82fa-3f65-a58c907cfc23@simark.ca>

On Thu, 2019-05-23 at 12:03 -0400, Simon Marchi wrote:
> On 2019-05-23 11:54 a.m., Jan Vrany wrote:
> > I dont think so. In my opinion it *should* produce correct MI output.  If there's an MI channel
> > opened, whenever the inferior is run or stopped, there should be an MI event, no matter what. 
> > 
> > Imagine you have an MI frontend and you execute, from CLI, a custom python command than in turn
> > does gdb.execute("stepi") - or worse, gdb.execute("cont"). Then inferior is running but MI frontend
> > still thinks it is stopped, making those two out of sync. This would lead in all sort of problems
> > like frontent would still show "stopped", when switching thread in UI would result an MI error when
> > trying to obtain stacktrace (which hard to handle, since all you get is a *localized* error message). 
> > And so on.
> 
> Yes, but that's what the *running notification is for.  I was talking about the ^running, which
> is not a notification, but a reply to a command.  It is strange that the MI channel gets a reply
> for a command it did not send.

Ah, I'm sorry! My eyes are failing me. 
Then I of course agree. 

Jan
> 
> Simon
> 


      reply	other threads:[~2019-05-23 16:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CA++j6c4QJhh1n2x2EOt+tzy0me_dLM9adOUqAuL4u1Y7szE_DA@mail.gmail.com>
     [not found] ` <6dd959f2-09cf-2bb2-45cd-0f945ae5409d@simark.ca>
2019-05-23 16:03   ` Jan Vrany
2019-05-23 16:18     ` Simon Marchi
2019-05-24 12:08       ` Jan Vrany [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=75ba88f0d3dc96d4f1e4f9ad6520a5b2f848d6d6.camel@fit.cvut.cz \
    --to=jan.vrany@fit.cvut.cz \
    --cc=dgriffiths@undo.io \
    --cc=gdb@sourceware.org \
    --cc=simark@simark.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox