This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Invalid update to pc in instruction
- From: Daniel Jacobowitz <drow at false dot org>
- To: Girish Shilamkar <girish at linsyssoft dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 28 Mar 2006 09:34:21 -0500
- Subject: Re: Invalid update to pc in instruction
- References: <1143537953.4865.6.camel@krypton>
On Tue, Mar 28, 2006 at 02:55:53PM +0530, Girish Shilamkar wrote:
> 363 in uaccess.h
> Invalid update to pc in instruction
> 0xc00ef530 <memcpy+16>: 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