Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* How to use -list-target-features MI command
@ 2018-04-09 14:22 Jan Vrany
  2018-04-23  1:37 ` Simon Marchi
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Vrany @ 2018-04-09 14:22 UTC (permalink / raw)
  To: gdb

Hi there, 

I need to know (in advance) whether the target supports async 
mode or not. 
I know that -list-target-features can be used for that, but
not sure when and how to use -list-target-features. 

The documentation says:

"Whenever a target can change, due to commands such as -target-select,
-target-attach or -exec-run, the list of target features may change,
and the frontend should obtain it again."

However, once I issue `-exec-run` using a target with no async mode
support, I will not get the result of -list-target-feature before
debugee stops. 

Another problem is that user may enter CLI command manually. In case,
how do I find out that target may have changed and I should check for
features? 

Could you give me any advice on how and when to correctly check for
target features? 

Thanks a lot! 

Jan


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

end of thread, other threads:[~2018-05-27 22:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-09 14:22 How to use -list-target-features MI command Jan Vrany
2018-04-23  1:37 ` Simon Marchi
2018-04-24 10:20   ` Pedro Alves
2018-04-26 23:49     ` Jan Vrany
2018-04-27 18:44       ` Simon Marchi
2018-05-18 21:16         ` Jan Vrany
2018-05-27 22:13           ` Simon Marchi

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