This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: need debugging help
- From: "harmon" <lharmon at neo dot rr dot com>
- To: "'Andrew Lunn'" <andrew at lunn dot ch>
- Cc: <ecos-discuss at sources dot redhat dot com>
- Date: Thu, 5 Aug 2004 11:29:23 -0400
- Subject: RE: [ECOS] need debugging help
Thanks for the advice. I figured out how to enable asserts, enabled
them, ran my application and asserted where I was having a problem:
The message is:
ASSERT FAIL: <6>mutex.cxx[249]cyg_bool Cyg_Mutex::lock() Locking mutex I
already own
ASSERT FAIL: <6>mutex.cxx [249] cyg_bool Cyg_Mutex::lock()
This problem occurs where I call
cyg_flag_setbits(&UsbRspStateFlag,
(1<<USB_STATE_IN_MESSAGE_DONE));
from a DSR.
I believe this might be a point where my DSR calls cyg_flag_setbits
twice, once for each thread, and the second call results in problems.
At least now I know where to look.
Thanks again,
Larry
-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Andrew Lunn
Sent: Wednesday, August 04, 2004 2:50 PM
To: harmon
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] need debugging help
> Can anyone give me some advice on this type of debugging?
Do you have asserts enabled. That might show up something.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss