From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24893 invoked by alias); 27 May 2014 08:53: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 24878 invoked by uid 89); 27 May 2014 08:53:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ob0-f175.google.com Received: from mail-ob0-f175.google.com (HELO mail-ob0-f175.google.com) (209.85.214.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 27 May 2014 08:53:29 +0000 Received: by mail-ob0-f175.google.com with SMTP id wo20so8966790obc.6 for ; Tue, 27 May 2014 01:53:28 -0700 (PDT) X-Received: by 10.60.134.109 with SMTP id pj13mr30694667oeb.63.1401180808077; Tue, 27 May 2014 01:53:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.60.37.4 with HTTP; Tue, 27 May 2014 01:52:47 -0700 (PDT) In-Reply-To: References: <53719B17.5000208@mentor.com> <5374FF0D.6060608@redhat.com> From: Hui Zhu Date: Tue, 27 May 2014 08:53:00 -0000 Message-ID: Subject: Re: [PATCH] Fix ptype.exp fail in MIPS To: Doug Evans Cc: Pedro Alves , Hui Zhu , gdb-patches ml Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00657.txt.bz2 On Mon, May 19, 2014 at 10:51 PM, Doug Evans wrote: > On Fri, May 16, 2014 at 12:40 AM, Hui Zhu wrote: >> On Fri, May 16, 2014 at 1:53 AM, Pedro Alves wrote: >>> On 05/13/2014 05:09 AM, Hui Zhu wrote: >>>> ptype $pc >>>> type = int32_t >>>> (gdb) FAIL: gdb.base/ptype.exp: ptype $pc >>>> This is because the $pc register in MIPS is set to int but not code_ptr. >>>> And according to the discussion in >>>> https://sourceware.org/ml/gdb/2013-06/msg00020.html, the type cannot be >>>> changed. >>> >>> Hmm, that's not what I get from this branch of the discussion: >>> >>> https://sourceware.org/ml/gdb/2013-06/msg00021.html >>> >>> -- >> >> https://sourceware.org/ml/gdb/2013-06/msg00032.html >> Do you think add ptr64 or $_xx is OK for you to handle this issue? > > IIUC it's not just adding $_xx but changing the type of $pc so that > ptype.exp will pass as is. > Is that correct? I am not sure. But looks we cannot do that in MIPS. https://sourceware.org/ml/gdb/2013-06/msg00028.html Maciej introduced in this part. Thanks, Hui