Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] gdbserver for xtensa compilation error fix
@ 2012-11-22 12:42 Vadim Malenboim
  2012-11-22 12:56 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Vadim Malenboim @ 2012-11-22 12:42 UTC (permalink / raw)
  To: buildroot

gdbserver compilation failed with :

rojects/xtensa-linux/JerryLinuxFP/buildroot/output/toolchain/gdb-7.3.1/gdb/gdbserver/linux-xtensa-low.c:137:5:
error: 'PTRACE_GETXTREGS' undeclared here (not in a function)
/projects/xtensa-linux/JerryLinuxFP/buildroot/output/toolchain/gdb-7.3.1/gdb/gdbserver/linux-xtensa-low.c:137:23:
error: 'PTRACE_SETXTREGS' undeclared here (not in a function)
make[1]: *** [linux-xtensa-low.o] Error 1
make[1]: *** Waiting for unfinished jobs....

fixed by modifying :

gdb/gdbserver/linux-xtensa-low.c line 26 :

from #include <sys/ptrace.h>
to #include <asm/ptrace.h>

-- 
     * Vadim Malenboim.*
      Low Level Software Engineer.

      Cellular : +972(544)925862
      E-Mail   : vadim at tangotec.com
      WEB     : www.tangotec.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20121122/0a46712e/attachment.html>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] gdbserver for xtensa compilation error fix
  2012-11-22 12:42 [Buildroot] gdbserver for xtensa compilation error fix Vadim Malenboim
@ 2012-11-22 12:56 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2012-11-22 12:56 UTC (permalink / raw)
  To: buildroot

Dear Vadim Malenboim,

On Thu, 22 Nov 2012 14:42:32 +0200, Vadim Malenboim wrote:
> gdbserver compilation failed with :
> 
> rojects/xtensa-linux/JerryLinuxFP/buildroot/output/toolchain/gdb-7.3.1/gdb/gdbserver/linux-xtensa-low.c:137:5:
> error: 'PTRACE_GETXTREGS' undeclared here (not in a function)
> /projects/xtensa-linux/JerryLinuxFP/buildroot/output/toolchain/gdb-7.3.1/gdb/gdbserver/linux-xtensa-low.c:137:23:
> error: 'PTRACE_SETXTREGS' undeclared here (not in a function)
> make[1]: *** [linux-xtensa-low.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> 
> fixed by modifying :
> 
> gdb/gdbserver/linux-xtensa-low.c line 26 :
> 
> from #include <sys/ptrace.h>
> to #include <asm/ptrace.h>

Thanks. This is already fix in Git by:
http://git.buildroot.net/buildroot/commit/?id=c28e15debff2078f4ef1b123e9a047a0cad2c18a

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-22 12:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-22 12:42 [Buildroot] gdbserver for xtensa compilation error fix Vadim Malenboim
2012-11-22 12:56 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox