diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-03-17 18:41:29 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-03-17 18:41:29 +0000 |
commit | 0bcd3e20560a37fde7d6a76cf129aa65e023a5b4 (patch) | |
tree | 9f8ad64e65b3af764c2418256981cd992315a62a /gdb/thread.c | |
parent | 5d96d68f647fe4f54cfba879581de9ac15ef4f9b (diff) | |
download | gdb-0bcd3e20560a37fde7d6a76cf129aa65e023a5b4.zip gdb-0bcd3e20560a37fde7d6a76cf129aa65e023a5b4.tar.gz gdb-0bcd3e20560a37fde7d6a76cf129aa65e023a5b4.tar.bz2 |
* thread.c (print_thread_info): Don't insist
on having current thread if there are no
threads at all.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r-- | gdb/thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/thread.c b/gdb/thread.c index 1ce514a..87dcbd7 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -478,8 +478,8 @@ print_thread_info (struct ui_out *uiout, int requested_thread) if (requested_thread == -1) { - gdb_assert (current_thread != -1); - if (ui_out_is_mi_like_p (uiout)) + gdb_assert (current_thread != -1 || !thread_list); + if (current_thread != -1 && ui_out_is_mi_like_p (uiout)) ui_out_field_int (uiout, "current-thread-id", current_thread); } |