GDB and gdbserver for CR16 target
Kaushik Phatak
Kaushik.Phatak@kpitcummins.com
Tue Dec 13 12:56:00 GMT 2011
Hi,
We are currently adding a GDB port for the CR16 target architecture.
The run simulator port for CR16 is already present in the main line.
Currently, we have build a basic GDB that would work along with sim and we are trying
to build the GDB server for cr16-uclinux-gcc but I am facing some issues.
I have changed #include <sys/ptrace.h> to #include <linux/ptrace.h> which contains
defines for ptrace system calls.
I am getting following errors while compiling linux-low.c
linux-low.c:2171:10: error: 'PTRACE_PEEKUSER' undeclared (first use in this function)
linux-low.c:2244:12: error: 'PTRACE_POKEUSER' undeclared (first use in this function)
The ptrace.h file contains similar definitions,
#define PTRACE_PEEKUSR 3
#define PTRACE_POKEUSR 6
Is this like a typo or am I including the incorrect file?
Any pointers would be very much appreciated.
Thanks and Best Regards,
Kaushik Phatak
www.kpitgnutools.com
More information about the Gdb
mailing list