Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Denis PILAT <denis.pilat@st.com>
To: Vladimir Prus <vladimir@codesourcery.com>
Cc: gdb@sources.redhat.com
Subject: Re: Calling inferior functions and MI notification
Date: Mon, 31 Mar 2008 13:00:00 -0000	[thread overview]
Message-ID: <47F0DE2C.6010302@st.com> (raw)
In-Reply-To: <200803271949.10914.vladimir@codesourcery.com>

Hi Vladimir,

I think solution 2 is better since it will let Eclipse (or any FE) the 
possibility to handles "*running" as an Out Of Band Record, as then let 
the user knows that the program is running...
Moreover, when within Eclipse you hit a breakpoint in an inferior 
function call, it exits gdb so I think CDT needs to handle inf. calls in 
a better way, or gdb avoid stopping when it's an inferior function call.

Having these new notifications would help I guess, at least to warn the 
GUI about the execution of a command and avoid entering new execution 
command until it returns.

Did you post that to cdt mailing list ?
Denis

Vladimir Prus wrote:
> Hello,
> presently, when a GDB command calls an inferior function, for
> example:
>
> 	-data-evaluate-expression foo()
>
> the MI frontend is not informed in any way. So, should the function
> get stuck, the user will not even understand that inferior is running,
> and will have hard time figuring that he should click the "interrupt"
> button, or whatever.
>
> Ideally, the output should be like this:
>
> 	(gdb) -data-evaluate-expression foo()
> 	*running,thread-id="1"
> 	*stopped
> 	^done,result="100"
>
> However, I believe that making such a change will immediately break both KDevelop
> and Eclipse CDT -- because whenever they see *stopped, a full refresh of everything
> is done. If any variable object involves function call, *stopped will be emitted
> again, and cause another refresh. At least, I cannot see anything protecting
> from that.
>
> So, we have two solutions:
> 1. Just don't emit those notification for inferior function calls.
> 2. Don't emit them by default. Provide a command to enable this new
> behaviour.
>
> Comments or better suggestions?
>
> - Volodya
>
>
>
>
>   


  reply	other threads:[~2008-03-31 12:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-27 19:02 Vladimir Prus
2008-03-31 13:00 ` Denis PILAT [this message]
2008-03-31 16:18 ` Daniel Jacobowitz
2008-03-31 16:49 ` Pawel Piech
2008-03-31 16:55   ` Vladimir Prus
2008-03-31 17:39     ` Pawel Piech
2008-03-31 22:05       ` Vladimir Prus

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=47F0DE2C.6010302@st.com \
    --to=denis.pilat@st.com \
    --cc=gdb@sources.redhat.com \
    --cc=vladimir@codesourcery.com \
    /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