From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9435 invoked by alias); 28 Mar 2006 14:34:26 -0000 Received: (qmail 9425 invoked by uid 22791); 28 Mar 2006 14:34:25 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 28 Mar 2006 14:34:24 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FOFH3-0007yE-OT; Tue, 28 Mar 2006 09:34:21 -0500 Date: Tue, 28 Mar 2006 15:20:00 -0000 From: Daniel Jacobowitz To: Girish Shilamkar Cc: gdb@sources.redhat.com Subject: Re: Invalid update to pc in instruction Message-ID: <20060328143420.GA30581@nevyn.them.org> Mail-Followup-To: Girish Shilamkar , gdb@sources.redhat.com References: <1143537953.4865.6.camel@krypton> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1143537953.4865.6.camel@krypton> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00185.txt.bz2 On Tue, Mar 28, 2006 at 02:55:53PM +0530, Girish Shilamkar wrote: > 363 in uaccess.h > Invalid update to pc in instruction > 0xc00ef530 : pld [r1] > I am using cross gdb-6.4 for Intel PXA270 (armv5l) processor. > Kindly let me know in what scenario does the error msg "Invalid update > to pc in instruction" is displayed ? A quick look in the source would find this message is issued in only two places: if (bits (this_instr, 22, 25) == 0 && bits (this_instr, 4, 7) == 9) /* multiply */ error (_("Invalid update to pc in instruction")); and if (bit (this_instr, 22)) error (_("Invalid update to pc in instruction")); The prologue analyzer thinks that pld [r1] is an instruction which sets PC, incorrectly. It should be updated. -- Daniel Jacobowitz CodeSourcery