This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Keep 5 yr. old hack for MIPS16 on disassembler code


This hack was added 5+yrs ago to fix disassembler printing for MIPS16. The instruction disassembler code itself is unaware of that -- the hack is only for the address that is printed in front of the instructions.

This horrible macro is only defined for these MIPS16 machines, it is not a general architecture macro (which would be transformed into a multiarch function), so the ifdef.

I have filled the bug gdb/773 asking for these macros to be replaced by something cleaner. But I don't know enough about mips16 to do anything about it and if I leave this out of the code I will break that target. So I will have to add it to the new disassembler code in disasm.c (this hack was on the old code on printcmd.c) -- see attached patch.

I will check it in soon (unless someone fixes 773 first).
The macro has gone.

Andrew



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]