aboutsummaryrefslogtreecommitdiff
path: root/gdb/event-top.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-08-16 23:51:14 +0000
committerPedro Alves <palves@redhat.com>2008-08-16 23:51:14 +0000
commit0d6431e2551df9cc004817a09f19a752b959ec66 (patch)
tree71e1c0a97457866e71dedd9d5692d5e36ffd14da /gdb/event-top.c
parent8931f5261f2cc200cbaa534d82b3199ac8e4dbdb (diff)
downloadfsf-binutils-gdb-0d6431e2551df9cc004817a09f19a752b959ec66.zip
fsf-binutils-gdb-0d6431e2551df9cc004817a09f19a752b959ec66.tar.gz
fsf-binutils-gdb-0d6431e2551df9cc004817a09f19a752b959ec66.tar.bz2
* gdbthread.h: Add comments.
* stack.c (get_selected_block): Return 0 on an exited thread. * top.c (execute_command): Check for is_stopped, not !is_running. * event-top.c (command_handler): Likewise.
Diffstat (limited to 'gdb/event-top.c')
-rw-r--r--gdb/event-top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c
index 722c28e..61c431d 100644
--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -518,7 +518,7 @@ command_handler (char *command)
/* Do any commands attached to breakpoint we stopped at. Only if we
are always running synchronously. Or if we have just executed a
command that doesn't start the target. */
- if (!target_can_async_p () || !is_running (inferior_ptid))
+ if (!target_can_async_p () || is_stopped (inferior_ptid))
{
bpstat_do_actions (&stop_bpstat);
do_cleanups (old_chain);