Re: catching floating point exception on OS X Intel
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qoNpxAoGhcV2HcsPM9u452kOspWamjPoQqWuXqcOMzi90gtyPh/OJcovkZcivrmDtVnwbD+1MXTmXnjqsZYLtOM3VFvqxMCsPc8kC+Ar/1TLezX5j5Z3Es7KPunZ79tX2cgEOmwF6UCnJlEd4aPIRanwkLz2dxzVeidQmFyXzNw= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=triHdJwcj+fX8pmwyqZciFWbpOIbzLX/me3smWlLkKYyTOOv38yDGM/KYu92MpG6W5iuKB0eT1aG8XxGbK2s9tcPE628IPlyTN2BLNEh1w2QAVwcaJTbxkICzUK99JAFCYapMJhAX+9wT7G2UzxTyoxo7DfuRny1f8WN01gMzrw= When I run it in gdb I get: Program received signal EXC_ARITHMETIC, Arithmetic exception. 0x00001f2f in main (argc=1, argv=0xbfffe708) at fpasm.c:14 14 x = -1.0/0.0; It's not a SIGFPE, which is a little puzzling, and I don't know what an EXC_ARITHMETIC, is but it's effective. gdb uses mach signals. The mach signals are converted to UNIX signals latter on. Thanks, Andrew Pinski _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On 5/10/07, Kristoffer Eriksen <keriksen@as.arizona.edu> wrote: This email sent to site_archiver@lists.apple.com
participants (1)
-
Andrew Pinski