This is the mail archive of the
ecos-bugs@sourceware.org
mailing list for the eCos project.
[Bug 1001243] New: Fix trace function reporting of rewinddir()
- From: bugzilla-daemon at bugs dot ecos dot sourceware dot org
- To: ecos-bugs at ecos dot sourceware dot org
- Date: Mon, 23 May 2011 14:09:57 +0100
- Subject: [Bug 1001243] New: Fix trace function reporting of rewinddir()
- Auto-submitted: auto-generated
Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001243
Summary: Fix trace function reporting of rewinddir()
Product: eCos
Version: CVS
Platform: All
OS/Version: Other
Status: UNCONFIRMED
Severity: enhancement
Priority: low
Component: Filesystem support
AssignedTo: unassigned@bugs.ecos.sourceware.org
ReportedBy: manuel@matronix.de
CC: ecos-bugs@ecos.sourceware.org
Class: Advice Request
Created an attachment (id=1262)
--> (http://bugs.ecos.sourceware.org/attachment.cgi?id=1262)
Fix tracing of rewinddir function
While trying to get the ATHTTPD server working, I found a bug in the file I/O
subsystem. I guess it only occures when tracing and assertions are turned on.
The Assertion I got, when accessing a webpage:
ASSERT FAIL: <6>cyg_trac.h[666]void Cyg_TraceFunction_Report_::set_exitvoid()
exitvoid used in typed function
ASSERT FAIL: <6>cyg_trac.h [ 666] void
Cyg_TraceFunction_Report_::set_exitvoid()
exitvoid used in typed function
I hunted it down to the rewinddir() function. rewinddir returns void, which
fails because the macro FILEIO_ENTRY uses CYG_REPORT_FUNCTYPE( "returning %d"
), which sets a string for return.
rewinddir seems to be the only function returning void.
I fixed the problem by introducing a macro FILEIO_ENTRY_VOID which simply uses
CYG_REPORT_FUNCTION();
Find the patch attached and feel free to integrate it in CVS.
--
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.