gdb: define convenience function 'exists_non_stop_target'
Define a predicate function that returns true if there exists an inferior with a non-stop target. gdb/ChangeLog: 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> * target.h (exists_non_stop_target): New function declaration. * target.c (exists_non_stop_target): New function.
This commit is contained in:
parent
3ce23ca1de
commit
a0714d305f
3 changed files with 28 additions and 0 deletions
|
@ -1857,6 +1857,9 @@ extern enum auto_boolean target_non_stop_enabled;
|
|||
non-stop" is on. */
|
||||
extern int target_is_non_stop_p (void);
|
||||
|
||||
/* Return true if at least one inferior has a non-stop target. */
|
||||
extern bool exists_non_stop_target ();
|
||||
|
||||
#define target_execution_direction() \
|
||||
(current_top_target ()->execution_direction ())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue