[Buildroot] [PATCH] gdb: add fix for gdb 7.12 and gdb 8.0 build on noMMU platforms
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Sat Aug 5 12:23:42 UTC 2017
Hello,
On Fri, 4 Aug 2017 22:43:26 +0200, Romain Naour wrote:
> > ../nat/linux-ptrace.c: In function 'int linux_fork_to_function(gdb_byte*, int (*)(void*))':
> > ../nat/linux-ptrace.c:273:29: error: invalid conversion from 'void*' to 'gdb_byte* {aka unsigned char*}' [-fpermissive]
> > child_stack = xmalloc (STACK_SIZE * 4);
> >
> > The patch has already been merged upstream, as of commit
> > ffce45d2243e5f52f411e314fc4e1a69f431a81f, and will therefore be part
> > of future gdb releases.
>
> What's the arch/config are you using?
This was happening on m68k Coldfire, if i remember correctly.
> It's seems no toolchain able to build gdb on noMMU case are present in the
> autobuilder.
We have a m68k Coldfire configuration in the autobuilders. However, the
pre-built toolchain is built without BR2_PTHREAD_DEBUG, and therefore
the target gdb is never built because it depends on
BR2_TOOLCHAIN_HAS_THREADS_DEBUG.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
More information about the buildroot
mailing list