Create private_thread_info hierarchy
[deliverable/binutils-gdb.git] / gdb / nto-tdep.c
index 27bd19124a3021149fbde4dbede847f5776b131d..8286db27fe554fa82984f2566a3cdbc777bbe0b9 100644 (file)
@@ -380,9 +380,13 @@ static const char *nto_thread_state_str[] =
 const char *
 nto_extra_thread_info (struct target_ops *self, struct thread_info *ti)
 {
-  if (ti && ti->priv
-      && ti->priv->state < ARRAY_SIZE (nto_thread_state_str))
-    return (char *)nto_thread_state_str [ti->priv->state];
+  if (ti != NULL && ti->priv != NULL)
+    {
+      nto_thread_info *priv = get_nto_thread_info (ti);
+
+      if (priv->state < ARRAY_SIZE (nto_thread_state_str))
+       return nto_thread_state_str [priv->state];
+    }
   return "";
 }
 
This page took 0.025086 seconds and 4 git commands to generate.