Fix prologue analysis for ldr.w and ldrd instruction
authorTaimoor Mirza <tmirza@codesourcery.com>
Fri, 16 May 2014 06:39:05 +0000 (11:39 +0500)
committerTaimoor Mirza <tmirza@codesourcery.com>
Fri, 16 May 2014 06:39:05 +0000 (11:39 +0500)
commitcac395eae4d97d9f59c5e588e4e662f2ae6cdfeb
tree22eac57ebc57ec2d48fec06805964f6a4959fed0
parent791849751dd82722d4cfaae844e1fdbed445af5a
Fix prologue analysis for ldr.w and ldrd instruction

Prologue analysis for ldr.w and ldrd instruction obtains offset from
first two bytes that contains opcode of instruction. It should obtain
offset from next two bytes that actually contain operands.

       * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
ldr.w and ldrd instructions.

Signed-off-by: Taimoor Mirza <tmirza@codesourcery.com>
gdb/ChangeLog
gdb/arm-tdep.c