From patchwork Mon Sep 1 00:57:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 2608 Received: (qmail 24774 invoked by alias); 1 Sep 2014 01:03:11 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 24667 invoked by uid 89); 1 Sep 2014 01:03:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00 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; Mon, 01 Sep 2014 01:03:10 +0000 Received: from svr-orw-fem-05.mgc.mentorg.com ([147.34.97.43]) by relay1.mentorg.com with esmtp id 1XOG1S-0005zM-QS from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Sun, 31 Aug 2014 18:03:07 -0700 Received: from qiyao.dyndns.org.com (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.2.247.3; Sun, 31 Aug 2014 18:02:40 -0700 From: Yao Qi To: Subject: [PATCH 1/3] Set print symbol off in mi-var-display.exp Date: Mon, 1 Sep 2014 08:57:50 +0800 Message-ID: <1409533072-6152-2-git-send-email-yao@codesourcery.com> In-Reply-To: <1409533072-6152-1-git-send-email-yao@codesourcery.com> References: <1409533072-6152-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 X-IsSubscribed: yes Hi, I see the following fail on arm-none-eabi target, -var-evaluate-expression -f nat foo^M ^done,value="0x3 <_ftext+2>"^M (gdb) ^M FAIL: gdb.mi/mi-var-display.exp: eval variable -f nat foo the "<_ftext+2>" isn't expected in the test, so "set print symbol off" can prevent printing it. It is obvious and I'll commit it in three days if no comments. gdb/testsuite: 2014-09-01 Yao Qi * gdb.mi/mi-var-display.exp: Set print symbol off. --- gdb/testsuite/gdb.mi/mi-var-display.exp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdb/testsuite/gdb.mi/mi-var-display.exp b/gdb/testsuite/gdb.mi/mi-var-display.exp index 2db4a7d..02c2212 100644 --- a/gdb/testsuite/gdb.mi/mi-var-display.exp +++ b/gdb/testsuite/gdb.mi/mi-var-display.exp @@ -49,6 +49,9 @@ mi_run_cmd mi_expect_stop "breakpoint-hit" "do_children_tests" "" ".*var-cmd.c" \ $line_dct_end { "" "disp=\"keep\"" } "run to main" +# Prevent symbol on the address being printed. +mi_gdb_test "-gdb-set print symbol off" + ##### ##### # # # Display tests #