* arm-tdep.c (skip_prologue_function): New function.
authorDaniel Jacobowitz <drow@false.org>
Wed, 24 Mar 2010 20:23:13 +0000 (20:23 +0000)
committerDaniel Jacobowitz <drow@false.org>
Wed, 24 Mar 2010 20:23:13 +0000 (20:23 +0000)
commit0d39a07082291dc1bfc36568ea6a60a78739db41
tree4ab2b9f9e11de16e946fe908a63993f214d676cc
parent4baf5cf4879e4953b19a581f6cafce66964cfc3e
* 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