diff options
Diffstat (limited to 'gdb/nto-procfs.c')
-rw-r--r-- | gdb/nto-procfs.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c index 323d614..7312060 100644 --- a/gdb/nto-procfs.c +++ b/gdb/nto-procfs.c @@ -247,24 +247,24 @@ update_thread_private_data_name (struct thread_info *new_thread, gdb_assert (newname != NULL); gdb_assert (new_thread != NULL); newnamelen = strlen (newname); - if (!new_thread->private) + if (!new_thread->priv) { - new_thread->private = xmalloc (offsetof (struct private_thread_info, + new_thread->priv = xmalloc (offsetof (struct private_thread_info, name) + newnamelen + 1); - memcpy (new_thread->private->name, newname, newnamelen + 1); + memcpy (new_thread->priv->name, newname, newnamelen + 1); } - else if (strcmp (newname, new_thread->private->name) != 0) + else if (strcmp (newname, new_thread->priv->name) != 0) { /* Reallocate if neccessary. */ - int oldnamelen = strlen (new_thread->private->name); + int oldnamelen = strlen (new_thread->priv->name); if (oldnamelen < newnamelen) - new_thread->private = xrealloc (new_thread->private, + new_thread->priv = xrealloc (new_thread->priv, offsetof (struct private_thread_info, name) + newnamelen + 1); - memcpy (new_thread->private->name, newname, newnamelen + 1); + memcpy (new_thread->priv->name, newname, newnamelen + 1); } } @@ -299,7 +299,7 @@ update_thread_private_data (struct thread_info *new_thread, update_thread_private_data_name (new_thread, tn->name_buf); - pti = (struct private_thread_info *) new_thread->private; + pti = (struct private_thread_info *) new_thread->priv; pti->tid = tid; pti->state = state; pti->flags = flags; |