This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Dividing by zero does NOT generate exception
- From: Quanren Xiong <xiongqr at gmail dot com>
- To: ecos-discuss at sourceware dot org
- Date: Fri, 4 Mar 2011 17:14:48 -0500
- Subject: [ECOS] Dividing by zero does NOT generate exception
Hi,
I am using ECOS 2.0.33. To my suprise, the following code does NOT
generate an exception.
"int b=1; int c=b/0;" The value in variable c will be 0.
The platform is at91rm9200. I double and triple checked the following
options are on:
CYGSEM_KERNEL_EXCEPTIONS_GLOBAL,
CYGPKG_HAL_EXCEPTIONS,
CYGPKG_KERNEL_EXCEPTIONS.
And CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS is disabled.
I would like an exception being generated.
What am I doing wrong?
Thanks for your helps
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss