mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
C++ keyword cleanliness, mostly auto-generated
This patch renames symbols that happen to have names which are reserved keywords in C++. Most of this was generated with Tromey's cxx-conversion.el script. Some places where later hand massaged a bit, to fix formatting, etc. And this was rebased several times meanwhile, along with re-running the script, so re-running the script from scratch probably does not result in the exact same output. I don't think that matters anyway. gdb/ 2015-02-27 Tom Tromey <tromey@redhat.com> Pedro Alves <palves@redhat.com> Rename symbols whose names are reserved C++ keywords throughout. gdb/gdbserver/ 2015-02-27 Tom Tromey <tromey@redhat.com> Pedro Alves <palves@redhat.com> Rename symbols whose names are reserved C++ keywords throughout.
This commit is contained in:
@@ -757,9 +757,9 @@ sync_threadlists (void)
|
||||
else if (gi == gcount)
|
||||
{
|
||||
thread = add_thread (ptid_build (infpid, 0, pbuf[pi].pthid));
|
||||
thread->private = xmalloc (sizeof (struct private_thread_info));
|
||||
thread->private->pdtid = pbuf[pi].pdtid;
|
||||
thread->private->tid = pbuf[pi].tid;
|
||||
thread->priv = xmalloc (sizeof (struct private_thread_info));
|
||||
thread->priv->pdtid = pbuf[pi].pdtid;
|
||||
thread->priv->tid = pbuf[pi].tid;
|
||||
pi++;
|
||||
}
|
||||
else
|
||||
@@ -776,8 +776,8 @@ sync_threadlists (void)
|
||||
|
||||
if (cmp_result == 0)
|
||||
{
|
||||
gbuf[gi]->private->pdtid = pdtid;
|
||||
gbuf[gi]->private->tid = tid;
|
||||
gbuf[gi]->priv->pdtid = pdtid;
|
||||
gbuf[gi]->priv->tid = tid;
|
||||
pi++;
|
||||
gi++;
|
||||
}
|
||||
@@ -789,9 +789,9 @@ sync_threadlists (void)
|
||||
else
|
||||
{
|
||||
thread = add_thread (pptid);
|
||||
thread->private = xmalloc (sizeof (struct private_thread_info));
|
||||
thread->private->pdtid = pdtid;
|
||||
thread->private->tid = tid;
|
||||
thread->priv = xmalloc (sizeof (struct private_thread_info));
|
||||
thread->priv->pdtid = pdtid;
|
||||
thread->priv->tid = tid;
|
||||
pi++;
|
||||
}
|
||||
}
|
||||
@@ -809,7 +809,7 @@ iter_tid (struct thread_info *thread, void *tidp)
|
||||
{
|
||||
const pthdb_tid_t tid = *(pthdb_tid_t *)tidp;
|
||||
|
||||
return (thread->private->tid == tid);
|
||||
return (thread->priv->tid == tid);
|
||||
}
|
||||
|
||||
/* Synchronize libpthdebug's state with the inferior and with GDB,
|
||||
@@ -999,7 +999,7 @@ aix_thread_resume (struct target_ops *ops,
|
||||
error (_("aix-thread resume: unknown pthread %ld"),
|
||||
ptid_get_lwp (ptid));
|
||||
|
||||
tid[0] = thread->private->tid;
|
||||
tid[0] = thread->priv->tid;
|
||||
if (tid[0] == PTHDB_INVALID_TID)
|
||||
error (_("aix-thread resume: no tid for pthread %ld"),
|
||||
ptid_get_lwp (ptid));
|
||||
@@ -1313,10 +1313,10 @@ aix_thread_fetch_registers (struct target_ops *ops,
|
||||
else
|
||||
{
|
||||
thread = find_thread_ptid (inferior_ptid);
|
||||
tid = thread->private->tid;
|
||||
tid = thread->priv->tid;
|
||||
|
||||
if (tid == PTHDB_INVALID_TID)
|
||||
fetch_regs_user_thread (regcache, thread->private->pdtid);
|
||||
fetch_regs_user_thread (regcache, thread->priv->pdtid);
|
||||
else
|
||||
fetch_regs_kernel_thread (regcache, regno, tid);
|
||||
}
|
||||
@@ -1667,10 +1667,10 @@ aix_thread_store_registers (struct target_ops *ops,
|
||||
else
|
||||
{
|
||||
thread = find_thread_ptid (inferior_ptid);
|
||||
tid = thread->private->tid;
|
||||
tid = thread->priv->tid;
|
||||
|
||||
if (tid == PTHDB_INVALID_TID)
|
||||
store_regs_user_thread (regcache, thread->private->pdtid);
|
||||
store_regs_user_thread (regcache, thread->priv->pdtid);
|
||||
else
|
||||
store_regs_kernel_thread (regcache, regno, tid);
|
||||
}
|
||||
@@ -1764,8 +1764,8 @@ aix_thread_extra_thread_info (struct target_ops *self,
|
||||
|
||||
buf = mem_fileopen ();
|
||||
|
||||
pdtid = thread->private->pdtid;
|
||||
tid = thread->private->tid;
|
||||
pdtid = thread->priv->pdtid;
|
||||
tid = thread->priv->tid;
|
||||
|
||||
if (tid != PTHDB_INVALID_TID)
|
||||
/* i18n: Like "thread-identifier %d, [state] running, suspended" */
|
||||
|
||||
Reference in New Issue
Block a user