[ECOS] need debugging help
harmon
lharmon@neo.rr.com
Thu Aug 5 15:29:00 GMT 2004
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
More information about the Ecos-discuss
mailing list