From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 80979 invoked by alias); 30 Apr 2015 23:44:45 -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 80963 invoked by uid 89); 30 Apr 2015 23:44:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.4 required=5.0 tests=AWL,BAYES_50,KAM_INFOUSMEBIZ,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,WEIRD_QUOTING autolearn=no version=3.3.2 X-HELO: smtprelay.hostedemail.com Received: from smtprelay0150.hostedemail.com (HELO smtprelay.hostedemail.com) (216.40.44.150) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 30 Apr 2015 23:44:44 +0000 Received: from filter.hostedemail.com (unknown [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id DB2FC29DDA0 for ; Thu, 30 Apr 2015 23:44:41 +0000 (UTC) X-Session-Marker: 6A616D6573406E7363632E696E666F X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,james@nscc.info,:,RULES_HIT:41:152:355:379:541:966:988:989:1260:1261:1277:1311:1313:1314:1345:1373:1381:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2194:2196:2199:2200:2393:2559:2562:2741:2918:3138:3139:3140:3141:3142:3352:3865:3866:3867:3868:3871:3872:3874:4250:4361:4385:5007:6117:6119:6120:7652:7901:7903:9010:10004:10400:10848:11527:11658:11914:12043:12517:12519:12663:13069:13161:13172:13229:13311:13357:13972:14093:14097:21063:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: lace85_460c94825cd17 X-Filterd-Recvd-Size: 2518 Received: from [192.168.5.6] (unknown [79.78.60.213]) (Authenticated sender: james@nscc.info) by omf02.hostedemail.com (Postfix) with ESMTPA for ; Thu, 30 Apr 2015 23:44:41 +0000 (UTC) Message-ID: <1430437509.31953.298.camel@jsm3> Subject: How to disable Altivec registers in powerpc GDB ? From: James Murray To: gdb@sourceware.org Date: Thu, 30 Apr 2015 23:44:00 -0000 Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2015-04/txt/msg00057.txt.bz2 I've built gdb 6.9 using --target=powerpc-eabi 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) 5624-data-list-register-names 5624^done,register-names=["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","f16","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","vr31","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. I've searched online a fair bit and through the archives of this mailing list without finding any obvious solutions. The source appears to make reference to gdbarch determining whether these features are enabled or not but I don't know how to use it. I built the .elf file I'm debugging using gcc - are there any flag that I should have set there that determine the vector register ABI that are then used by gdb? Any help appreciated. regards James Murray