OSDN Git Service

* mips-tdep.c (struct upk_mips16): Delete fields ``inst'' and
authorAndrew Cagney <cagney@redhat.com>
Sat, 2 Dec 2000 13:25:26 +0000 (13:25 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sat, 2 Dec 2000 13:25:26 +0000 (13:25 +0000)
commit1d7a292ab8b85601ec81bae91b8745781bc7be4c
tree3380face3e33a6ce24ecf9e91ac2a4f7551debf9
parent5cb231d6740a15727ca643ec1438bb175c833daf
* mips-tdep.c (struct upk_mips16): Delete fields ``inst'' and
``fmt''.  Make ``offset'' a CORE_ADDR.
(print_unpack): Delete.
(extended_offset): Construct and return a CORE_ADDR.
(fetch_mips_16): Return an int.  Don't assume short is 16 bits.
(unpack_mips16): Rewrite.  Add ``extension'' parameter instead of
incorrectly guessing if the instruction had an extension.
(map16): Delete array.
(mips16_op): Delete macro.
(extended_mips16_next_pc): Rewrite of old mips16_next_pc function.
When an extended instruction do a recursive call.
(mips16_next_pc): Call extended_mips16_next_pc.
(mips_next_pc): Cleanup.
gdb/ChangeLog
gdb/mips-tdep.c