delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/05/29/17:24:10

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:content-type:content-transfer-encoding; q=dns; s=default; b=gx+
XkycXHgzkpaoFtP5TMNvKEu+V1kr3I1eEiQ1PGiNsq+3xUbfYmSCbuxxHkyNncgY
xFGOeYD2QAMdbEZURoe8eMosvyF1AX6nKpj5LM0zQZ17ZekrYdlrYUvDJLO+qfns
Xgk/Qj/lb870AcjK5FZzWnFm0ZklUOW5FzmSPn8Q=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:content-type:content-transfer-encoding; s=default; bh=lIJ6UVTPC
puKIFQw/ofEWETGSO8=; b=hV+tj8PUj3/VDAV7UbhTPNgAFHjc2lOtPrhYw1bzY
Q5qheCEhUyuP/sUIJMb75l6Q+sZlyHltryCmCLL1zkpKUYeUq4cr6jH5UwKloReE
7cTuebiuGBjJ/UjuLEe+syiQILEG91sIq1s+wyZ4iI1IYNvQw8bxdekc89f8QQEY
vA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_NO,RP_MATCHES_RCVD,SPF_NEUTRAL,TW_CX autolearn=ham version=3.3.1
Message-ID: <51A671E4.8010306@cs.utoronto.ca>
Date: Wed, 29 May 2013 17:23:48 -0400
From: Ryan Johnson <ryan DOT johnson AT cs DOT utoronto DOT ca>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6
MIME-Version: 1.0
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: gdb aborts after setting "throw" catchpoint

Hi all,

Compiling the following with the cygwin g++-4.5.3:

int global;
int main() {
     if (global)
         throw global;
     return 0;
}

Crashes gdb if a catchpoint is set:

GNU gdb (GDB) 7.6.50.20130408-cvs (cygwin-special)
... snip...
Reading symbols from /home/Ryan/experiments/a.exe...done.
(gdb) catch throw
Catchpoint 1 (throw)
(gdb) r
Starting program: /home/Ryan/experiments/a.exe
[New Thread 10024.0x1480]
[New Thread 10024.0x1758]
warning: SuspendThread failed. (winerr 6)
[Inferior 1 (process 10024) exited normally]
(gdb)
Debugger aborted (core dumped)

Has anybody seen this problem before? Meanwhile, setting a breakpoint on 
__cxa_throw works just fine, so at least there's a workaround.

Thoughts?
Ryan


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019