public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug win32/10004] New: gdb cannot continue after SIGFPE or SIGSEGV happen on windows
@ 2009-03-25 14:20 webpirat at mail dot ru
  2009-03-25 14:22 ` [Bug win32/10004] " webpirat at mail dot ru
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: webpirat at mail dot ru @ 2009-03-25 14:20 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug win32/10004] gdb cannot continue after SIGFPE or SIGSEGV happen on windows
  2009-03-25 14:20 [Bug win32/10004] New: gdb cannot continue after SIGFPE or SIGSEGV happen on windows webpirat at mail dot ru
@ 2009-03-25 14:22 ` webpirat at mail dot ru
  2009-03-25 14:23 ` webpirat at mail dot ru
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: webpirat at mail dot ru @ 2009-03-25 14:22 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From webpirat at mail dot ru  2009-03-25 14:22 -------
Created an attachment (id=3843)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3843&action=view)
compiled executable


-- 


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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug win32/10004] gdb cannot continue after SIGFPE or SIGSEGV happen on windows
  2009-03-25 14:20 [Bug win32/10004] New: gdb cannot continue after SIGFPE or SIGSEGV happen on windows webpirat at mail dot ru
  2009-03-25 14:22 ` [Bug win32/10004] " webpirat at mail dot ru
@ 2009-03-25 14:23 ` webpirat at mail dot ru
  2009-03-25 14:43 ` jonas dot maebe at elis dot ugent dot be
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: webpirat at mail dot ru @ 2009-03-25 14:23 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From webpirat at mail dot ru  2009-03-25 14:23 -------
Created an attachment (id=3844)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3844&action=view)
free pascal source file


-- 


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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug win32/10004] gdb cannot continue after SIGFPE or SIGSEGV happen on windows
  2009-03-25 14:20 [Bug win32/10004] New: gdb cannot continue after SIGFPE or SIGSEGV happen on windows webpirat at mail dot ru
  2009-03-25 14:22 ` [Bug win32/10004] " webpirat at mail dot ru
  2009-03-25 14:23 ` webpirat at mail dot ru
@ 2009-03-25 14:43 ` jonas dot maebe at elis dot ugent dot be
  2009-03-25 18:34 ` vsnijders at vodafonevast dot nl
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jonas dot maebe at elis dot ugent dot be @ 2009-03-25 14:43 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonas dot maebe at elis dot
                   |                            |ugent dot be


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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug win32/10004] gdb cannot continue after SIGFPE or SIGSEGV happen on windows
  2009-03-25 14:20 [Bug win32/10004] New: gdb cannot continue after SIGFPE or SIGSEGV happen on windows webpirat at mail dot ru
                   ` (2 preceding siblings ...)
  2009-03-25 14:43 ` jonas dot maebe at elis dot ugent dot be
@ 2009-03-25 18:34 ` vsnijders at vodafonevast dot nl
  2009-03-27  8:51 ` muller at ics dot u-strasbg dot fr
  2009-03-27 15:18 ` tromey at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: vsnijders at vodafonevast dot nl @ 2009-03-25 18:34 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vsnijders at vodafonevast
                   |                            |dot nl


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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug win32/10004] gdb cannot continue after SIGFPE or SIGSEGV happen on windows
  2009-03-25 14:20 [Bug win32/10004] New: gdb cannot continue after SIGFPE or SIGSEGV happen on windows webpirat at mail dot ru
                   ` (3 preceding siblings ...)
  2009-03-25 18:34 ` vsnijders at vodafonevast dot nl
@ 2009-03-27  8:51 ` muller at ics dot u-strasbg dot fr
  2009-03-27 15:18 ` tromey at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: muller at ics dot u-strasbg dot fr @ 2009-03-27  8:51 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From muller at ics dot u-strasbg dot fr  2009-03-27 08:51 -------
This is a Microsoft bug:
please see
http://support.microsoft.com/kb/173652

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at sourceware dot|muller at sourceware dot org
                   |org                         |
             Status|UNCONFIRMED                 |ASSIGNED


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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug win32/10004] gdb cannot continue after SIGFPE or SIGSEGV happen on windows
  2009-03-25 14:20 [Bug win32/10004] New: gdb cannot continue after SIGFPE or SIGSEGV happen on windows webpirat at mail dot ru
                   ` (4 preceding siblings ...)
  2009-03-27  8:51 ` muller at ics dot u-strasbg dot fr
@ 2009-03-27 15:18 ` tromey at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at redhat dot com @ 2009-03-27 15:18 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2009-03-27 15:18 -------
Unsetting target milestone.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|6.8                         |---


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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-03-27 15:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-25 14:20 [Bug win32/10004] New: gdb cannot continue after SIGFPE or SIGSEGV happen on windows webpirat at mail dot ru
2009-03-25 14:22 ` [Bug win32/10004] " webpirat at mail dot ru
2009-03-25 14:23 ` webpirat at mail dot ru
2009-03-25 14:43 ` jonas dot maebe at elis dot ugent dot be
2009-03-25 18:34 ` vsnijders at vodafonevast dot nl
2009-03-27  8:51 ` muller at ics dot u-strasbg dot fr
2009-03-27 15:18 ` tromey at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).