From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22525 invoked by alias); 22 Nov 2013 19:40:46 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 22498 invoked by uid 89); 22 Nov 2013 19:40:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_05,RDNS_NONE,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-ob0-f180.google.com Received: from Unknown (HELO mail-ob0-f180.google.com) (209.85.214.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 22 Nov 2013 19:40:44 +0000 Received: by mail-ob0-f180.google.com with SMTP id wo20so1793598obc.11 for ; Fri, 22 Nov 2013 11:40:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=EvvnT3AQNXZ8eklrctr9byel1DrSD5KSf07juDyFe0o=; b=D8Cce5ih85QsJFbi86h82vyGoAR+S3x706+mC2/rUs18D7pMu7h8wi524jEBoP75x2 QcBHnEq7aqTeOZinrdjT2T4BhskpEM7Oc1T3mAYv20BUwuzhv8tCBDw/9C4GHWvkqdRr 1Pvi2auAzCDegHS6uDEpC8d+ZWqJonvwMP7aVBRHx4BRhywUebCyu/SS+DCSHgtTTGt1 t2MPP5CVVR6zgY3lEj1VQJ88HuS92S8qI3na1KTf3Ne8SzylknNtNJAe7XzfHiJBOa/m 8ezN4t30eLnX/C0UAuyFRtOcA8M0foreaZk3KdMrNRKrusiWpL1a3UWvPxjuV56MDEET wn7A== X-Gm-Message-State: ALoCoQnknwsdLn4OWtClwW0r7MJvVgQG7gJbeFqlktZSi23q5DEuxGohq7/xKjf+DIk/1JRHe7pzPu0Mz8w8FpwqaDQXbkCO2uCyaRyRB1vuDLIURFjxJaiRBBefUBFt5/H/NqOz8mD6RyCfoM2gND2inC+X5OGP/5QgwYrAg8IznD0RoPC3km+0QISzQWJrMjx+Umt7F5Ku MIME-Version: 1.0 X-Received: by 10.60.132.142 with SMTP id ou14mr3216921oeb.58.1385149236975; Fri, 22 Nov 2013 11:40:36 -0800 (PST) Received: by 10.60.145.144 with HTTP; Fri, 22 Nov 2013 11:40:36 -0800 (PST) In-Reply-To: References: Date: Fri, 22 Nov 2013 19:47:00 -0000 Message-ID: Subject: Re: C++ exceptions From: Ian Lance Taylor To: vijay nag Cc: Jonathan Wakely , "gcc-help@gcc.gnu.org" Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-11/txt/msg00187.txt.bz2 On Thu, Nov 21, 2013 at 1:20 AM, vijay nag wrote: > > I tried creating a small binary to demonstrate the problem that I had > been facing with my gcc-4.7.2 tool chain and glibc-2.17. The library > and binaries were created using exact CFLAGS, CXXFLAGS et al. > Strangely, the problem doesn't manifest in my example program :(. On > further hacking and debugging libgcc, I found that > _Unwind_RaiseException() was always "returning" in failure case with > return code _URC_END_OF_STACK. Does it mean that FDE is missing for > the function which is suppose to catch the exception ? How do I check > if an FDE exists for a particular function or not ? You can use readelf --debug=frames to examine the unwind information in an executable or object file. Ian