This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Handling of mips disassembly by gdb
- To: gdb at sourceware dot cygnus dot com
- Subject: Handling of mips disassembly by gdb
- From: Will Cohen <wcohen at redhat dot com>
- Date: Fri, 20 Oct 2000 18:23:37 -0400
- CC: wcohen at redhat dot com
- Newsgroups: cygnus.gdb
- Organization: Red Hat, Inc.
The disassembly performed by the function _print_insn_mips in
opcode/mips-dis.c is dependent on the mach field of the struct info
passed to the function. Unfortunately the mach field is alway set to
zero because TM_PRINT_INSN_MACH is defined to be 0 in
gdb/config/mips/tm-mip.h. Is there a reason that this must be set to
zero? Wouldn't it be more appropriate to set it to
((TARGET_PRINT_INSN_INFO)->mach)? Changing this line allows the
disassembler to generate model specific instructions.
Should I generate a patch to fix this and submit it to binutils? Or is
there a reason this define was set to zero?
-Will