From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32612 invoked by alias); 8 Apr 2009 14:58:59 -0000 Received: (qmail 32563 invoked by uid 22791); 8 Apr 2009 14:58:58 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_NEUTRAL X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Apr 2009 14:58:54 +0000 Received: from mx10.gnu.org ([199.232.76.166]:33564) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LrZEp-0007kI-Un for gcc-help@gnu.org; Wed, 08 Apr 2009 10:58:51 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LrZEp-000216-CZ for gcc-help@gnu.org; Wed, 08 Apr 2009 10:58:51 -0400 Received: from yx-out-1718.google.com ([74.125.44.155]:21469) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LrZEo-00020g-Tp for gcc-help@gnu.org; Wed, 08 Apr 2009 10:58:51 -0400 Received: by yx-out-1718.google.com with SMTP id 3so106464yxi.66 for ; Wed, 08 Apr 2009 07:58:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.126.15 with SMTP id y15mr1977314anc.79.1239202697506; Wed, 08 Apr 2009 07:58:17 -0700 (PDT) Date: Wed, 08 Apr 2009 14:58:00 -0000 Message-ID: Subject: return address in __cyg_profile_func_exit From: Laurent Burgy To: gcc-help@gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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 X-SW-Source: 2009-04/txt/msg00093.txt.bz2 Hi, I've been unable to find a high-level way of getting the original return address of a function when entering __cyg_profile_func_exit. __cyg_profile_func_exit is executed at the end of a function, is there any way (with a builting) to retrieve the original returned value. That would enable me to investigate the returned values without modifying the calling site. The information must be somewhere but I don't know how to reach it. (Getting EBX is not an option that I consider since the value may depend on the level of optimization -i've seen it only works with -O0). Thanks... -- Laurent Burgy