OSDN Git Service

* arm-tdep.c (skip_prologue_function): New function.
authordrow <drow>
Thu, 25 Mar 2010 05:23:13 +0000 (05:23 +0000)
committerdrow <drow>
Thu, 25 Mar 2010 05:23:13 +0000 (05:23 +0000)
commit584f252deffe5831e6e759332120244e95955d0f
tree084bb122a37365a3bf865ab2a84d57459356beba
parentfdc88a4ed162101485ab79732449f7cd9639647e
* arm-tdep.c (skip_prologue_function): New function.
(submask, bit, bits, sbits, BranchDest): Move higher in the file.
(thumb_analyze_prologue): Document return value.  Recognize more
Thumb instructions, skippable calls, and some Thumb-2 instructions.
Add debug output.
(arm_skip_prologue): Remove call dummy check.  Check the prologue
for non-GNU compilers.
(arm_instruction_changes_pc): New function.
(arm_analyze_prologue): New function, broken out from
arm_scan_prologue.  Recognize more ARM instructions and skippable
calls.  Update comments.  Handle NULL cache.  Return the address
of the first unrecognized instruction.  Do not skip past other
instructions which change control flow.  Add debug output.
(arm_scan_prologue): Use arm_analyze_prologue.
(ARM_PC_32): Delete.
(shifted_reg_val): Simplify ARM_PC_32 check.
gdb/ChangeLog
gdb/arm-tdep.c