This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
GDB and gdbserver for CR16 target
- From: Kaushik Phatak <Kaushik dot Phatak at kpitcummins dot com>
- To: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Tue, 13 Dec 2011 12:56:03 +0000
- Subject: GDB and gdbserver for CR16 target
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