Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Reporting non-stop support
@ 2008-05-04 17:03 Vladimir Prus
  2008-05-05 16:27 ` Pawel Piech
  0 siblings, 1 reply; 4+ messages in thread
From: Vladimir Prus @ 2008-05-04 17:03 UTC (permalink / raw)
  To: gdb


As discussed before, it would be nice if GDB could report if the current
target supports non-stop, so that frontend can act accordingly (even if
"accordingly" means saying "sorry, non-stop is not supported").
However, it's a bit tricky, because until we do "run", the two
targets on the target stack are dummy target and exec_ops -- neither of
which, naturally, have any clue about non-stop.

It's only when we do "run" when find_default_run_target is called, and
something reasonable is pushed to the target stack. Which means that
until we do "run", we don't know if the target supports non-stop, and
when we do "run", it's a bit too later to set non-stop mode.

Any suggestions?

- Volodya


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

* Re: Reporting non-stop support
  2008-05-04 17:03 Reporting non-stop support Vladimir Prus
@ 2008-05-05 16:27 ` Pawel Piech
  2008-05-05 18:46   ` Vladimir Prus
  0 siblings, 1 reply; 4+ messages in thread
From: Pawel Piech @ 2008-05-05 16:27 UTC (permalink / raw)
  To: gdb

I just think this shows how important it is that the client be able to 
use the same protocol to communicate in either mode, and be able to use 
the event data alone to determine what state actually changed on the target.

Cheers,
Pawel

Vladimir Prus wrote:
> As discussed before, it would be nice if GDB could report if the current
> target supports non-stop, so that frontend can act accordingly (even if
> "accordingly" means saying "sorry, non-stop is not supported").
> However, it's a bit tricky, because until we do "run", the two
> targets on the target stack are dummy target and exec_ops -- neither of
> which, naturally, have any clue about non-stop.
>
> It's only when we do "run" when find_default_run_target is called, and
> something reasonable is pushed to the target stack. Which means that
> until we do "run", we don't know if the target supports non-stop, and
> when we do "run", it's a bit too later to set non-stop mode.
>
> Any suggestions?
>
> - Volodya
>   


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

* Re: Reporting non-stop support
  2008-05-05 16:27 ` Pawel Piech
@ 2008-05-05 18:46   ` Vladimir Prus
  2008-05-05 19:44     ` Pawel Piech
  0 siblings, 1 reply; 4+ messages in thread
From: Vladimir Prus @ 2008-05-05 18:46 UTC (permalink / raw)
  To: gdb

Pawel Piech wrote:

> I just think this shows how important it is that the client be able to
> use the same protocol to communicate in either mode, and be able to use
> the event data alone to determine what state actually changed on the target.

Heh, I don't think so. Do you really think it's acceptable to have a "non-stop"
checkbox in UI that will not actually work, and find out that it does not work
only when your program stops for the first time -- stopping all threads? I think
this is not acceptable in any way -- regardless of how carefully and politely
gdb phrases "all threads stopped, your real time application is messed up" 
information.

- Volodya



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

* Re: Reporting non-stop support
  2008-05-05 18:46   ` Vladimir Prus
@ 2008-05-05 19:44     ` Pawel Piech
  0 siblings, 0 replies; 4+ messages in thread
From: Pawel Piech @ 2008-05-05 19:44 UTC (permalink / raw)
  To: gdb

I don't think a "non-stop" mode needs to be enabled by a "check box".  
It's more of a property of a target rather than a feature that a user 
requests.  Depending on what kind of target the user is connecting to, 
he will likely know beforehand whether it supports non-stop debugging, 
and if it does, he will naturally want it enabled.

Cheers,
Pawel

Vladimir Prus wrote:
> Pawel Piech wrote:
>
>   
>> I just think this shows how important it is that the client be able to
>> use the same protocol to communicate in either mode, and be able to use
>> the event data alone to determine what state actually changed on the target.
>>     
>
> Heh, I don't think so. Do you really think it's acceptable to have a "non-stop"
> checkbox in UI that will not actually work, and find out that it does not work
> only when your program stops for the first time -- stopping all threads? I think
> this is not acceptable in any way -- regardless of how carefully and politely
> gdb phrases "all threads stopped, your real time application is messed up" 
> information.
>
> - Volodya
>
>
>   


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

end of thread, other threads:[~2008-05-05 19:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-04 17:03 Reporting non-stop support Vladimir Prus
2008-05-05 16:27 ` Pawel Piech
2008-05-05 18:46   ` Vladimir Prus
2008-05-05 19:44     ` Pawel Piech

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