Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] Arm prologe skipping broken on 64-bit hosts
@ 2006-02-15  1:37 Paul Brook
  2006-02-15  3:02 ` Paul Brook
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Brook @ 2006-02-15  1:37 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 567 bytes --]

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.

[-- Attachment #2: commit.gdb_host64 --]
[-- Type: text/plain, Size: 159 bytes --]

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-02-15 11:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-15  1:37 [patch] Arm prologe skipping broken on 64-bit hosts Paul Brook
2006-02-15  3:02 ` Paul Brook
2006-02-15 11:34   ` Richard Earnshaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox