diff options
author | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2020-04-01 21:33:05 +0200 |
---|---|---|
committer | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2020-04-01 21:33:05 +0200 |
commit | a0714d305fb78b3a2a74a2acd6d8c66da80a6387 (patch) | |
tree | 72a23f1e24f8375d9570e2b2ab89b8453340c66f /gdb/target.h | |
parent | 3ce23ca1de4c769c4b7247f0724a10ef5fb24a11 (diff) | |
download | binutils-a0714d305fb78b3a2a74a2acd6d8c66da80a6387.zip binutils-a0714d305fb78b3a2a74a2acd6d8c66da80a6387.tar.gz binutils-a0714d305fb78b3a2a74a2acd6d8c66da80a6387.tar.bz2 |
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.
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h index 96e7210..9a1dd80 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -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 ()) |