From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11373 invoked by alias); 1 May 2015 13:56:35 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 11364 invoked by uid 89); 1 May 2015 13:56:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_QUOTING autolearn=ham version=3.3.2 X-HELO: mail-pa0-f52.google.com Received: from mail-pa0-f52.google.com (HELO mail-pa0-f52.google.com) (209.85.220.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 01 May 2015 13:56:32 +0000 Received: by pacwv17 with SMTP id wv17so91684478pac.0 for ; Fri, 01 May 2015 06:56:31 -0700 (PDT) X-Received: by 10.70.102.132 with SMTP id fo4mr18077523pdb.31.1430488591138; Fri, 01 May 2015 06:56:31 -0700 (PDT) Received: from E107787-LIN (gcc1-power7.osuosl.org. [140.211.15.137]) by mx.google.com with ESMTPSA id do16sm4989806pac.15.2015.05.01.06.56.29 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 01 May 2015 06:56:30 -0700 (PDT) From: Yao Qi To: James Murray Cc: gdb@sourceware.org Subject: Re: How to disable Altivec registers in powerpc GDB ? References: <1430437509.31953.298.camel@jsm3> Date: Fri, 01 May 2015 13:56:00 -0000 In-Reply-To: <1430437509.31953.298.camel@jsm3> (James Murray's message of "Fri, 01 May 2015 00:45:09 +0100") Message-ID: <861tj0wgdy.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-05/txt/msg00001.txt.bz2 James Murray writes: > gdb appears to think that my target has the altivec vector registers, > although it does not. It is a Freescale MPC5xxx embedded part. > > e.g. when trying to debug the embedded target via Eclipse, I'm seeing > this: > (gdb)=20 > 5624-data-list-register-names > 5624^done,register-names=3D["r0","r1","r2","r3","r4","r5","r6","r7","r8",= "r9","r10","r11","r12","r13","r14","r15","r16","r17","r18","r19","r20","r21= ","r22","r23","r24","r25","r26","r27","r28","r29","r30","r31","f0","f1","f2= ","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12","f13","f14","f15","f= 16","f17","f18","f19","f20","f21","f22","f23","f24","f25","f26","f27","f28"= ,"f29","f30","f31","pc","msr","cr","lr","ctr","xer","fpscr","","","","","",= "","","","","","","","","","","","","","","","","","","","","","","","","",= "","","","","","vr0","vr1","vr2","vr3","vr4","vr5","vr6","vr7","vr8","vr9",= "vr10","vr11","vr12","vr13","vr14","vr15","vr16","vr17","vr18","vr19","vr20= ","vr21","vr22","vr23","vr24","vr25","vr26","vr27","vr28","vr29","vr30","vr= 31","vscr","vrsave","","","","","","","","","","","","","","","","","","","= ","","","","","","","","","","","","","","dl0","dl1","dl2","dl3","dl4","dl5= ","dl6","dl7","dl8","dl9","dl10","dl11","dl12","dl13","dl14","dl15"] > (gdb) > > The target doesn't have that many registers and the remote debugger > returns an error code and drops the gdb connection if any are accessed. > I'd like gdb to only report the basic 32 GPRs and 8 specials. Your debug stub/probe should return the right target description for your processor, to tell GDB that processor doesn't have these altivec registers. See https://sourceware.org/gdb/current/onlinedocs/gdb/Target-Descriptions.html --=20 Yao (=E9=BD=90=E5=B0=A7)