diff options
author | Pedro Alves <palves@redhat.com> | 2008-08-16 23:51:14 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-08-16 23:51:14 +0000 |
commit | 0d6431e2551df9cc004817a09f19a752b959ec66 (patch) | |
tree | 71e1c0a97457866e71dedd9d5692d5e36ffd14da /gdb/top.c | |
parent | 8931f5261f2cc200cbaa534d82b3199ac8e4dbdb (diff) | |
download | gdb-0d6431e2551df9cc004817a09f19a752b959ec66.zip gdb-0d6431e2551df9cc004817a09f19a752b959ec66.tar.gz 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/top.c')
-rw-r--r-- | gdb/top.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -477,7 +477,7 @@ Cannot execute this command without a live selected thread. See `help thread'." /* FIXME: This should be cacheing the frame and only running when the frame changes. */ - if (target_has_stack && !is_running (inferior_ptid)) + if (target_has_stack && is_stopped (inferior_ptid)) { flang = get_frame_language (); if (!warned |