[fpc-devel] hot to handle SIGFPE, SIGSEGV using gdb as debugger
Paul Ishenin
webpirat at mail.ru
Wed Mar 25 14:14:44 CET 2009
Jonas Maebe wrote:
>
> 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/
First I need to be sure that this is a gdb bug. Maybe fpc doing a bit
different handling on osx and windows?
Jonas, can you write a small similar C++ test?
Best regards,
Paul Ishenin.
More information about the fpc-devel
mailing list