aboutsummaryrefslogtreecommitdiff
path: root/gdb/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/thread.c')
-rw-r--r--gdb/thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/thread.c b/gdb/thread.c
index 35bccf1..bf4631c 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -465,7 +465,7 @@ info_threads_command (arg, from_tty)
int from_tty;
{
struct thread_info *tp;
- int current_pid = inferior_pid;
+ int current_pid;
struct frame_info *cur_frame;
int saved_frame_level = selected_frame_level;
int counter;
@@ -478,7 +478,7 @@ info_threads_command (arg, from_tty)
#if defined(FIND_NEW_THREADS)
FIND_NEW_THREADS ();
#endif
-
+ current_pid = inferior_pid;
for (tp = thread_list; tp; tp = tp->next)
{
if (tp->pid == current_pid)