This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Problem using GDB to debug IXP425 target with BDI2000JTAG
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Supreeth Reddy <annem_supreeth at yahoo dot co dot uk>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Fri, 06 May 2005 06:22:20 -0600
- Subject: Re: [ECOS] Problem using GDB to debug IXP425 target with BDI2000JTAG
- References: <20050506121158.24488.qmail@web26002.mail.ukl.yahoo.com>
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