This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: C++ conversion status update
- From: Pedro Alves <palves at redhat dot com>
- To: John Baldwin <jhb at freebsd dot org>
- Cc: gdb at sourceware dot org
- Date: Tue, 19 Apr 2016 23:20:35 +0100
- Subject: Re: C++ conversion status update
- Authentication-results: sourceware.org; auth=none
- References: <565460FB dot 6070103 at redhat dot com> <4587615 dot ZrrbCebxpz at ralph dot baldwin dot cx> <571696D1 dot 807 at redhat dot com> <2275223 dot J41au61s2T at ralph dot baldwin dot cx>
On 04/19/2016 10:40 PM, John Baldwin wrote:
> On Tuesday, April 19, 2016 09:36:33 PM Pedro Alves wrote:
>> C++ allows conversion to 'void *' without a cast. So I think
>> we just need to do:
>>
>> - ss.ss_sp = xmalloc (SIGSTKSZ);
>> + ss.ss_sp = (char *) xmalloc (SIGSTKSZ);
>>
>> and it'll work on both char * and void * hosts. I tried it
>> here on GNU/Linux, where ss_sp is void *, and it works.
>>
>> Would you like to send that as a patch (with a comment)?
>>
>> We can leave adding an autoconf check if some other host uses
>> a type different than void * and char *.
>
> Ok, I will include that in my current patchset.
Great, thanks much.
--
Pedro Alves