aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2016-04-19 13:51:05 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2016-04-19 15:41:56 -0700
commitf39c07acc8c4039534a9c6f1757de82afe66ecd5 (patch)
tree615ff703326ba7410ea8f81898d2629b93d4d355 /gdb/ChangeLog
parent537aefaf18444430df8126b474cf11ff7201b4c6 (diff)
downloadfsf-binutils-gdb-f39c07acc8c4039534a9c6f1757de82afe66ecd5.zip
fsf-binutils-gdb-f39c07acc8c4039534a9c6f1757de82afe66ecd5.tar.gz
fsf-binutils-gdb-f39c07acc8c4039534a9c6f1757de82afe66ecd5.tar.bz2
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 *.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ca7c9de..05052c9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2016-04-19 John Baldwin <jhb@FreeBSD.org>
+
+ * main.c (setup_alternate_signal_stack): Cast to char *.
+
2016-04-19 Doug Evans <xdje42@gmail.com>
* symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.