[fpc-devel] hot to handle SIGFPE, SIGSEGV using gdb as debugger

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Mar 25 14:08:44 CET 2009


On 25 Mar 2009, at 14:01, Paul Ishenin wrote:

> 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.
>
> No luck :(

File a bug against gdb, it should work (it works under Mac OS X and  
Linux). The gdb bug repository is at http://sourceware.org/gdb/bugs/


Jonas



More information about the fpc-devel mailing list