This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Use gdb_byte * instead of void * in push_stack_item
- From: Yao Qi <qiyao at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 12 Nov 2015 09:15:26 -0000
- Subject: [binutils-gdb] Use gdb_byte * instead of void * in push_stack_item
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=df3b6708fe2384913e66d90340b619190cc4530e
commit df3b6708fe2384913e66d90340b619190cc4530e
Author: Yao Qi <yao.qi@linaro.org>
Date: Thu Nov 12 09:14:20 2015 +0000
Use gdb_byte * instead of void * in push_stack_item
gdb:
2015-11-12 Yao Qi <yao.qi@linaro.org>
* arm-tdep.c (push_stack_item): Change contents type to
const gdb_byte *.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/arm-tdep.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index cd5b9e7..f21cf2e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2015-11-12 Yao Qi <yao.qi@linaro.org>
+
+ * arm-tdep.c (push_stack_item): Change contents type to
+ const gdb_byte *.
+
2015-11-11 Simon Marchi <simon.marchi@ericsson.com>
* inf-ptrace.c (inf_ptrace_fetch_register): Change long int *
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 308d484..4a8d03b2 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -3395,7 +3395,7 @@ struct stack_item
};
static struct stack_item *
-push_stack_item (struct stack_item *prev, const void *contents, int len)
+push_stack_item (struct stack_item *prev, const gdb_byte *contents, int len)
{
struct stack_item *si;
si = XNEW (struct stack_item);