/* FIXME: These are needed to figure out if the code is mips16 or
not. The low bit of the address is often a good indicator. No
symbol table is available when this code runs out in an embedded
- system as when it is used for disassembler support in a monitor.
-*/
+ system as when it is used for disassembler support in a monitor. */
+
#if !defined(EMBEDDED_ENV)
#define SYMTAB_AVAILABLE 1
#include "elf-bfd.h"
}
}
\f
-/* Print the mips instruction at address MEMADDR in debugged memory,
- on using INFO. Returns length of the instruction, in bytes, which is
- always 4. BIGENDIAN must be 1 if this is big-endian code, 0 if
- this is little-endian code. */
+
#if SYMTAB_AVAILABLE
-static set_mips_isa_type(int mach,int * isa, int *cputype )
+static
+void set_mips_isa_type (int mach, int * isa, int *cputype)
{
switch (info->mach)
{
}
#endif /* symbol table available */
+/* Print the mips instruction at address MEMADDR in debugged memory,
+ on using INFO. Returns length of the instruction, in bytes, which is
+ always 4. BIGENDIAN must be 1 if this is big-endian code, 0 if
+ this is little-endian code. */
+
static int
_print_insn_mips (memaddr, word, info)
bfd_vma memaddr;
target_processor = mips_target_info.processor ;
mips_isa = mips_target_info.isa ;
#else
- set_mips_isa_type(info->mach,&target_processor,&mips_isa) ;
+ set_mips_isa_type(info->mach, &target_processor, &mips_isa) ;
#endif
info->bytes_per_chunk = 4;
we are forces to assumd the low order bit of the instructions address
may mark it as a mips16 instruction. If we are sincle stepping or the
pc is within the disassembled function, this works. Otherwise,
- we need a clue. Sometimes.
- */
+ we need a clue. Sometimes. */
int
#if 1
/* FIXME: If odd address, this is CLEARLY a mips 16 instruction */
/* Only a few tools will work this way */
- if (memaddr & 0x01) return print_insn_mips16 (memaddr, info);
+ if (memaddr & 0x01)
+ return print_insn_mips16 (memaddr, info);
#endif
#if SYMTAB_AVAILABLE