From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16072 invoked by alias); 13 Apr 2017 16:37:22 -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 16042 invoked by uid 89); 13 Apr 2017 16:37:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-15.4 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= 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; Thu, 13 Apr 2017 16:37:20 +0000 Received: from svr-orw-mbx-03.mgc.mentorg.com ([147.34.90.203]) by relay1.mentorg.com with esmtp id 1cyhkH-0000E1-1x from Luis_Gustavo@mentor.com ; Thu, 13 Apr 2017 09:37:21 -0700 Received: from [172.30.1.10] (147.34.91.1) by svr-orw-mbx-03.mgc.mentorg.com (147.34.90.203) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Thu, 13 Apr 2017 09:37:18 -0700 Subject: Re: [PATCH 4/4] Don't throw an error in 'info registers' for unavailable MIPS GP registers. References: <20170412183727.22483-1-jhb@FreeBSD.org> <20170412183727.22483-5-jhb@FreeBSD.org> To: John Baldwin , Reply-To: Luis Machado From: Luis Machado Message-ID: <6561c934-04ca-8e6d-0b4a-160b6bfebba1@codesourcery.com> Date: Thu, 13 Apr 2017 16:37:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170412183727.22483-5-jhb@FreeBSD.org> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SVR-ORW-MBX-09.mgc.mentorg.com (147.34.90.209) To svr-orw-mbx-03.mgc.mentorg.com (147.34.90.203) X-IsSubscribed: yes X-SW-Source: 2017-04/txt/msg00445.txt.bz2 On 04/12/2017 01:37 PM, John Baldwin wrote: > index 674b5098b0..4ec0c31341 100644 > --- a/gdb/mips-tdep.c > +++ b/gdb/mips-tdep.c > @@ -6533,8 +6533,14 @@ print_gp_register_row (struct ui_file *file, struct frame_info *frame, > > /* OK: get the data in raw format. */ > if (!deprecated_frame_register_read (frame, regnum, raw_buffer)) > - error (_("can't read register %d (%s)"), > - regnum, gdbarch_register_name (gdbarch, regnum)); > + { > + fprintf_filtered (file, "%*.*s ", > + (int) mips_abi_regsize (gdbarch) * 2, > + (int) mips_abi_regsize (gdbarch) * 2, > + ""); > + col++; > + continue; > + } What is the output you're getting in this case?