From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25832 invoked by alias); 19 Dec 2011 11:56:14 -0000 Received: (qmail 25823 invoked by uid 22791); 19 Dec 2011 11:56:13 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from tx2ehsobe003.messaging.microsoft.com (HELO TX2EHSOBE005.bigfish.com) (65.55.88.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 19 Dec 2011 11:55:53 +0000 Received: from mail88-tx2-R.bigfish.com (10.9.14.240) by TX2EHSOBE005.bigfish.com (10.9.40.25) with Microsoft SMTP Server id 14.1.225.23; Mon, 19 Dec 2011 11:55:46 +0000 Received: from mail88-tx2 (localhost [127.0.0.1]) by mail88-tx2-R.bigfish.com (Postfix) with ESMTP id F1A351C035C; Mon, 19 Dec 2011 11:56:07 +0000 (UTC) X-SpamScore: -10 X-BigFish: VPS-10(zz1447M542Mzz1202hzz8275bh8275dhz2dh2a8h668h839h8e2h8e3h944h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: CIP:59.163.77.45;KIP:(null);UIP:(null);IPV:NLI;H:Outbound.kpitcummins.com;RD:59.163.77.45.static.vsnl.net.in;EFVD:NLI Received: from mail88-tx2 (localhost.localdomain [127.0.0.1]) by mail88-tx2 (MessageSwitch) id 1324295767676105_17870; Mon, 19 Dec 2011 11:56:07 +0000 (UTC) Received: from TX2EHSMHS018.bigfish.com (unknown [10.9.14.244]) by mail88-tx2.bigfish.com (Postfix) with ESMTP id 6B1085A0072; Mon, 19 Dec 2011 11:56:07 +0000 (UTC) Received: from Outbound.kpitcummins.com (59.163.77.45) by TX2EHSMHS018.bigfish.com (10.9.99.118) with Microsoft SMTP Server (TLS) id 14.1.225.23; Mon, 19 Dec 2011 11:55:44 +0000 Received: from KCHJEXMB01.kpit.com ([169.254.1.206]) by KCHJEXHC01.kpit.com ([172.10.15.73]) with mapi id 14.01.0255.000; Mon, 19 Dec 2011 17:25:48 +0530 From: Kaushik Phatak To: "gdb@sourceware.org" CC: "yao@codesourcery.com" Subject: RE: GDB and gdbserver for CR16 target Date: Mon, 19 Dec 2011 11:56:00 -0000 Message-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: kpitcummins.com Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-12/txt/msg00041.txt.bz2 Hi, Thanks for the reply. >> PTRACE_PEEKUSER is defined in . The default includes from sys seems to generate errors, linux-low.c:545:15: error: 'PTRACE_ATTACH' undeclared (first use in this fu= nction) linux-low.c:814:11: error: 'PTRACE_DETACH' undeclared (first use in this fu= nction) Also, the ptrace.h that seemed to get included from "runtime/usr/include/as= m/"=20 contains definitions, #define PTRACE_GETREGS 15 #define PTRACE_SETREGS 16 These were conflicting with /sys/ptrace.h definitions. Commenting these out, and then including the seemed to build= =20 the linux-low.c file. However, at link time it tried to pass the options "-rdynamic". Can this be removed safely as this toolchain does not understand this option? Thanks and Best Regards, Kaushik Phatak www.kpitgnutools.com -----Original Message----- From: Kaushik Phatak=20 Sent: 13 December 2011 18:26 To: 'gdb@sourceware.org' 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 to #include which c= ontains 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