From: Simon Marchi <simark@simark.ca>
To: Jan Vrany <jan.vrany@fit.cvut.cz>,
David Griffiths <dgriffiths@undo.io>, GDB <gdb@sourceware.org>
Subject: Re: GDB/MI executing a python command
Date: Thu, 23 May 2019 16:18:00 -0000 [thread overview]
Message-ID: <7e9d7546-2f5a-82fa-3f65-a58c907cfc23@simark.ca> (raw)
In-Reply-To: <a724ea8f4f322a57056520bf0103ce041d22853b.camel@fit.cvut.cz>
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.
Simon
next prev parent reply other threads:[~2019-05-23 16:03 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 [this message]
2019-05-24 12:08 ` Jan Vrany
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=7e9d7546-2f5a-82fa-3f65-a58c907cfc23@simark.ca \
--to=simark@simark.ca \
--cc=dgriffiths@undo.io \
--cc=gdb@sourceware.org \
--cc=jan.vrany@fit.cvut.cz \
/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