Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Calling inferior functions and MI notification
@ 2008-03-27 19:02 Vladimir Prus
  2008-03-31 13:00 ` Denis PILAT
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Vladimir Prus @ 2008-03-27 19:02 UTC (permalink / raw)
  To: gdb


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




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-03-31 16:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-27 19:02 Calling inferior functions and MI notification Vladimir Prus
2008-03-31 13:00 ` Denis PILAT
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox