diff options
author | Yao Qi <yao.qi@linaro.org> | 2016-01-12 16:29:30 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2016-01-12 16:29:30 +0000 |
commit | d18547d8b08615a58db18ad3e43f721dc92ae298 (patch) | |
tree | 1620de2b95bc4decae6546f3dcad836740ddfff8 /gdb/ChangeLog | |
parent | 8f13a3ce8afc1144169a14c7704689e263316e70 (diff) | |
download | gdb-d18547d8b08615a58db18ad3e43f721dc92ae298.zip gdb-d18547d8b08615a58db18ad3e43f721dc92ae298.tar.gz gdb-d18547d8b08615a58db18ad3e43f721dc92ae298.tar.bz2 |
Fix invalid conversion from void * to gdb_byte *
This patch fixes the following GDB build error in C++ mode.
gdb/nat/linux-ptrace.c: In function 'int linux_child_function(void*)':
gdb/nat/linux-ptrace.c:323:65: error: invalid conversion from 'void*' to 'gdb_byte* {aka unsigned char*}' [-fpermissive]
linux_fork_to_function (child_stack, linux_grandchild_function);
^
gdb:
2016-01-12 Yao Qi <yao.qi@linaro.org>
* nat/linux-ptrace.c (linux_child_function): Cast child_stack
to gdb_byte * and pass to linux_fork_to_function.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9184afc..74f91d2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2016-01-12 Yao Qi <yao.qi@linaro.org> + * nat/linux-ptrace.c (linux_child_function): Cast child_stack + to gdb_byte * and pass to linux_fork_to_function. + +2016-01-12 Yao Qi <yao.qi@linaro.org> + * nat/linux-ptrace.c (linux_fork_to_function): Change type of argument 'function'. (linux_grandchild_function): Change return type to 'int'. |