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

2009-03-25 Thread Paul Ishenin
Hello, FPC developers' list I attached 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

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

2009-03-25 Thread Jonas Maebe
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 SignalStop Print Pass to program Description SIGFPENoNo Yes Arithmetic exception (gdb)

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

2009-03-25 Thread Paul Ishenin
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 SignalStop Print Pass to program Description SIGFPENoNo Yes Arithmetic

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

2009-03-25 Thread Jonas Maebe
On 25 Mar 2009, at 14:14, Paul Ishenin wrote: Jonas Maebe wrote: 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

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

2009-03-25 Thread Paul Ishenin
Jonas Maebe wrote: Just make sure you include a compiled program so that the gdb maintainers don't have to install FPC to test. Sorry for annoyance. Please check whether I provide enough information here: http://sourceware.org/bugzilla/show_bug.cgi?id=10004 Best regards, Paul Ishenin.

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

2009-03-25 Thread Jonas Maebe
On 25 Mar 2009, at 15:25, Paul Ishenin wrote: Jonas Maebe wrote: Just make sure you include a compiled program so that the gdb maintainers don't have to install FPC to test. Sorry for annoyance. There was no annoyance from you, just from some things I have to do at work currently.