[c++,10/12] linux-mips-low.c: Change "private" variable name

Message ID 1446560804-18858-10-git-send-email-simon.marchi@ericsson.com
State Committed
Headers

Commit Message

Simon Marchi Nov. 3, 2015, 2:26 p.m. UTC
  From: Simon Marchi <simon.marchi@polymtl.ca>

Fixes:

/home/simark/src/binutils-gdb/gdb/gdbserver/linux-mips-low.c:359:48: error: expected ‘,’ or ‘...’ before ‘private’
 mips_add_watchpoint (struct arch_process_info *private, CORE_ADDR addr,
                                                ^

gdb/gdbserver/ChangeLog:

	* linux-mips-low.c (mips_add_watchpoint): Rename private to
	priv.
---
 gdb/gdbserver/linux-mips-low.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Comments

Pedro Alves Nov. 3, 2015, 4:17 p.m. UTC | #1
On 11/03/2015 02:26 PM, Simon Marchi wrote:
> From: Simon Marchi <simon.marchi@polymtl.ca>
> 
> Fixes:
> 
> /home/simark/src/binutils-gdb/gdb/gdbserver/linux-mips-low.c:359:48: error: expected ‘,’ or ‘...’ before ‘private’
>  mips_add_watchpoint (struct arch_process_info *private, CORE_ADDR addr,
>                                                 ^
> 
> gdb/gdbserver/ChangeLog:
> 
> 	* linux-mips-low.c (mips_add_watchpoint): Rename private to
> 	priv.

OK.

Thanks,
Pedro Alves
  

Patch

diff --git a/gdb/gdbserver/linux-mips-low.c b/gdb/gdbserver/linux-mips-low.c
index 2cfa7c2..0525522 100644
--- a/gdb/gdbserver/linux-mips-low.c
+++ b/gdb/gdbserver/linux-mips-low.c
@@ -356,7 +356,7 @@  mips_linux_new_thread (struct lwp_info *lwp)
 /* Create a new mips_watchpoint and add it to the list.  */
 
 static void
-mips_add_watchpoint (struct arch_process_info *private, CORE_ADDR addr, int len,
+mips_add_watchpoint (struct arch_process_info *priv, CORE_ADDR addr, int len,
 		     enum target_hw_bp_type watch_type)
 {
   struct mips_watchpoint *new_watch;
@@ -368,7 +368,7 @@  mips_add_watchpoint (struct arch_process_info *private, CORE_ADDR addr, int len,
   new_watch->type = watch_type;
   new_watch->next = NULL;
 
-  pw = &private->current_watches;
+  pw = &priv->current_watches;
   while (*pw != NULL)
     pw = &(*pw)->next;
   *pw = new_watch;