From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29561 invoked by alias); 25 Mar 2009 14:20:52 -0000 Received: (qmail 29470 invoked by uid 48); 25 Mar 2009 14:20:51 -0000 Date: Wed, 25 Mar 2009 14:20:00 -0000 From: "webpirat at mail dot ru" To: gdb-prs@sourceware.org Message-ID: <20090325142050.10004.webpirat@mail.ru> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug win32/10004] New: gdb cannot continue after SIGFPE or SIGSEGV happen on windows X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00394.txt.bz2 I'm using free pascal compiler on windows xp to compile example application. This is a simple program which handles division by zero (EDivByZero) exception and writes to the console when this happen. Run without debugger gives next output: Exception is handled 1 When I run it with gdb I cannot continue usual execution after SIGFPE happen. (gdb) run Starting program: C:\programming\mytest\debugger_exceptions/test_exception.exe [New thread 6100.0x13e4] Program received signal SIGFPE, Arithmetic exception. 0x00401502 in EXCEPTION1 () at test_exception.lpr:15 15 a := a div (a - 1); // EDivByZero (gdb) continue Continuing. Program received signal SIGFPE, Arithmetic exception. 0x00401502 in EXCEPTION1 () at test_exception.lpr:15 15 a := a div (a - 1); // EDivByZero (gdb) continue Continuing. Program exited with code 030000000224. Ok, tried "info signals" and found that gdb handles SIGFPE. I changed behavior: (gdb) handle SIGFPE noprint Signal Stop Print Pass to program Description SIGFPE No No Yes Arithmetic exception (gdb) handle SIGFPE nostop Signal Stop Print Pass to program Description SIGFPE No No Yes Arithmetic exception (gdb) run Starting program: C:\programming\mytest\debugger_exceptions/test_exception.exe [New thread 5912.0xa3c] Program exited with code 030000000224. In this mail thread (http://lists.freepascal.org/lists/fpc-devel/2009- March/016625.html) I've got a suggestion to create a bug report here. -- Summary: gdb cannot continue after SIGFPE or SIGSEGV happen on windows Product: gdb Version: 6.8 Status: UNCONFIRMED Severity: normal Priority: P2 Component: win32 AssignedTo: unassigned at sourceware dot org ReportedBy: webpirat at mail dot ru CC: gdb-prs at sourceware dot org http://sourceware.org/bugzilla/show_bug.cgi?id=10004 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.