diff options
author | Pedro Alves <pedro@codesourcery.com> | 2008-08-16 23:51:14 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2008-08-16 23:51:14 +0000 |
commit | 0994c7d9a308c2927e30e2e950d64ffe3226dc96 (patch) | |
tree | d81fd1e6366292c76a68d3ef4e0264e1ba319ea4 /gdb/event-top.c | |
parent | 46641b4ab09868a9f9008d26908bb0377b7a94ae (diff) | |
download | gdb-0994c7d9a308c2927e30e2e950d64ffe3226dc96.tar.gz |
* 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c index 722c28e1792..61c431dabf2 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); |