diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-11-09 07:54:27 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-11-09 07:54:27 +0000 |
commit | ed406532765b59fbd78f011179f7174611412e12 (patch) | |
tree | 55dc3fe338c7b762e1d327ffbd84176361895ddf /gdb/thread.c | |
parent | 5e87ae0509aca39c64a0ad4cd4f1e20e75924289 (diff) | |
download | gdb-ed406532765b59fbd78f011179f7174611412e12.zip gdb-ed406532765b59fbd78f011179f7174611412e12.tar.gz gdb-ed406532765b59fbd78f011179f7174611412e12.tar.bz2 |
* thread.c (print_thread_info): Eliminate now useless checks
for exited threads.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r-- | gdb/thread.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/gdb/thread.c b/gdb/thread.c index 02fb845..b1e318d 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -678,17 +678,14 @@ print_thread_info (struct ui_out *uiout, int requested_thread) ui_out_text (uiout, " "); ui_out_field_string (uiout, "target-id", target_tid_to_str (tp->ptid)); - if (tp->state_ != THREAD_EXITED) + extra_info = target_extra_thread_info (tp); + if (extra_info) { - extra_info = target_extra_thread_info (tp); - if (extra_info) - { - ui_out_text (uiout, " ("); - ui_out_field_string (uiout, "details", extra_info); - ui_out_text (uiout, ")"); - } - ui_out_text (uiout, " "); + ui_out_text (uiout, " ("); + ui_out_field_string (uiout, "details", extra_info); + ui_out_text (uiout, ")"); } + ui_out_text (uiout, " "); if (tp->state_ == THREAD_RUNNING) ui_out_text (uiout, "(running)\n"); @@ -706,9 +703,7 @@ print_thread_info (struct ui_out *uiout, int requested_thread) if (ui_out_is_mi_like_p (uiout)) { char *state = "stopped"; - if (tp->state_ == THREAD_EXITED) - state = "exited"; - else if (tp->state_ == THREAD_RUNNING) + if (tp->state_ == THREAD_RUNNING) state = "running"; ui_out_field_string (uiout, "state", state); } |