From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8920 invoked by alias); 30 Jan 2012 04:33:51 -0000 Received: (qmail 8907 invoked by uid 22791); 30 Jan 2012 04:33:48 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from db3ehsobe002.messaging.microsoft.com (HELO DB3EHSOBE005.bigfish.com) (213.199.154.140) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 30 Jan 2012 04:33:35 +0000 Received: from mail2-db3-R.bigfish.com (10.3.81.237) by DB3EHSOBE005.bigfish.com (10.3.84.25) with Microsoft SMTP Server id 14.1.225.23; Mon, 30 Jan 2012 04:33:30 +0000 Received: from mail2-db3 (localhost [127.0.0.1]) by mail2-db3-R.bigfish.com (Postfix) with ESMTP id D7631440266 for ; Mon, 30 Jan 2012 04:33:30 +0000 (UTC) X-SpamScore: -6 X-BigFish: VPS-6(zz542M4015Lzz1202hzz8275dhz2dhc1bhc31hc1ah2a8h668h839h8e2h8e3h944hbe9k) 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 mail2-db3 (localhost.localdomain [127.0.0.1]) by mail2-db3 (MessageSwitch) id 1327898009444770_17404; Mon, 30 Jan 2012 04:33:29 +0000 (UTC) Received: from DB3EHSMHS016.bigfish.com (unknown [10.3.81.226]) by mail2-db3.bigfish.com (Postfix) with ESMTP id 68A504004B for ; Mon, 30 Jan 2012 04:33:29 +0000 (UTC) Received: from Outbound.kpitcummins.com (59.163.77.45) by DB3EHSMHS016.bigfish.com (10.3.87.116) with Microsoft SMTP Server (TLS) id 14.1.225.23; Mon, 30 Jan 2012 04:33:29 +0000 Received: from KCHJEXMB02.kpit.com ([169.254.2.192]) by KCHJEXHC01.kpit.com ([172.10.15.73]) with mapi id 14.01.0255.000; Mon, 30 Jan 2012 10:01:16 +0530 From: Kaushik Phatak To: "gdb@sourceware.org" Subject: RE: GDB and gdbserver for CR16 target Date: Mon, 30 Jan 2012 04:33: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: 2012-01/txt/msg00111.txt.bz2 Hi, >> PTRACE_CONT is killing the debugee with SIGKILL, That looks like a false alarm. The kernel sources had a bug where a 'break;= ' was=20 missing after the 'PCONT' switch case causing the code to fall into the nex= t case which was 'KILL'. Another point which is slightly baffling is the implementation of breakpoin= t in the gdbserver. The server.c file handles the Z0/Z1 command by calling 'inse= rt_point'. However, none of the target specific files 'linux-target-low.c' implement t= his function. x86 and crisv32 has some code for this, but nothing in m68k which= is used as a base for some of the other uClinux implementations. If anybody can throw some light on this, it would be much appreciated. Thanks, Kaushik -----Original Message----- From: Kaushik Phatak=20 Sent: 27 January 2012 08:45 To: 'gdb@sourceware.org' Subject: RE: GDB and gdbserver for CR16 target Hi, Making further progress with the gdbserver for CR16 target, it seems that t= he PTRACE_CONT is killing the debugee with SIGKILL, "Child terminated with signal =3D 9" The ATTACH and other ptrace calls seem to work OK. Our Kernel is 2.6.19 (uC= linux) I did read in some discussions lists, issues related to PTRACE_CONT, however could not conclude much from it. The PTRACE_CONT implementation in the kernel is very similar to other targe= ts like SH. Any inputs in this regard would be highly appreciated. Thanks, Kaushik