[gnu.gdb.bug] GDB disassembles wrong on m68k

jkp@SAUNA.HUT.FI (Jyrki Kuoppala) (06/13/89)

GDB (almost 3.2) disassembles wrong on the m68k.  For example,
dissassembling itself, it says:

0x35a8e <morecore+396>: moveml 1148(fp),d3/d5-sp

when adb does the correct thing:

_morecore+0x18c:                        moveml  a6@(-0x18),d2/d3/d4/d5/d6/a2

The hex code is:
0x35a8e <morecore+396>: 0x4cee047c
(top-gdb)
0x35a92 <morecore+400>: 0xffe84e5e

respectively, when disassembling getpool():

0x35b22 <getpool+138>:  moveml 3076(fp),d2/d4-sp

versus

_getpool+0x8a:          moveml  a6@(-0xc),d2/a2/a3

//Jyrki

Jyrki Kuoppala    Helsinki University of Technology, Finland.
Internet :        jkp@cs.hut.fi           [128.214.3.119]
BITNET :          jkp@fingate.bitnet      Gravity is a myth, the Earth sucks!