From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27169 invoked by alias); 20 Feb 2012 01:24:20 -0000 Received: (qmail 27152 invoked by uid 22791); 20 Feb 2012 01:24:20 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 20 Feb 2012 01:24:08 +0000 From: "info at michaelzeilfelder dot de" To: gdb-prs@sourceware.org Subject: [Bug c++/13711] New: Stepping problem with different -fno-exception settings in library and application in 32-bit Date: Mon, 20 Feb 2012 01:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: info at michaelzeilfelder dot de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2012-q1/txt/msg00286.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13711 Bug #: 13711 Summary: Stepping problem with different -fno-exception settings in library and application in 32-bit Product: gdb Version: HEAD Status: NEW Severity: minor Priority: P2 Component: c++ AssignedTo: unassigned@sourceware.org ReportedBy: info@michaelzeilfelder.de Classification: Unclassified Created attachment 6228 --> http://sourceware.org/bugzilla/attachment.cgi?id=6228 Sources for a lib + application + Makefiles to reproduce the problem I can't step into certain functions when a (static) library and an application have used different settings for the -fno-exceptions flag in gcc. A C++ example is attached. It's reduced to the minimal code I was able to find which still reproduced the problem. I tested several gdb versions and interestingly I could only ever reproduce it on a 32-bit system, while the same example works on a 64-bit system. Reproduced with: "GNU gdb (GDB) 7.4.50.20120206-cvs" and with "GNU gdb (GDB) 7.0.1-debian" - both times on a 32-bit Debian "squeeze" system. _NOT_ reproduced (aka it worked correct) on: GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08 on a 64-bit Ubuntu system. To reproduce it decompress fnoexception.tar.gz (on a 32-bit system) and call: > cd lib > make > cd .. > make > gdb mybug > b main.cpp:10 > r > s You can press s a few times and the expected behavior would be that it steps into reader1->read(). Alternatively use the batchfile: > ./reproduceit.sh > s -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.