This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Cast the pointer assigned to ss_sp to char *.
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Tue, 19 Apr 2016 19:24:15 -0400
- Subject: [binutils-gdb] Cast the pointer assigned to ss_sp to char *.
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT f39c07acc8c4039534a9c6f1757de82afe66ecd5 ***
Author: John Baldwin <jhb@FreeBSD.org>
Branch: master
Commit: f39c07acc8c4039534a9c6f1757de82afe66ecd5
Cast the pointer assigned to ss_sp to char *.
FreeBSD versions older than 11.0 use char * as the type of ss_sp in
stack_t instead of the standards-defined void *. C++ allows a char *
pointer to be converted to a void *, so it is safe to cast the return
value of xmalloc to char * if ss_sp is either a char * or void *.
Just always use the cast to char * since that is less ugly than having
to add a special case.
gdb/ChangeLog:
* main.c (setup_alternate_signal_stack): Cast to char *.