* 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)
commit12f02c2abcf260cc0a923d536a9f4162bcbd6e1a
tree40fb0e5a2be0536c1333eab0f117a226b4adc16c
parent55d801603665d5b9b410578cd64f29469dc86e7e
* 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