diff options
author | Pedro Alves <palves@redhat.com> | 2008-07-09 22:16:15 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-07-09 22:16:15 +0000 |
commit | 8ea051c51f64f1f720b12a7424c56ac31ff9a58b (patch) | |
tree | 9ec47d09116f6c80e49cdf1d3a3bc1dce8c944b5 /gdb/inferior.h | |
parent | 4487aabf2e89820ee5243a62c3d7ea9c0c5353f4 (diff) | |
download | gdb-8ea051c51f64f1f720b12a7424c56ac31ff9a58b.zip gdb-8ea051c51f64f1f720b12a7424c56ac31ff9a58b.tar.gz gdb-8ea051c51f64f1f720b12a7424c56ac31ff9a58b.tar.bz2 |
Add "executing" property to threads.
* inferior.h (target_executing): Delete.
* gdbthread.h (struct thread_info): Add executing_ field.
(set_executing, is_executing): New.
* thread.c (main_thread_executing): New.
(init_thread_list): Clear it and also main_thread_running.
(is_running): Return false if target has no execution.
(any_running, is_executing, set_executing): New.
* top.c: Include "gdbthread.h".
(target_executing): Delete.
(execute_command): Replace target_executing check by any_running.
* event-top.c: Include "gdbthread.h".
(display_gdb_prompt, command_handler): Replace target_executing by
is_running.
* inf-loop.c: Include "gdbthread.h". Don't mark as not executing
here. Replace target_executing by is_running.
* infrun.c (handle_inferior_event): Mark all threads as
not-executing.
* linux-nat.c (linux_nat_resume): Don't mark thread as executing
here.
* stack.c (get_selected_block): Return null if inferior is
executing.
* target.c (target_resume): Mark resumed ptid as executing.
* breakpoint.c (until_break_command): Replace target_executing
check by is_executing.
* remote.c (remote_async_resume): Don't mark inferior as executing
here.
* mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
by any_running.
* mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
(mi_execute_async_cli_command): Replace target_executing by
is_running.
* frame.c (get_current_frame): Error out if the current thread is
executing.
(has_stack_frames): New.
(get_selected_frame, deprecated_safe_get_selected_frame): Check
has_stack_frames.
* Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
$(gdbthread_h).
Diffstat (limited to 'gdb/inferior.h')
-rw-r--r-- | gdb/inferior.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h index dd07efa..3c69d4e 100644 --- a/gdb/inferior.h +++ b/gdb/inferior.h @@ -111,12 +111,6 @@ extern const char *get_inferior_io_terminal (void); extern ptid_t inferior_ptid; -/* Is the inferior running right now, as a result of a 'run&', - 'continue&' etc command? This is used in asycn gdb to determine - whether a command that the user enters while the target is running - is allowed or not. */ -extern int target_executing; - /* Are we simulating synchronous execution? This is used in async gdb to implement the 'run', 'continue' etc commands, which will not redisplay the prompt until the execution is actually over. */ |