diff options
author | Pedro Alves <palves@redhat.com> | 2008-07-09 22:27:13 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-07-09 22:27:13 +0000 |
commit | ad52ddc6a45640f008b6f7e713090c79c9cf2947 (patch) | |
tree | ce749b423eb9d616d5e24f590c1abc47a0232dc2 /gdb/inferior.h | |
parent | 3a3e9ee36f308152115225d25b59ac0cc2f35170 (diff) | |
download | gdb-ad52ddc6a45640f008b6f7e713090c79c9cf2947.zip gdb-ad52ddc6a45640f008b6f7e713090c79c9cf2947.tar.gz gdb-ad52ddc6a45640f008b6f7e713090c79c9cf2947.tar.bz2 |
Add non_stop global.
* inferior.h (non_stop): Declare.
* infrun.c (non_stop, non_stop_1): New.
(set_non_stop, show_non_stop): New.
(_initialize_infrun): Add "set/show non-stop" command.
Diffstat (limited to 'gdb/inferior.h')
-rw-r--r-- | gdb/inferior.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h index 3c69d4e..9cbf4b4 100644 --- a/gdb/inferior.h +++ b/gdb/inferior.h @@ -137,6 +137,13 @@ extern void proceed (CORE_ADDR, enum target_signal, int); over such function. */ extern int step_stop_if_no_debug; +/* If set, the inferior should be controlled in non-stop mode. In + this mode, each thread is controlled independently. Execution + commands apply only to the the selected thread by default, and stop + events stop only the thread that had the event -- the other threads + are kept running freely. */ +extern int non_stop; + extern void generic_mourn_inferior (void); extern void terminal_save_ours (void); |