From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10525 invoked by alias); 13 Dec 2011 12:56:29 -0000 Received: (qmail 10513 invoked by uid 22791); 13 Dec 2011 12:56:28 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from ch1ehsobe004.messaging.microsoft.com (HELO ch1outboundpool.messaging.microsoft.com) (216.32.181.184) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Dec 2011 12:56:09 +0000 Received: from mail16-ch1-R.bigfish.com (10.43.68.253) by CH1EHSOBE016.bigfish.com (10.43.70.66) with Microsoft SMTP Server id 14.1.225.23; Tue, 13 Dec 2011 12:56:08 +0000 Received: from mail16-ch1 (localhost [127.0.0.1]) by mail16-ch1-R.bigfish.com (Postfix) with ESMTP id 2E8086001FB for ; Tue, 13 Dec 2011 12:56:08 +0000 (UTC) X-SpamScore: 0 X-BigFish: VPS0(zzzz1202hzz8275bhz2dh2a8h668h839h8e2h8e3h944h) 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 X-FB-SS: 13, Received: from mail16-ch1 (localhost.localdomain [127.0.0.1]) by mail16-ch1 (MessageSwitch) id 132378096877238_15184; Tue, 13 Dec 2011 12:56:08 +0000 (UTC) Received: from CH1EHSMHS018.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.242]) by mail16-ch1.bigfish.com (Postfix) with ESMTP id 0E7FD1800C0 for ; Tue, 13 Dec 2011 12:56:08 +0000 (UTC) Received: from Outbound.kpitcummins.com (59.163.77.45) by CH1EHSMHS018.bigfish.com (10.43.70.18) with Microsoft SMTP Server (TLS) id 14.1.225.23; Tue, 13 Dec 2011 12:56:07 +0000 Received: from KCHJEXMB02.kpit.com ([169.254.2.119]) by KCHJEXHC01.kpit.com ([172.10.15.73]) with mapi id 14.01.0255.000; Tue, 13 Dec 2011 18:26:04 +0530 From: Kaushik Phatak To: "gdb@sourceware.org" Subject: GDB and gdbserver for CR16 target Date: Tue, 13 Dec 2011 12: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/msg00021.txt.bz2 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