This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
problem with print_trace_buffer
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: [ECOS] problem with print_trace_buffer
- From: Chris Morrow <cmorrow at YottaYotta dot com>
- Date: Mon, 17 Jul 2000 15:19:34 -0600
- Organization: YottaYotta Inc.
I believe there is a problem with print_trace_buffer() in
.../infra/current/buffer.cxx
If eCos is configured to dump the trace buffer everytime the
buffer is full, the loop in print_trace_buffer never terminates.
Changing the code from
i = start;
do {
... print a bunch of stuff ...
i++;
if ( i == CYGDBG_INFRA_DEBUG_TRACE_BUFFER_SIZE)
i = 0;
} while (i != end)
to
i = start;
do {
if ( i == CYGDBG_INFRA_DEBUG_TRACE_BUFFER_SIZE)
i = 0;
... print a bunch of stuff ...
i++;
} while (i != end)
fixes the problem.
--
Chris Morrow YottaYotta Inc.
email: cmorrow@yottayotta.com
phone: (780) 439 9000 ext 227
web: http://www.yottayotta.com