aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-06-18 23:28:56 +0200
committerSimon Marchi <simon.marchi@ericsson.com>2017-06-18 23:29:03 +0200
commitffce45d2243e5f52f411e314fc4e1a69f431a81f (patch)
tree4c3cb60f44d565d543ddc9b982f7fe3d29740479 /gdb/ChangeLog
parentbdd32e03c5e87bd38e63e9cc3fd35375241db58f (diff)
downloadgdb-ffce45d2243e5f52f411e314fc4e1a69f431a81f.zip
gdb-ffce45d2243e5f52f411e314fc4e1a69f431a81f.tar.gz
gdb-ffce45d2243e5f52f411e314fc4e1a69f431a81f.tar.bz2
nat/linux-ptrace.c: add missing gdb_byte* cast
On noMMU platforms, the following code gets compiled: child_stack = xmalloc (STACK_SIZE * 4); Where child_stack is a gdb_byte*, and xmalloc() returns a void*. While the lack of cast is valid in C, it is not in C++, causing the following build failure: ../nat/linux-ptrace.c: In function 'int linux_fork_to_function(gdb_byte*, int (*)(void*))': ../nat/linux-ptrace.c:273:29: error: invalid conversion from 'void*' to 'gdb_byte* {aka unsigned char*}' [-fpermissive] child_stack = xmalloc (STACK_SIZE * 4); Therefore, this commit adds the appropriate cast. gdb/ChangeLog: * nat/linux-ptrace.c (linux_fork_to_function): Add cast to gdb_byte*. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 85ee3cf..1bbcb71 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+ * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
+ gdb_byte*.
+
2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
* nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.