diff options
author | Pedro Alves <palves@redhat.com> | 2015-02-27 16:33:07 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-02-27 16:33:07 +0000 |
commit | fe978cb071b460b2d4aed2f9a71d895f84efce0e (patch) | |
tree | 65d107663745fc7872e680feea9ec2fa6a4949ad /gdb/gdbserver/lynx-low.c | |
parent | 3bc3d82a005466a66fa22f704c90f4486ca71344 (diff) | |
download | gdb-fe978cb071b460b2d4aed2f9a71d895f84efce0e.zip gdb-fe978cb071b460b2d4aed2f9a71d895f84efce0e.tar.gz gdb-fe978cb071b460b2d4aed2f9a71d895f84efce0e.tar.bz2 |
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.
Diffstat (limited to 'gdb/gdbserver/lynx-low.c')
-rw-r--r-- | gdb/gdbserver/lynx-low.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/gdbserver/lynx-low.c b/gdb/gdbserver/lynx-low.c index 98797ba..460346c 100644 --- a/gdb/gdbserver/lynx-low.c +++ b/gdb/gdbserver/lynx-low.c @@ -218,8 +218,8 @@ lynx_add_process (int pid, int attached) proc = add_process (pid, attached); proc->tdesc = lynx_tdesc; - proc->private = xcalloc (1, sizeof (*proc->private)); - proc->private->last_wait_event_ptid = null_ptid; + proc->priv = xcalloc (1, sizeof (*proc->priv)); + proc->priv->last_wait_event_ptid = null_ptid; return proc; } @@ -334,7 +334,7 @@ lynx_resume (struct thread_resume *resume_info, size_t n) unexpected signals (Eg SIG61) when we resume the inferior using a different thread. */ if (ptid_equal (ptid, minus_one_ptid)) - ptid = current_process()->private->last_wait_event_ptid; + ptid = current_process()->priv->last_wait_event_ptid; /* The ptid might still be minus_one_ptid; this can happen between the moment we create the inferior or attach to a process, and @@ -422,7 +422,7 @@ retry: ret = lynx_waitpid (pid, &wstat); new_ptid = lynx_ptid_build (ret, ((union wait *) &wstat)->w_tid); - find_process_pid (ret)->private->last_wait_event_ptid = new_ptid; + find_process_pid (ret)->priv->last_wait_event_ptid = new_ptid; /* If this is a new thread, then add it now. The reason why we do this here instead of when handling new-thread events is because @@ -552,8 +552,8 @@ static void lynx_mourn (struct process_info *proc) { /* Free our private data. */ - free (proc->private); - proc->private = NULL; + free (proc->priv); + proc->priv = NULL; clear_inferiors (); } |