From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21543 invoked by alias); 8 Dec 2008 15:25:04 -0000 Received: (qmail 21503 invoked by uid 22791); 8 Dec 2008 15:25:03 -0000 X-Spam-Check-By: sourceware.org Received: from eu1sys200aog104.obsmtp.com (HELO eu1sys200aog104.obsmtp.com) (207.126.144.117) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 08 Dec 2008 15:24:16 +0000 Received: from source ([164.129.1.35]) (using TLSv1) by eu1sys200aob104.postini.com ([207.126.147.11]) with SMTP ID DSNKST08HULQugtGX5COcO9aqnNahy8tIHQt@postini.com; Mon, 08 Dec 2008 15:24:15 UTC Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 35F47DA8B for ; Mon, 8 Dec 2008 15:24:00 +0000 (GMT) Received: from mail2.gnb.st.com (mail2.gnb.st.com [164.129.119.59]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 2DE414C874 for ; Mon, 8 Dec 2008 15:24:07 +0000 (GMT) Received: from [164.129.122.46] (gnx2504.gnb.st.com [164.129.122.46]) by mail2.gnb.st.com (MOS 3.8.7a) with ESMTP id CYO37699 (AUTH lyon); Mon, 8 Dec 2008 16:24:15 +0100 (CET) Message-ID: <493D3C16.3010303@st.com> Date: Mon, 08 Dec 2008 15:25:00 -0000 From: Christophe LYON User-Agent: Thunderbird 2.0.0.18 (X11/20081105) MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [RFA] testsuite gdb.base/expand-psymtabs: ensure code is generated for the expected source line Content-Type: multipart/mixed; boundary="------------010901000002020208060804" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-12/txt/msg00151.txt.bz2 This is a multi-part message in MIME format. --------------010901000002020208060804 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 286 Hi all, I propose the attached small patch to expand-psymtabs.c. The goal is to make sure the compiler actually generates code and debug information for the expected line. Currently, our compiler attaches code only to the opening brace, hence causing the test to fail. Christophe. --------------010901000002020208060804 Content-Type: text/plain; name="ChangeLog" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ChangeLog" Content-length: 179 2008-12-08 Christophe Lyon * gdb.base/expand-psymtabs.c: Insert code in foo so that the compiler actually generate code at the expected line number. --------------010901000002020208060804 Content-Type: text/plain; name="patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch" Content-length: 409 Index: src/gdb/testsuite/gdb.base/expand-psymtabs.c =================================================================== --- src/gdb/testsuite/gdb.base/expand-psymtabs.c (revision 308) +++ src/gdb/testsuite/gdb.base/expand-psymtabs.c (working copy) @@ -27,9 +27,14 @@ main (void) #else void +bar (void) + { + } + +void foo (void) { - /* Break here */ + bar(); /* Break here */ } #endif --------------010901000002020208060804--