From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3578 invoked by alias); 19 May 2014 14:51: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 3557 invoked by uid 89); 19 May 2014 14:51:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-yk0-f171.google.com Received: from mail-yk0-f171.google.com (HELO mail-yk0-f171.google.com) (209.85.160.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 19 May 2014 14:51:11 +0000 Received: by mail-yk0-f171.google.com with SMTP id 142so4542864ykq.2 for ; Mon, 19 May 2014 07:51:09 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.236.87.139 with SMTP id y11mr53897738yhe.27.1400511069449; Mon, 19 May 2014 07:51:09 -0700 (PDT) Received: by 10.170.150.70 with HTTP; Mon, 19 May 2014 07:51:09 -0700 (PDT) In-Reply-To: References: <53719B17.5000208@mentor.com> <5374FF0D.6060608@redhat.com> Date: Mon, 19 May 2014 14:51:00 -0000 Message-ID: Subject: Re: [PATCH] Fix ptype.exp fail in MIPS From: Doug Evans To: Hui Zhu Cc: Pedro Alves , Hui Zhu , gdb-patches ml Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00351.txt.bz2 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?