This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

problem with print_trace_buffer



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]