This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Invalid update to pc in instruction


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]