This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Add cast to observer.sh


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6ecf4e06a48cfc6dfbdf7c8f2969ffe7271f15da

commit 6ecf4e06a48cfc6dfbdf7c8f2969ffe7271f15da
Author: Simon Marchi <simon.marchi@ericsson.com>
Date:   Fri Oct 23 16:58:13 2015 -0400

    Add cast to observer.sh
    
    gdb/ChangeLog:
    
    	* observer.h (observer_${event}_notification_stub): Add cast.

Diff:
---
 gdb/ChangeLog   | 4 ++++
 gdb/observer.sh | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 295ad96..4f506e5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2015-10-23  Simon Marchi  <simon.marchi@ericsson.com>
+
+	* observer.h (observer_${event}_notification_stub): Add cast.
+
 2015-10-23  Yao Qi  <yao.qi@linaro.org>
 
 	* aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
diff --git a/gdb/observer.sh b/gdb/observer.sh
index dde8056..6fd0ada 100755
--- a/gdb/observer.sh
+++ b/gdb/observer.sh
@@ -143,7 +143,7 @@ EOF
 
 	if test ! -z "${notify_args}"; then
 	    cat<<EOF >>${otmp}
-  const struct ${event}_args *args = args_data;
+  const struct ${event}_args *args = (const struct ${event}_args *) args_data;
 EOF
 	fi
 	cat <<EOF >>${otmp}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]