This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ conversion status update


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]