From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16597 invoked by alias); 6 May 2005 12:22:38 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 16144 invoked from network); 6 May 2005 12:22:22 -0000 Received: from unknown (HELO hermes.chez-thomas.org) (206.168.96.204) by sourceware.org with SMTP; 6 May 2005 12:22:22 -0000 Received: by hermes.chez-thomas.org (Postfix, from userid 2000) id F2C4810000C; Fri, 6 May 2005 06:22:21 -0600 (MDT) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by hermes.chez-thomas.org (Postfix) with ESMTP id 3A86410000C; Fri, 6 May 2005 06:22:21 -0600 (MDT) From: Gary Thomas To: Supreeth Reddy Cc: eCos Discussion In-Reply-To: <20050506121158.24488.qmail@web26002.mail.ukl.yahoo.com> References: <20050506121158.24488.qmail@web26002.mail.ukl.yahoo.com> Content-Type: text/plain Date: Fri, 06 May 2005 12:22:00 -0000 Message-Id: <1115382140.5511.244.camel@hermes> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [ECOS] Problem using GDB to debug IXP425 target with BDI2000 JTAG X-SW-Source: 2005-05/txt/msg00069.txt.bz2 On Fri, 2005-05-06 at 13:11 +0100, Supreeth Reddy wrote: > Hi All, > > I am facing a problem trying to debug multi-threaded > applications with GDB using the BDI2000 JTAG while > connecting to my IXDP425 based target. > > I get a SIGTRAP in this code in context.S - > > FUNC_START_ARM(hal_thread_load_context, r2) > . > . > . > bx lr > #else > movs pc,lr // also restores saved PSR > #endif > > at movs pc,lr. I can see that both pc and lr are > valid. Also note that this instruction can (and does) fiddle with the address space. This means that the MMU may need to be set up properly for the instructions at 'pc'/'lr' to work. Have you looked at the MMU state to verify this? > > I saw some messages in past with GDB and > multi-threading on ARM targets, is that issue still > around or is it fixed ? Any suggestions will be of > great help. That discussion has no relevance to your problem. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss