diff options
author | Kevin Buettner <kevinb@redhat.com> | 2015-04-20 23:37:44 -0700 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2015-04-20 23:44:19 -0700 |
commit | 0bca7f99d8fa254b5e35a211ee306a46b95adc65 (patch) | |
tree | 318e7f1a06e78c35e4a30e03ebce5122e1236572 /sim/common | |
parent | 4b889c3013d7d45e2775781c3904b657419db2fa (diff) | |
download | gdb-0bca7f99d8fa254b5e35a211ee306a46b95adc65.zip gdb-0bca7f99d8fa254b5e35a211ee306a46b95adc65.tar.gz gdb-0bca7f99d8fa254b5e35a211ee306a46b95adc65.tar.bz2 |
Extend rl78 prologue analyzer to recognize more complicated prologues
This patch extends the rl78 prologue analyzer so that it can recognize
this kind of prologue:
0x119f <main>: movw ax, sp
0x11a1 <main+2>: subw ax, #0x1fa6
0x11a4 <main+5>: movw sp, ax
The test case for gdb.base/miscexprs.exp is now compiled to generate
that sequence instead of a much longer and more inefficient sequence.
gdb/ChangeLog:
* rl78-tdep.c (RL78_SP_ADDR): Define.
(opc_reg_to_gdb_regnum): New static function.
(rl78_analyze_prologue): Recognize instructions forming slightly
more interesting prologues.
Diffstat (limited to 'sim/common')
0 files changed, 0 insertions, 0 deletions