[patch] Arm prologe skipping broken on 64-bit hosts

Paul Brook paul@codesourcery.com
Wed Feb 15 03:02:00 GMT 2006


This time with the patch.

On Wednesday 15 February 2006 01:37, Paul Brook wrote:
> The Arm prologue skipping code is broken on 64-bit hosts. The problem is
> that the opcode is loaded as a signed integer, then stored in an "unsigned
> long". This is then compared against unsigned 32-bit constants.
>
> The attached patch fixes this by reading the instruction as an unsigned
> value. For consistency I made the same change in other similar routines.
>
> Tested with cross to arm-none-eabi.
> Ok?
>
> Paul
>
> 2006-02-15  Paul Brook  <paul@codesourcery.com>
>
> 	* arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
> 	Load insn opcodes as unsigned values.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.gdb_host64
Type: text/x-diff
Size: 2251 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20060215/d0699b48/attachment.bin>


More information about the Gdb-patches mailing list