From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9357 invoked by alias); 1 Jul 2014 07:56:13 -0000 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 Received: (qmail 9345 invoked by uid 89); 1 Jul 2014 07:56:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 01 Jul 2014 07:56:11 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1X1sv9-0001m7-DW from Luis_Gustavo@mentor.com for gdb-patches@sourceware.org; Tue, 01 Jul 2014 00:56:07 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 1 Jul 2014 00:56:07 -0700 Received: from [172.30.72.106] (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.2.247.3; Tue, 1 Jul 2014 00:56:06 -0700 Message-ID: <53B26994.8000306@codesourcery.com> Date: Tue, 01 Jul 2014 07:56:00 -0000 From: Luis Machado Reply-To: User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: "'gdb-patches@sourceware.org'" Subject: [RFC] gdb.base/frame-args.exp Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-07/txt/msg00005.txt.bz2 Hi, It looks like this test is a bit focused on results from only a few targets. On x86 it works correctly and displays the arguments just fine. When set to display only scalars, then GDB proceeds to display '...' on the fields that are not scalars. On PowerPC 32-bit though, this is what i get: (gdb) PASS: gdb.base/frame-args.exp: set print frame-arguments all frame 1^M #1 0x100006dc in call_me (i=3, f=5, s=, ss=0xbffff788, u=, e=green) at gdb.base/frame-args.c:40^M 40 break_me ();^M (gdb) FAIL: gdb.base/frame-args.exp: frame 1 with print frame-arguments set to all set print frame-arguments scalars^M (gdb) PASS: gdb.base/frame-args.exp: set print frame-arguments scalars frame 1^M #1 0x100006dc in call_me (i=3, f=5, s=, ss=0xbffff788, u=, e=green) at gdb.base/frame-args.c:40^M 40 break_me ();^M (gdb) FAIL: gdb.base/frame-args.exp: frame 1 with print frame-arguments set to scalars set print frame-arguments none^M So it looks like we are taking a different route and GDB ends up catching an error before displaying the optimized out information, thus not matching what the testcase expects. I could add a different pattern to the testcase and that would solve the couple failures i see, but i wonder if we should tweak the testcase to dodge optimizations? Thoughts? Luis