From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10262 invoked by alias); 18 Apr 2013 10:08:32 -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 10252 invoked by uid 89); 18 Apr 2013 10:08:31 -0000 X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 18 Apr 2013 10:08:30 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1USllV-0006NN-Bo from Luis_Gustavo@mentor.com for gdb-patches@sourceware.org; Thu, 18 Apr 2013 03:08:29 -0700 Received: from NA1-MAIL.mgc.mentorg.com ([147.34.98.181]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 18 Apr 2013 03:08:28 -0700 Received: from [172.30.7.152] ([172.30.7.152]) by NA1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 18 Apr 2013 03:08:28 -0700 Message-ID: <516FC617.5040409@mentor.com> Date: Fri, 19 Apr 2013 07:01:00 -0000 From: Luis Gustavo Reply-To: "Gustavo, Luis" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: "'gdb-patches@sourceware.org'" Subject: [PATCH, testsuite] Fix regression for gdb.mi/mi-var-create-rtti.exp Content-Type: multipart/mixed; boundary="------------030303040700060405070808" X-Virus-Found: No X-SW-Source: 2013-04/txt/msg00564.txt.bz2 This is a multi-part message in MIME format. --------------030303040700060405070808 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 102 This patch was approved a while ago, but i'm only checking it in now. Here's what i committed. Luis --------------030303040700060405070808 Content-Type: text/x-patch; name="0002-var-create.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0002-var-create.diff" Content-length: 1424 Index: gdb-head/gdb/testsuite/gdb.mi/mi-var-create-rtti.exp =================================================================== --- gdb-head.orig/gdb/testsuite/gdb.mi/mi-var-create-rtti.exp 2013-04-17 10:24:53.083499115 +0200 +++ gdb-head/gdb/testsuite/gdb.mi/mi-var-create-rtti.exp 2013-04-18 10:46:23.465940961 +0200 @@ -45,8 +45,10 @@ if ![mi_run_to_main] { # Enable "print object" mi_gdb_test "-gdb-set print object on" ".*" -# Test creating a variable for $sp -mi_gdb_test "-var-create sp1 * \$sp" \ +# Test creating a variable for $sp. +# We use a explicit cast to (void *) as that is the +# type that caused the bug this testcase is testing for. +mi_gdb_test "-var-create sp1 * ((void*)\$sp)" \ "\\^done,name=\"sp1\",numchild=\"0\",value=\"$hex\",type=\"void \\*\",has_more=\"0\"" \ "-var-create sp1 * \$sp" gdb_exit Index: gdb-head/gdb/ChangeLog =================================================================== --- gdb-head.orig/gdb/ChangeLog 2013-04-18 10:39:43.913948060 +0200 +++ gdb-head/gdb/ChangeLog 2013-04-18 10:46:50.085940489 +0200 @@ -1,5 +1,10 @@ 2013-04-18 Luis Machado + * gdb.mi/mi-var-create-rtti.exp: Create a variable of + type void *. + +2013-04-18 Luis Machado + * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's debug state prior to replicating existing hardware watchpoints or breakpoints. --------------030303040700060405070808--