aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2015-11-03 13:33:15 -0500
committerSimon Marchi <simon.marchi@ericsson.com>2015-11-03 13:33:15 -0500
commitcbec665beba8acf6393a8c93312bdd3a03a0846c (patch)
tree8188401bfeb10fbc0c8f3e0bbadb427a250d8b66
parenteb3e3c67e5f922e8f2c665e1687a71f08dbe37a8 (diff)
downloadgdb-cbec665beba8acf6393a8c93312bdd3a03a0846c.zip
gdb-cbec665beba8acf6393a8c93312bdd3a03a0846c.tar.gz
gdb-cbec665beba8acf6393a8c93312bdd3a03a0846c.tar.bz2
linux-mips-low.c: Change "private" variable name
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.
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/linux-mips-low.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 2ebf27f..e55b2a2 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,10 @@
2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
+ * linux-mips-low.c (mips_add_watchpoint): Rename private to
+ priv.
+
+2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
+
* linux-mips-low.c (mips_linux_new_thread): Change type of
watch_type to enum target_hw_bp_type.
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;